• Resolved stefanodg

    (@stefanodg)


    Hi, SG Optimizer plugin fails to optimize images but crashes. Also when I go to update the site theme it gives me the following errors

    Warning: scandir(): Directory name cannot be empty in /home/customer/www/locchiodelcineasta.com/public_html/wp-content/plugins/sg-cachepress/core/Supercacher/Supercacher.php on line 374

    Warning: array_diff(): Argument #1 is not an array in /home/customer/www/locchiodelcineasta.com/public_html/wp-content/plugins/sg-cachepress/core/Supercacher/Supercacher.php on line 377

    Warning: Invalid argument supplied for foreach() in /home/customer/www/locchiodelcineasta.com/public_html/wp-content/plugins/sg-cachepress/core/Supercacher/Supercacher.php on line 379

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @stefanodg

    The plugin uses the wp cron functionality to optimize the images.

    Please enable the wp cron and the images will be optimized.

    Regards,
    Stanimir

    @sstoqnov,

    Please clarify. We use a Real Cron and are not experiencing any issues with the image optimizer.

    Based on what you stated above, are you saying we’re getting a false positive when using a Real Cron? Do we have to switch to WP Cron every time we upload a new image in the backend and/or click the optimization button?

    Cheers!

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @jetxpert

    Yes and no ??

    The new image optimization uses a WordPress hook, and once a new image is uploaded, it’s automatically optimized/converted to webp.

    But, when you want to optimize the existing images, the plugin uses the wp cron functionality. We need the cron, because we optimize the images on batches.
    Each batch optimizes ~200 images from the media gallery and all image sizes generated by plugins/themes.

    Once a batch is completed, another one is started by scheduling a new cron job.
    We do this because if we optimize all images in a single process, the chances to hit max_execution_time are high.

    Regards,
    Stanimir

    @sstoqnov,

    Thanks for the explanation. We though it was as easy as clicking your optimization button. Apparently, we’ve been doing it wrong.

    So, if you don’t mind, what are the steps for optimizing our images under the following condition?

    (1) cPanel Users

    (a) Using WP Cron
    (b) Using Real Cron

    (2) Site Tools User:

    (a) Using WP Cron
    (b) Using Real Cron

    Is their a blog that explains the above? (conditions and process for optimizing images using SG optimizer?)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Complete plugin functioning problem’ is closed to new replies.