Support » Fixing WordPress » Fatal Error When Uploading Media

  • Good morning!

    I’m running into some issues when attempting to upload media. This doesn’t appear to be image size or dimension specific. I’m receiving the error below for a 53kb file or a 2mb file.

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/smithand/public_html/wordpress/wp-includes/class-wp-image-editor.php on line 334

    The upload progress bar will reach 100%. The error is displayed when attempting to crunch the image.

    I’ve deactivated my plugins, re-installed 3.5 and re-activated the plug-ins. Unfortunately, the error still shows.

    The interesting part is that once I go back the media centre, the image(s) in question display. However, if I attempt to ‘view’ them, I get the following error:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/smithand/public_html/wordpress/wp-content/themes/shoppica/library/core.php on line 549

    I’ve never had a problem with the image size in the past. Any help would be much appreciated!


Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p


    Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems?

    Hi t-p,

    Thanks for the reply. Yes, I deactivated the plug-ins one by one but that didn’t seem to resolve the issue.

    I switched to twenty eleven and everything uploaded properly.

    I reverted back to the theme in question and uploaded a php.ini file to /wp-admin with the following:

    max_execution_time = 300 ; Maximum execution time of each script

    Not sure if this was the correct method, but it appears to have fixed the problem. Still unsure why the upgrade caused the error. I suppose something to do with the theme I’m using.

    Moderator t-p


    I suppose something to do with the theme I’m using.

    that would be my guess.

    I am glad you got it sorted out 🙂

    Warning: imagejpeg() [function.imagejpeg]: Unable to open ‘/wp-content/uploads/et_temp/slide-11-65232_83x83.jpg’ for writing: No such file or directory in/var/www/wordpress/wp-includes/class-wp-image-editor.phpon line 334
    our website updated this path but this images not shown please send to me resolved problem asap

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error When Uploading Media’ is closed to new replies.