How to fix WordPress kses error and fatal error handler - wordpress

I'm new at making website. Even I only know Html Coding. I'm running a website using WordPress, but it is facing problem everyday at same time. Everyday at the same time site is showing Http 500 error.
So as I don't know any kind of coding, every day I have to delete WordPress from my site then again have to install it then I have to restore website using Updraftplus. But I want to fix this oroblem.
I have an option in my cPanel called "Errors". I find this error from there.
I copied what there was said:
1st error:
[Mon Dec 23 03:46:44.895719 2019] [lsapi:error] [pid 1014092:tid 47766993704704] [client 141.8.188.1:46957] [host gokumovie.com] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function esc_url() in /home/gokumovi/public_html/wp-includes/class-wp-fatal-error-handler.php:190\nStack trace:\n#0 /home/gokumovi/public_html/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)\n#1 /home/gokumovi/public_html/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false)\n#2 [internal function]: WP_Fatal_Error_Handler->handle()\n#3 {main}\n thrown in /home/gokumovi/public_html/wp-includes/class-wp-fatal-error-handler.php on line 190\n
2nd error :
Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in /home/gokumovi/public_html/wp-includes/formatting.php:4316\nStack trace:\n#0 /home/gokumovi/public_html/wp-includes/class-wp-fatal-error-handler.php(190): esc_url('https://wordpre...')\n#1 /home/gokumovi/public_html/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)\n#2 /home/gokumovi/public_html/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false)\n#3 [internal function]: WP_Fatal_Error_Handler->handle()\n#4 {main}\n thrown in /home/gokumovi/public_html/wp-includes/formatting.php on line 4316\n

Related

Issue with cache Symfony2

I have a problem when I make a change in symfony2 and when I refresh the page, the cache does not get regenerated. The log tells me the following:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'Symfony\\Component\\HttpKernel\\Config\\FileLocator' not found in /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache:2812\nStack trace:\n#0 /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache(2769): Symfony\\Component\\HttpKernel\\Kernel->getContainerLoader(Object(Symfony\\Component\\DependencyInjection\\ContainerBuilder))\n#1 /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache(2721): Symfony\\Component\\HttpKernel\\Kernel->buildContainer()\n#2 /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache(2493): Symfony\\Component\\HttpKernel\\Kernel->initializeContainer()\n#3 /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache(2531): Symfony\\Component\\HttpKernel\\Kernel->boot()\n#4 /var/www/vhosts/coosur.com/httpdocs/releases/840/web/app.php(18): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#5 {main}\n thrown in /var/www/vhosts/coo...', referer: https://www.XXXX.com/
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'Symfony\\Component\\HttpKernel\\Config\\FileLocator' not found in /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache:2812\nStack trace:\n#0 /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache(2769): Symfony\\Component\\HttpKernel\\Kernel->getContainerLoader(Object(Symfony\\Component\\DependencyInjection\\ContainerBuilder))\n#1 /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache(2721): Symfony\\Component\\HttpKernel\\Kernel->buildContainer()\n#2 /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache(2493): Symfony\\Component\\HttpKernel\\Kernel->initializeContainer()\n#3 /var/www/vhosts/coosur.com/httpdocs/releases/840/app/bootstrap.php.cache(2531): Symfony\\Component\\HttpKernel\\Kernel->boot()\n#4 /var/www/vhosts/coosur.com/httpdocs/releases/840/web/app.php(18): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#5 {main}\n thrown in /var/www/vhosts/XXX...'
Besides, if I make a change and reload the page, the result is the next:
�Tf8utf8_general_ciPRIselect,insert,update,referencesNEVERvarchar(17),8�defpsalocalesactiveNOenumutf8utf8_general_ciselect,insert,update,referencesNEVERtrueenum('false','true')
Any idea?

Unable to open the wordpress website getting http error

[14-Sep-2018 07:00:57 UTC] PHP Warning: require(/home/website/public_html/learn/wp-includes/embed.php): failed to open stream: No such file or directory in /home/website/public_html/learn/wp-settings.php on line 201
[14-Sep-2018 07:00:57 UTC] PHP Fatal error: require(): Failed opening required '/home/website/public_html/learn/wp-includes/embed.php' (include_path='.:/opt/alt/php71/usr/share/pear') in /home/website/public_html/learn/wp-settings.php on line 201
Getting this error while trying to open the website which is developed in wordpress.This is the sub domain which we created.
Seems like the embed.php is missing in the given directory . did you check it ?

website fatal error after wordpress upgrade

I get this error after upgrading to the last wordpress version
Fatal error: Call to undefined function is_posts_page() in /home/modernis/public_html/wp-content/themes/room09/home.php on line 19
this is the site with the problem: http://modernist.ro/

Fatal error: Uncaught exception 'ReflectionException' with message 'Class Cl\CommonBundle\Entity\integer does not exist

I have developed application in symfony2.3, it's working perfect in development environment but while I move to production it throws error. I tried but it can't resolve.
Following all error comes form different page :
This error comes while I tried to access my home page.
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Cl\CommonBundle\Entity\integer does not exist' in /opt/lampp/htdocs/Cl/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php:795 Stack trace: #0 /opt/lampp/htdocs/Cl/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php(795): ReflectionParameter->getClass() #1 [internal function]: Doctrine\Common\Proxy\ProxyGenerator->generateMethods(Object(Doctrine\ORM\Mapping\ClassMetadata)) #2 /opt/lampp/htdocs/Cl/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php(276): call_user_func(Array, Object(Doctrine\ORM\Mapping\ClassMetadata)) #3 /opt/lampp/htdocs/Cl/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php(155): Doctrine\Common\Proxy\ProxyGenerator->generateProxyClass(Object(Doctrine\ORM\Mapping\ClassMetadata), '/opt/lampp/htdo...') #4 /opt/lampp/htdocs/Cl/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php(71 in /opt/lampp/htdocs/Cl/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php on line 51
When I clear cache of production environment in command line, it throws following exception :
[Doctrine\Common\Proxy\Exception\UnexpectedValueException]
The type hint of parameter "user" in method "setUser" in class "Cl\CommonBundle\Entity\GroupEventComment" is invalid.
[ReflectionException]
Class Collegelife\CommonBundle\Entity\integer does not exist
Once this has been solved then it throws to other class, so I can't understand that what's happen.
When I tried to login into page :
it shows me error like :
Fatal error: require(): Failed opening required '/opt/lampp/htdocs/collegelife/app/cache/prod/doctrine/orm/Proxies/__CG__CollegelifeCommonBundleEntityUniversity.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/collegelife/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 207
I had the same question and resolved it.
Because My Entity's setting.
You can't type hint on a scalar type (integer/string/boolean etc) in PHP. e.g.
public function setSortOrder(\integer $sortOrder)
Should be:
public function setSortOrder($sortOrder)

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Unable to load class "Twig_Extension_Escaper"'

I have this error in my system in the production server, but I have no idea why cause in my development server everything run fine.
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Unable to load class "Twig_Extension_Escaper"' in /home/content/79/11253479/html/witf/path/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php:259 Stack trace: #0 /home/content/79/11253479/html/witf/path/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php(98): Symfony\Component\ClassLoader\ClassCollectionLoader::getOrderedClasses(Array) #1 /home/content/79/11253479/html/witf/path/app/bootstrap.php.cache(2303): Symfony\Component\ClassLoader\ClassCollectionLoader::load(Array, '/home/content/7...', 'classes', false, false, '.php') #2 /home/content/79/11253479/html/witf/path/app/bootstrap.php.cache(2139): Symfony\Component\HttpKernel\Kernel->doLoadClassCache('classes', '.php') #3 /home/content/79/11253479/html/witf/path/app/bootstrap.php.cache(2173): Symfony\Component\HttpKernel\Kernel->boot() #4 /home/content/79/11253479/html/index.php(27): Symfony\Component\HttpKernel\Kernel->handle(Object(S in /home/content/79/11253479/html/witf/path/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php on line 259
please try composer update -o and afterwards app/console cache:clear --env=prod.
Further check that the file vendor/twig/twig/lib/Twig/Extension/Escaper.php actually exists on your production server.

Resources