This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Aleyska image editor error 322

  • Creator
    Topic
  • #13282
    ercroof
    Member

    Hello,
    First let me say that I love our theme and don’t want to get rid of it.

    We are using WP V 3.7.1; Aleyska 3.0.3; site is http:/emergencyrestoration.co; btw, I’m a construction business owner and our site is the only one I’ve ever worked on. I don’t claim to be an expert of any degree. Two issues I’m having…

    (1 of 2 and by far the more important to me)
    When attempting to upload pictures to the media library using either the multi-file uploader or the browser uploader, the file will load to 98%, time out and give me the following error message:

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

    Then it will say “crunching” until I click I navigate away.

    In the media library it will have created a location for the image but shows no thumbnail.

    When I open the image location and select “edit image” I get the following error message every time:

    Image data does not exist. Please re-upload the image.

    I made TwentyTwelve my active theme and deleted Aleyska and the image uploaders and edit functionality worked. When I downloaded Aleyska again (updated version 3.0.3) functionality ceased again. Any insight?

    (issue 2 of 2)
    In Aleyska v3.0.3, I can’t find the background texture option. Any assistance is much appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #13296
    Jason Bobich
    Keymaster

    Hello,

    I’ve honestly never had anyone report this issue, but when I search about it seems to be a very common general issue with WordPress along with different things, not just uploading media. I have a feeling it’s something to do with theme just requiring more things to happen when you’re uploading an image than the default WP theme would, and this is just too much for your server to handle.

    The theme registers 12 crop sizes, where I’m guessing the default WP themes don’t register any. So that means every time you upload an image, it has to take your image and make a copy in all 12 crop sizes (along with any other crop sizes other plugins you might be using have registered). It’s possible this combined with maybe an overly large image you’re uploading is too much?

    If it is the theme just registering too many crop sizes for your system to handle, there are things we could probably do to work around that by removing some. As an experiment, you can try putting this in your theme’s functions.php:

    remove_action( 'after_setup_theme', 'themeblvd_add_image_sizes' );

    That will make it so the theme doesn’t register any crop sizes. If the problem goes away, then we can start scaling back the crop sizes registered to just the ones that correspond to features you’re using.

    If you want to give me a login to your WP admin, I can figure this out for you. If you want that, you can send the info by going to My Account > Submit Private Info here on the support website. Let me know if you do that.

    In Aleyska v3.0.3, I can’t find the background texture option. Any assistance is much appreciated!

    Now, you just need to set it up from Appearance > Background. Here’s a video that explains:

    https://vimeo.com/70263392

    Make sure to always read through the changelog when making updates:

    http://themeblvd.com/changelog?theme=alyeska

    #13357
    ercroof
    Member

    Jason,

    Thanks for the direction on the background. I just tried to upload the background image from the Alyeska: all files & documentation folder downloaded from Themeforest and received the same error message that I get when trying to upload a file to the media library:

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

    Thanks again for your help!

    #13380
    Jason Bobich
    Keymaster

    So, did you try adding this in there so we can determine if your issue is simply a matter of being overloaded with crop sizes?

    remove_action( 'after_setup_theme', 'themeblvd_add_image_sizes' );
    #13394
    ercroof
    Member

    Boom…that worked! I have to admit…I was nervous about messing with the code! Images are uploading now and I can edit them.

    Is this where I would permanently change the image sizes that are automatically registered?
    function alyeska_image_sizes( $sizes ) {
    $sizes[‘slider-large’][‘width’] = 940;
    $sizes[‘slider-large’][‘height’] = 350;
    $sizes[‘slider-staged’][‘width’] = 542;
    $sizes[‘slider-staged’][‘height’] = 312;
    return $sizes;
    }
    add_filter( ‘themeblvd_image_sizes’, ‘alyeska_image_sizes’ );

    #13405
    Jason Bobich
    Keymaster

    Glad to hear you conquered your fear!

    What you want to do here is unset() the ones you don’t need. You can find a full list of ID’s here:

    http://dev.themeblvd.com/tutorial/crop-sizes/

    So, for example, let’s say you’ve determined you don’t need grid_3, grid_4, and grid_6. Then, you’d remove these like this:

    function my_image_sizes( $sizes ) {
    	
    	unset( $sizes['grid_3'] );
    	unset( $sizes['grid_4'] );
    	unset( $sizes['grid_6'] );
    
    	return $sizes;
    }
    add_filter( 'themeblvd_image_sizes', 'my_image_sizes' );

    However, now we’ve made the assessment, making customizations like this should be done from a child theme. You want to install a child theme and put your code in its functions.php. If you don’t do this, you’re going to end up losing your customization next time you update the theme.

    Here’s a basic overview of using a child theme:

    http://vimeo.com/70832266

    And here’s some helpful info about switching to a child theme after you’ve started your website:

    http://dev.themeblvd.com/tutorial/switching-to-a-child-theme-after-youve-already-started-building-your-website/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.