Problem Smush Pro

I am using Smush Pro, but the error always appears:

Skipped due to a timeout error. You can increase the request timeout to make sure Smush you have enough time to process larger files. define ('WP_SMUSH_API_TIMEOUT', 150);.

I have placed the following code in the functions.php file as mentioned here https://premium.wpmudev.org/forums/topic/getting-this-every-time-i-run-smush-pro-smush-time-out, but the problem persists.

add_filter ('WP_SMUSH_API_TIMEOUT', 'wpmu_api_timeout');
function wpmu_api_timeout () {
  return 300;
}

I'm using Plesk, my server has 2Vcore, 4 gigs of ram and 100gb of hard disk SSD, so at the level of resources is not the problem.

  • Dimitris

    Hello there designer,

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

    Did you try to increase even further the timeout value, maybe try 600.

    Could you also proceed with a conflict test? First create a recent backup in case you lose any settings during the test and have to restore to a previous working state.
    Then deactivate all plugins and MU-plugins apart from WPMUDEV Dashboard and Smush Pro, activate a default theme like TwentySeventeen, clear all caches and check again if the issue is still there. If not, it means that something is conflicting, so start activating the remaining plugins and theme, one by one this time, checking every time for the reported issue, until you reproduce the issue, thus finding the conflicted combination. The following flow chart image can assist you during this test: https://premium.wpmudev.org/wp-content/uploads/2015/09/Support-Process-Support-Process.gif
    If this is a live website with traffic, I'd rather advice to create a staging environment, meaning a complete and exact copy of this installation into another location/folder in the same server, using a separate database, and perform the test in there instead without worrying about live site.
    Reference: https://premium.wpmudev.org/docs/getting-started/getting-support/#chapter-2

    If conflict test reveals nothing, please grant temporary support access via WPMUDEV Dashboard plugin. No need to share any WP admin credentials. Just navigate in WP admin area under WPMU DEV -> Support page and click on the "grant support access" button. You can find detailed information about it here: https://premium.wpmudev.org/docs/getting-started/getting-support/#chapter-5
    Please do reply back here when access is granted because we don't get any notifications about it.

    Thank you,
    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.