the_supermac Posted September 13 Share Posted September 13 Hi you all My backend returns me an error 500 when I click on Design/Positions... Frontend works apparently without problems. Theme is the standard Classic theme of PS, I maybe disabled some blocks in footer or somewhere else but using backend UI (not hard modifications directly on files) What can I do? (I have ftp access to server) Link to comment Share on other sites More sharing options...
Krystian Podemski Posted September 14 Share Posted September 14 You need to enable the developer module to understand what's going on better. You can do that by going to Adv. preferences -> Performance, or by editing config/defines.inc.php and changing _PS_MODE_DEV_ to true. Link to comment Share on other sites More sharing options...
the_supermac Posted September 16 Author Share Posted September 16 Thank you Krystian. I changed config/defines.inc.php as you told me but nothing changes during backend navigation.... same error 500... have I to check something else? Link to comment Share on other sites More sharing options...
Krystian Podemski Posted September 18 Share Posted September 18 It seems like an issue with memory_limit or max_execution_time in that case, is there any way for you to increase value in those settings on your server? This page is quite "heavy" since it loads information about all modules in the system at once. Link to comment Share on other sites More sharing options...
the_supermac Posted September 19 Author Share Posted September 19 I think is possible (I have a VPS with Plesk) but I don't know what to touch, may you detail your hint? Link to comment Share on other sites More sharing options...
Krystian Podemski Posted September 19 Share Posted September 19 I don't use Plesk but I found this: https://support.plesk.com/hc/en-us/articles/12377534576151-How-to-change-PHP-memory-limit-value-via-Plesk ...or you can contact server support Link to comment Share on other sites More sharing options...
the_supermac Posted September 19 Author Share Posted September 19 Thank you Krystian I entered via plesk php settings related to my domain and I have: 2048Mb as memory_limit 30sec as max_execution_time I don't think it's a "hardware/configuration limit" that crashes the page, it seems something else: Error 500 page appears after few seconds from click on menu, is not a timeout or similar... I had that response from apache when I made a php script with a division-by-0 bug, here PrestaShop behaviour is similar, as for an out-of-bounds array or a NULL unexpected value during page load (I wish I explained correctly my idea)... but what/how to check? Link to comment Share on other sites More sharing options...
ps8modules Posted September 19 Share Posted September 19 Hi. 1 Link to comment Share on other sites More sharing options...
the_supermac Posted September 19 Author Share Posted September 19 Quote Make sure to go to cpanel or plesk panel whatever your using and click on Apache and nginx settings for your domain.com you are using and insert this code click apply . <IfModule mod_security2.c> SecResponseBodyLimit 546870912 </IfModule> insert it in your Additional directives for HTTP and HTTPS Thank you ps8modules but I can't find where to write that directive on my Plesk panel.... the only Apache related page shows me activated modules, no way to write anything here, so I tried to edit htaccess in site root adding that rows but it crashes entire front and backend (error 500).. Link to comment Share on other sites More sharing options...
ps8modules Posted September 19 Share Posted September 19 1 Link to comment Share on other sites More sharing options...
the_supermac Posted September 19 Author Share Posted September 19 GOTCHA! ps8modules I was accepting your private proposal then I seen your reply and tried autonomally (I wasn't aware of that settings in Plesk) It works, thank you a lot mate! 1 Link to comment Share on other sites More sharing options...
ps8modules Posted September 19 Share Posted September 19 (edited) I was happy to help 😉 It will certainly be good to increase other parameters in the same setting, at the very bottom. If you have a more powerful VPS, you can set more in the Additional HTTP/HTTP directives: <IfModule mod_fcgid.c> FcgidMaxRequestsPerProcess 500000 FcgidIOTimeout 300000 FcgidBusyTimeout 3600 FcgidMaxRequestLen 1073741824 FcgidProcessLifeTime 7200 FcgidMaxProcessesPerClass 40 FcgidIdleTimeout 30000 FcgidProcessLifeTime 30000 </IfModule> <IfModule mod_security2.c> SecRequestBodyLimit 2147483647 SecRequestBodyNoFilesLimit 2147483647 SecResponseBodyLimit 546870912 </IfModule> Edited September 19 by ps8modules (see edit history) 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