Fatal Error When Uploading Images

ThemeBurn SupportForumsWordPress ThemesShoppica WordPress ThemeFatal Error When Uploading Images

This topic has been marked as resolved.

Hi,

Great job on the theme! I really like it, but I’m encountering this error when I attempt to upload any product image:

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

I receive this error when trying to manage the product images and setting a featured image.

Cheers.

 

January 14, 2013 at 9:19 pm #17140

Hello,

What is the size of image you are trying to upload?

ThemeBurn Team

January 14, 2013 at 9:37 pm #17144

Hi,

Dimensions are 2560×1920 but it’s only 1.5 mb in size.

Cheers

January 14, 2013 at 9:59 pm #17146

Hello,

you have to extend you execution time, because 30 second are not enought.

Create php.ini file in your wordpress installation and put inside:


max_execution_time = 300     ; Maximum execution time of each script

Also you can try to resize your image and try again.

Best,
ThemeBurn Team

January 14, 2013 at 10:12 pm #17147

Thanks so much for the quick replies! Unfortunately, that doesn’t work. If I attempt to set the ‘feature image’ the upload bar reaches 100%, however i still receive an error.

If I attempt to ‘manage product images’ i receive this:

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

This display regardless of the upload option (from url, from media library, etc.)

I’ve uploaded the same images to a previous theme on the same server and never run into issues before?

Cheers.

January 14, 2013 at 10:25 pm #17148

Hi,

I tried your suggestion and uploaded a much smaller file (52kb) and still received the same error.

I’ve flushed the template cache and only have one maintenance plug-in activated at the moment.

**UPDATE – Even though I receive the error when uploading an image, the product is still being displayed on the site. When I view the products in the admin panel, the product name is the error message.

Cheers.

  • This reply was modified 4121 days ago by  boxxer7.
January 14, 2013 at 10:52 pm #17153

Hello boxxer7,

The problem is not the size of the image, but it can be the permissions problem. Please set permissions to your uploads directory to 775.

If the problem still exists, we will need the website url, admin and ftp access, so we can check.

You can use hidepost to share private information with the support staff.

Best,
ThemeBurn team

January 15, 2013 at 7:41 am #17162

I changed the permissions but no such luck. The image was uploaded, but the same error displayed when attempting to crunch the image. I’ve provided the ftp/wordpress access below.

Thanks again for the help

  • This reply was modified 4120 days ago by  boxxer7.
January 15, 2013 at 7:57 am #17163

Just wanted to provide an update to this. It appears it’s a theme issue. I activated a different theme and didn’t receive any errors when uploading images of any size.

Hopefully it’s a quick fix. Really like theme aside from this issue.

Cheers.

January 15, 2013 at 10:03 pm #17226

Hello boxxer7,

We tested with two big images and one small and they are normally uploaded.

Can you please send us the image you are trying to upload to test?

Looking for your reply.

ThemeBurn Team

January 16, 2013 at 10:23 am #17246

Hi,

Just noticed something interesting. Based on your earlier suggestion, I added a ‘php.ini’ file to the /wp-admin folder.

This seemed to fix the issue (likely while you were attempting to solve it as well – sorry about that!), but in doing so it changed the text under the ‘choose file’ button from 10mb to 2mb.

I should point out that prior to addition of the ‘php.ini’ file, the size of the image (1mb or 5mb) still seemed to throw an error. Now anything under 2mb works fine.

I don’t have any reason to upload 10mb images, but just curious why that .ini file would cause the text to change?

Cheers.

January 16, 2013 at 9:23 pm #17292

Hi,

If you put this in php.ini, the button will show 10mb instead of 2mb.

You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!

But if 2MB is enough to you, leave it :)

Best,
ThemeBurn

January 17, 2013 at 10:51 am #17307
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.