I am getting this error on my wordpress website admin when trying to upload a product image: Fatal error: Maximum execution time of 30 seconds exceeded in /ho

Avatar
  • Answered
Help!
Avatar
JacobIMH
Hello tinyolive, and thanks for your question. Unfortunately it looks like your question got cut off as you tried to enter everything into the subject of the question. I also couldn't find the email account associated with your account in our system to see what hosting account you're using. It sounds like you're hitting the default 30 second maximum execution time for PHP scripts. You can alter the max_execution_time setting in your php.ini file in your /public_html/ directory to a higher value to avoid this problem. Then you'd want to make your php.ini file recursive so that those settings apply for all of your sub-directories. If you can let us know your cPanel username than we can go ahead and make a copy of the server's default php.ini file for you and place it in your /public_html/ directory, and then you would have the ability to go in and edit your settings to match what you need. If it's taking longer than 30 seconds to upload a product image, you might want to also consider trying to optimize the image for the web prior to uploading it via WordPress. All in all when dealing with PHP script uploads these are the settings you would want to adjust in your php.ini file to ensure you don't encounter any problems:
  • upload_max_filesize
  • max_input_time
  • memory_limit
  • max_execution_time
  • post_max_size
If you can't figure out adjusting these on your own to get things working for you, please let us know your cPanel username and like I said we can copy of the server's php.ini file for you. - Jacob