• Resolved Kramarz

    (@kramarz)


    Hi Guys,

    On one of the websites I manage, when trying to smush images, nothing happens and all I get is this (when inspected using console):

    GET …/wp-admin/admin-ajax.php…n=wp_smushit_manual&attachment_id=823&get_next=0 500 Internal Server Error 613ms

    Any ideas about the cause?

    https://wordpress.org/plugins/wp-smushit/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Umesh Kumar

    (@umeshsingla)

    Hi @kramarz,

    Can you enable debug log on your site and check debug.log, what error you are getting?

    https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

    Cheers

    Thread Starter Kramarz

    (@kramarz)

    Funny, it stared to smush now, but then stopped after some images…

    Anyway, this is the debug note:

    [16-Apr-2015 11:19:49] PHP Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 219053 bytes) in …/httpdocs/wp-content/plugins/wp-smushit/wp-smush.php on line 549

    Thread Starter Kramarz

    (@kramarz)

    Further investigating it looks like it just throws that error on images around 200KB or bigger, smaller sized images get processed no problem when doing so manually.

    Thread Starter Kramarz

    (@kramarz)

    Ok, solved the problem by adding
    define(‘WP_MEMORY_LIMIT’, ’64M’);
    in wp-config.php

    Don’t know why that helped cause website is kind of light as to using resources, but… smushing works fine now.

    So marking as resolved, but if you would have anything to add, please do 😉

    Umesh Kumar

    (@umeshsingla)

    Hi @kramarz,

    That makes sense, too low memory was allocated, 52MB.

    Smushing includes file operations, reading and writing, it requires more memory.

    It’s good, if it works at 64M for you, otherwise keep it at 128M instead.

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘500 Internal Server Error’ is closed to new replies.