Wordpress Fatal error: Maximum execution time of 30 seconds exceeded

Asked by:
HubFans / n/a Points
Time:
2014-04-29 10:22 am EST
Category:
Wordpress
Hits:
6,770


I am having a problem uploading images, I get an error:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/kickon5/public_html/jeremysavage.com/wp-includes/class-wp-image-editor-imagick.php on line 355

Its weird because it doesnt take 30sec. to generate the error, it happens within 3 sec.

I have read to edit the php.ini file on my server and extend the max execution time:
max_execution_time = 600 ; Maximum execution time of each script, in seconds

I did that but I am still getting the error. Any idea what I can do to fix the problem?
Thanks

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

JeffMa
Staff
2,342 Points
2014-04-29 3:35 pm EST
I took a look at your account and it looks like you have made changes to your php.ini file, but it only affects the immediate files in your public_html directory as you have not set it to be recursive. Setting your php.ini to recursive should fix the max execution time errors.

To submit a comment on this answer, please first login.

Thanks Jeff,
I am not sure where I should put the line of code, so I put it at the end. Will this work???

# To set your custom php.ini, add the following line to this file:
# suphp_configpath /home/yourusername/path/to/php.ini

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

suPHP_ConfigPath /home/k*******5/public_html
savage925
3 Points

2014-04-29 9:47 pm EST
Hello savage925,

You actually will want to put it at the very top of your .htaccess file. You can actually see the same setting on the second line that is currently commented out with a # symbol.

Please let us know if you had any other questions at all.

- Jacob
JacobN
3,713 Points
Staff
2014-04-29 10:03 pm EST
Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}