Error posting to API: 500 Internal Server Error

Hello,
I downloaded WP Smush it Pro today, and while smushing, I keep getting multiple errors saying: "Error posting to API: 500 Internal Server Error." Do you happen to know what this could mean? I have attached a screenshot to help. Thank you!

  • Dimitris

    Hey there Jessica,

    hope you're doing good and thanks for reaching us! :slight_smile:

    Could you please access your server through FTP, edit the wp-config.php file and insert the following line just above the /* That's all, stop editing! Happy blogging. */ comment
    define('WP_MEMORY_LIMIT', '256M');
    Ref: https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
    You should be seeing this change in WPMUDEV -> Support -> System Info [button] -> WordPress [tab].

    Then try to increase the max_execution_time value to 300 as described here
    https://premium.wpmudev.org/blog/increase-memory-limit/
    (you may have to contact your hosting provider about this)
    You should be seeing this change in WPMUDEV -> Support -> System Info [button] -> PHP [tab].

    After doing so, try to perform another bulk smush. If the errors continues and as the http error code 500 is pretty generic, could you please access your server through FTP, edit the wp-config.php file, find a line like
    define('WP_DEBUG', false);
    and replace it with the following (if the above line doesn’t exist, simply insert next snippet just above the /* That's all, stop editing! Happy blogging. */ comment)

    // Enable WP_DEBUG mode
    define('WP_DEBUG', true);
    // Enable Debug logging to the /wp-content/debug.log file
    define('WP_DEBUG_LOG', true);
    // Disable display of errors and warnings
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors', 0);

    Then go ahead and try to replicate the error by bulk smushing some images.
    By doing so, a /wp-content/debug.log file should be created.
    Simply download it, rename it to debug.txt and attach it here in your next reply.
    Finally, grant us with support access to your website via WPMUDEV Dashboard plugin as described in next link (no need to share credentials):
    https://premium.wpmudev.org/docs/getting-started/getting-support/#chapter-4

    Warm regards,
    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.