Tanker Posted August 10, 2018 Share Posted August 10, 2018 While developing in local host everything works fine: PHP 7.1 Apache 2.4 SQL 5.7 After moving to live server Front Page works fine, but the Dashboard has a few issues. Everything related to Sales works some how ok... Sometimes it trows a 500 error on any link. If debug is turned off it trows 500 error. by hard-coding error report we can see: Fatal error: Uncaught Twig_Error_Loader: The "/home/usersite\app/../src/PrestaShopBundle/Resources/views/Admin/Product" directory does not exist ("/home/usersite\app/../src/PrestaShopBundle/Resources/views/Admin/Product"). in /home/usersite/vendor/twig/twig/lib/Twig/Loader/Chain.php on line 129 ( ! ) Twig_Error_Loader: Template "@Twig/Exception/error.html.twig" is not defined. in /home2/usersite/vendor/twig/twig/lib/Twig/Loader/Chain.php on line 129 If debug mod is on it doesn't show Fatal or Critical error and most of the dashboard works fine, but soon as you turn off debug mod then and only then it trows that error but you can't see it by default, you have to turn on all errors... I have no idea why this is happening, PrestaShop 1.7.4.1, we have been building on 1.7.2 ... never had this type of error... Link to comment Share on other sites More sharing options...
fortiz Posted December 16, 2018 Share Posted December 16, 2018 Hi Tanker, I got exactly the same error, but I finally found a solution. In Prestashop background -> Configuration -> Shop parameters -> SEO & URLs -> URL configuration, I deactivated the Apache mod_security and the problem was solved. Probably you should do it in debug mode. I hope it works also for you 1 1 Link to comment Share on other sites More sharing options...
Mirgen Posted April 11, 2019 Share Posted April 11, 2019 On 12/16/2018 at 1:29 AM, fortiz said: Hi Tanker, I got exactly the same error, but I finally found a solution. In Prestashop background -> Configuration -> Shop parameters -> SEO & URLs -> URL configuration, I deactivated the Apache mod_security and the problem was solved. Probably you should do it in debug mode. I hope it works also for you Thank you, it was working for me as well. 1 Link to comment Share on other sites More sharing options...
ecentury Posted September 27, 2019 Share Posted September 27, 2019 If this does not work for you, its also worth manually deleting the prod cache folder in the SFTP, a backend clear cache will not do it. This fixed my issues by deleting the prod cache folder here: (always backup first) /var/cache/prod Link to comment Share on other sites More sharing options...
timoma Posted October 22, 2019 Share Posted October 22, 2019 On 12/16/2018 at 1:29 AM, fortiz said: Hi Tanker, I got exactly the same error, but I finally found a solution. In Prestashop background -> Configuration -> Shop parameters -> SEO & URLs -> URL configuration, I deactivated the Apache mod_security and the problem was solved. Probably you should do it in debug mode. I hope it works also for you Thank you, i already had Apache mod_security desactivated, when i activate the Apache mod_security then its working for me as well. Link to comment Share on other sites More sharing options...
MaTer22 Posted January 15, 2020 Share Posted January 15, 2020 On 9/27/2019 at 2:18 PM, ecentury said: If this does not work for you, its also worth manually deleting the prod cache folder in the SFTP, a backend clear cache will not do it. This fixed my issues by deleting the prod cache folder here: (always backup first) /var/cache/prod Thanks. This works for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now