rpaxtian Posted August 5 Share Posted August 5 Since I started using prestashop version 8.x a few weeks ago, I'm talking about a clean installation, from scratch, I frequently get this error "502 Bad Gateway", if I'm browsing the product list and open a product I get this error, but only when I open the products because if I go back and enter any page of the CMS or in the prestashop categories it works normally. To do this I have to delete the cookies, my concern is that not all my clients know how to delete cookies. Is there a solution? Link to comment Share on other sites More sharing options...
FME_Modules Posted August 7 Share Posted August 7 On 8/6/2024 at 3:52 AM, rpaxtian said: Since I started using prestashop version 8.x a few weeks ago, I'm talking about a clean installation, from scratch, I frequently get this error "502 Bad Gateway", if I'm browsing the product list and open a product I get this error, but only when I open the products because if I go back and enter any page of the CMS or in the prestashop categories it works normally. To do this I have to delete the cookies, my concern is that not all my clients know how to delete cookies. Is there a solution? A "502 Bad Gateway" error in Prestashop can be caused by server issues or configuration problems. To fix it, try: Checking server logs for detailed error information. Clearing Prestashop’s cache and regenerating the .htaccess file. Increasing PHP limits like max_execution_time and memory_limit. Maybe any module cause the problem, Kindly check if there any module related to cms pages. Thanks Link to comment Share on other sites More sharing options...
ZHSoft Posted August 7 Share Posted August 7 First, open the DEBUG mode in the backend Then open the product page and check the error message, which will help you locate the problem quickly. Link to comment Share on other sites More sharing options...
rpaxtian Posted August 7 Author Share Posted August 7 hace 7 horas, ZHSoft dijo: First, open the DEBUG mode in the backend Then open the product page and check the error message, which will help you locate the problem quickly. When activating debug mode, it shows the following error which also appears in the server lgs the following error appears even in the server logs: Warning: file_exists(): open_basedir restriction in effect. File(/views/templates/hook/style.tpl) is not within the allowed path(s): (/var/www/vhosts/rpaxtian.com/:/tmp/) in /var/www/vhosts/rpaxtian.com/tienda.rpaxtian.com/classes/module/Module.php on line 2292 In other forum topics they say that this does not affect the operation. but when opening a product page, it directly launches the 502 error page, exits prestashop to display that error page Link to comment Share on other sites More sharing options...
ZHSoft Posted August 8 Share Posted August 8 First, make sure the /views/templates/hook/style.tpl file exists? Then, it may be a permission setting issue. Please set the following directories to recursive 755 permissions and try again. /views/templates/hook/ /var/cache/ Finally, if it still doesn't work, please send your error to your server provider and ask them to set permissions. Good luck. Link to comment Share on other sites More sharing options...
rpaxtian Posted August 22 Author Share Posted August 22 HE ENCONTRADO QUE ESE ERROR SE PRESENTA CUANDO INCIO SESIÓN EL EN BACKEND COMO ADMIN Y EN EL FRONTEND COMO CLIENTE... PRoblema persistente NO RESUELTO Link to comment Share on other sites More sharing options...
El Patron Posted August 28 Share Posted August 28 if anyone gets this, move hosting, I have seen this reported to hosting who put 'all' resources on it, and they could not fix. run don't walk to new hosting 1 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