Runtime Error when editing
-
At first, my problem was that when the Ecwid plugin was activated I couldn’t edit my wordpress site (when it was deactivated, there were no problems). I got the error message ‘critical error, an email with details has been sent’ from wordpress, but I never received the emails. Therefore I checked my server error logs in cpanel (I use WHC as a hosting service) and there were none. I then activated the debugging in wordpress in my wp-config.php file and this is the error which was logged: [04-Jul-2024 19:29:11 UTC] PHP Fatal error: ‘Maximum execution time of 30 seconds exceeded in /home/stickermania/public_html/wordpress/wp-includes/compat.php on line 473’. I tried updating my php version, deactivating all other plugins, changing theme, but nothing worked so I increased the maximum runtime in wp-config.php to 300:
@ini_set('max_execution_time', '300');
set_time_limit(300);I can now access the editor in wordpress after a few minutes of loading. I have absolutely no clue why the scrip takes so long to run. How can I reduce the runtime?
- You must be logged in to reply to this topic.