Smush server was unable to access images from your site.

Hello,

I get this message:

Smush server was unable to access images from your site.

… I had previously tried to send a smush request, which actually resulted in a crash of my site

“Allowed memory size of 67108864 bytes exhausted”

Now its not letting me re-smush the images.

Also, I would rather that it didnt kill the site too.

thanks!

  • Michael Bissett
    • Recruit

    Hey @dann! :slight_smile:

    On that issue regarding the memory, it sounds like only 64 MB of memory is allocated to WordPress here (which isn’t much).

    We can remedy that though by inserting the following into the wp-config.php file, just about the “That’s it, stop editing” line:

    define( 'WP_MEMORY_LIMIT', '256M' );

    If that doesn’t get things going here, you can try following the advice mentioned in this post to reset the smush request:

    https://premium.wpmudev.org/forums/topic/are-the-smush-servers-working#post-801839

    Let me know if that helps please! :slight_smile:

    Kind Regards,

    Michael

  • Vaughan
    • Support/SLS MockingJay

    Hi Dann,

    Not sure the memory issue has anything to do with not finding the images. But either way, you will certainly need to increase your memory_limit on the server.

    You can try adding the following line to your wp-config.php

    define('WP_MEMORY_LIMIT', '256M');

    I do note though, your system shows as being 256M already, so your host might be restricting memory on specific processes, you may need to ask them about that.

    To reset the smush request, can you add the following to your theme functions.php

    delete_option('wp-smpro-sent-ids');
    delete_option('wp-smpro-bulk-sent');
    delete_option('wp-smpro-bulk-received');
    delete_option('wp-smpro-current-requests');
    delete_site_option('wp-smpro-current-requests');
    global $wpdb;
    $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key='wp-smpro-is-smushed' OR meta_key='wp-smpro-smush-data' OR meta_key LIKE '%wp-smpro-request%' ");

    Then go to your site & refresh any front-end page.

    Once done, remove the code (important)

    Then check the smush page again and hopefully you’ll be able to resend the request.

    Hope this helps

  • Umesh Kumar
    • Code Wrangler

    Hi @dann,

    I’m extremely sorry for not taking care of the issue earlier, it got skipped somehow.

    However, I’d love to help you now.

    I just need few details:

    You can go to

    https://premium.wpmudev.org/contact/

    On the contact form, select “I have a different question

    Can you please send in:

    – In the subject field add “Attn: Umesh Kumar”

    – Link back to this thread

    – Include admin/network access

    – Include FTP

    – Include any relevant URLS for your site

    this ensures it comes through and gets assigned to me.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.