Symfony Compile Error Failed opening required Proxies - symfony

I download a new sylius 1.5 project and i deploy it on a sharedhost server. In local all work very well both in dev and prod environnement. But online prod env don't work. Here is the exception in prod log
Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException:
Compile Error: require(): Failed opening required 'var/cache/prod/doctrine/orm/Proxies/__CG__some-file.php' (include_path='.:/usr/share/php7:/usr/share/php') at vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 223
I don't know how to resolve this problem. thanks
When i laod page for the first time the page it work. But when i click on link or refresh the page i have a blank page with message
this page is currently unable to handle this request
In cPanel Configure PHP INI basic settings section i enable display_errors and when i refresh the page this error is displayed
Fatal error: require_once(): Failed opening required 'phar:///home/ki327452/public_html/acme/vendor/phpstan/phpstan-shim/phpstan.phar/vendor/autoload.php' (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/ki327452/public_html/acme/vendor/phpstan/phpstan-shim/bootstrap.php on line 8
I wait a few moment and when i refresh again it works.And that is a boucle in which i am.

Related

Strange issue with wordpress - critical error but nothing in debug.log

I have just put some changes to a wordpress theme live, it all works on the staging server but for some reason it's giving a critical error on the live site.
As normal i go and look at the debug.log file and there is no fatal error is showing in that file, and no error_log is showing it either.
Any ideas on why it's not recording the fatal error (usually that is what causes the wordpress critical error)
Probably, the "fatal error" you're talking about occurred before WordPress was initialized. For example, if the code, that triggers the error is located in index.php of your active theme.
In this case, try to find error messages not in wp-content/debug.log, but in webserver logs folder /var/log/httpd/error_log/ or /var/log/apache2/error.log

wordpress Error establishing a database connection, the page can not display

I am very new to Wordpress. I uploaded data to cpanel, but when I tried to borrows the link to display the website I get this message when I look at the error log.
Error establishing a database connection
There were the below two error messages. I hope somebody can help me.
PHP Warning: require(/home/.../public_html/wp-includes/load.php): failed to open stream: No such file or directory in /home/.../public_html/wp-settings.php on line 19
PHP Fatal error: require(): Failed opening required '/home/.../public_html/wp-includes/load.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/.../public_html/wp-settings.php on line 19
Most likely you have a bad (incomplete) file upload.
Try to upload again your Wordpress installation.

Suddely files started missing from Wordpress and showing errors

My domain: bharahobe.info
I have installed WordPress in main domain and sydney theme. Everything was okay. Suddenly when I visit my site it shows error messages. Like this:
Warning: require(/home/bharahob/public_html/wp-includes/pomo/mo.php):
failed to open stream: No such file or directory in
/home/bharahob/public_html/wp-settings.php on line 102
Fatal error: require(): Failed opening required
'/home/bharahob/public_html/wp-includes/pomo/mo.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/bharahob/public_html/wp-settings.php on line 102
What should I do now?
If you have access through FTP or SSH, you should log into the server and verify that those files exist. The files may have been deleted by a bot or botched upgrade. The permissions may have changed as well.
If the files are actually missing, you can probably get away with downloading the version of WP you're currently running and replace the missing files.

symfony 2.8 debug fatal error double message

Environment: Symfony 2.8.1 with XAMPP Version 5.5.24 on Windows 7.
If I trigger a fatal error in a controller, anything as simple as $array = ; in production environment, I'm getting a default php error:
Parse error: syntax error, unexpected ';' in C:\xampp\htdocs\tgsupport-test\src\AppBundle\Controller\DefaultController.php on line 16
followed by symfony custom error page message. Obviously I'd want to avoid to show eorr info in production.
Moreover in prod.log I see a double critical error: under php.CRITICAL and request.CRITICAL. Is really useful to show the same error twice?
I'm using default configuration, indeed I just installed default framework without any custom setting and I triggered my error in AppBundle/DefaultController, so I was wondering if I'm missing anything.
I missed a php.ini configuration to avoid to display error messages in page.

Fatal error when copying wordpress site from server to localhost

I've been trying to create a local copy of this wordpress site - click4taps.co.uk. But even though everything seems to run pretty much fine on the server, on localhost I am getting these code errors, I would have maybe expected a database error if I had forgot something in the setup. I'm not super good at php but I can't see anything that out of place in the code the error specifies.
Here is the error message I receive when trying to launch the site in localhost:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'woocommerce_layered_nav_init' not found or invalid function name in C:\Program Files (x86)\Ampps\www\click4taps\wp-includes\plugin.php on line 406
Fatal error: Call to undefined function is_product() in C:\Program Files (x86)\Ampps\www\click4taps\wp-content\themes\bazar\theme\plugins\woocommerce-ajax-layered-nav\init.php on line 59
Any feedback on this would be very helpful thanks
Activate your woocommerce plugin

Resources