• Resolved Mick Levin

    (@mick-levin)


    Same as https://www.ads-software.com/support/topic/plugin-causes-site-critical-error/.

    Happens after clicking UPDATE while editing media via non-grid media edit page.

    I can’t believe that after you decided to release the plugin to all www.ads-software.com users, you think that all hostings are exactly like SiteGround. Making it available to users of other hosting you should have accounted that most of them prohibit exec() and you need to refactor the code to make it compliant with the best practice.

    Message I receive in the Technical Issue email is following:

    Error Details

    An error of type E_ERROR was caused in line 176 of the file /home/xxx/public_html/wp-content/plugins/sg-cachepress/core/Images_Optimizer/Images_Optimizer_Webp.php. Error message: Uncaught Error: Call to undefined function SiteGround_Optimizer\Images_Optimizer\exec() in /home/xxx/public_html/wp-content/plugins/sg-cachepress/core/Images_Optimizer/Images_Optimizer_Webp.php:176
    Stack trace: 0 /home/xxx/public_html/wp-content/plugins/sg-cachepress/core/Images_Optimizer/Images_Optimizer_Webp.php(95): SiteGround_Optimizer\Images_Optimizer\Images_Optimizer_Webp::generate_webp_file() 1 /home/xxx/public_html/wp-content/plugins/sg-cachepress/core/Images_Optimizer/Images_Optimizer_Webp.php(241): SiteGround_Optimizer\Images_Optimizer\Images_Optimizer_Webp->optimize() 2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): SiteGround_Optimizer\Images_Optimizer\Images_Optimizer_Webp->regenerate_webp_copy() 3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 5 /home/xxx/public_html/wp-includes/post.php(4791): do_action() 6 /home/xxx/public_html/wp-includes/post.php(6358): wp_insert_post() 7 /home/xxx/public_html/wp-includes/post.php(4976): wp_insert_attachment() 8 /home/xxx/public_html/wp-admin/includes/post.php(453): wp_update_post() 9 /home/xxx/public_html/wp-admin/post.php(227): edit_post() 10 {main}
    thrown

    • This topic was modified 1 month, 1 week ago by Mick Levin.
Viewing 1 replies (of 1 total)
  • Plugin Support Preslav Kenanov

    (@preslavkenanov)

    Hello @mick-levin,

    The Speed Optimizer indeed requires the exec() function to work properly. At the moment, there is no workaround for that, however, your feedback on the matter is appreciated and we will make sure to pass it to the developers of the plugin.

    In the meantime, as suggested in the forum thread you have mentioned, I can only suggest asking your hosting provider to enable the?exec()?function for your website.

    Kind Regards,

    Preslav Kenanov

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.