• Resolved dhumeurvegetale

    (@dhumeurvegetale)


    Hi, i’ve got a daily cron event wpo_reset_webp_conversion_test_result it test several url (4) but none are working, files and folders exists but nothing append. My security plugin doesn’t allow the tests and now, because i done the cron event twice in a row, the IP address is blocked.

    …/wpo/module-loaded/rewrite/server-signature/test.php

    ../wpo/module-loaded/mime/server-signature/test.php

    ../wpo/module-loaded/headers/server-signature/test.php

    ../wpo/server-signature/on/test.php

    My question is it an important task or can i just delete the cron event ?

    otherwise how can i manage to make this cron event running well; i already allow the wpo namespace but it”s not enough….

    Thanks for your help….

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Venkat Raj

    (@webulous)

    @dhumeurvegetale It is not important unless you change server configuration. Even in that case, you can reset the method manually.

    So, you can delete the cron event.
    You add the code in your theme’s functions.php or using a code snippet plugin. Please refer screenshot.
    https://prnt.sc/DEWBwE2nGejP

    Thread Starter dhumeurvegetale

    (@dhumeurvegetale)

    Hi Raj.

    This way it unschedule the event just after it is called every days, it don’t delete the cron event at all.

    I’m going to do like you said because when i remove the event from WP Cron plugin it come again….

    What do you mean by changing the server configuration (i’m a rookie…)

    Thanks for your help

    Plugin Contributor Venkat Raj

    (@webulous)

    @dhumeurvegetale The event is registered on plugins_loaded hook with default priority. So, even if you remove the cron event it will be back when you refresh page and plugins are loaded.

    The given code unschedule the event using the same hook at later priority. So it won’t run.

    Let us say, you develop your site on localhost where the OS is linux and it supports redirects. However, when you go live your hosting provider uses Nginx server which doesn’t support .htaccess file redirects. In that content WP-Optimize automatically resets how it serves webp images.

    Thread Starter dhumeurvegetale

    (@dhumeurvegetale)

    Hi @webulous , Yesterday I did like you said last post, I added the code in my theme function.php file, but this morning at 08h the cron evnt is still working….

    add_action('plugins_loaded', 'wpo_unschedule_webp_event', 11);
    
    function wpo_unschedule_webp_event(){
        $tstamp = wp_next_scheduled('wpo_reset_webp_conversion_test_result');
        wp_unschedule_event($tstamp, 'wpo_reset_webp_conversion_test_result');
    }

    My theme is Skrollex and parent theme is Layers

    Plugin Contributor Venkat Raj

    (@webulous)

    @dhumeurvegetale Install WP Crontrol plugin and see if the wpo_reset_webp_conversion_test_result event is still present or not. If it is still present, please double check the code you’ve added to functions.php file

    Thread Starter dhumeurvegetale

    (@dhumeurvegetale)

    Hi @webulous WP Control is already installed and the cron event append this morning again, The code you gave me is the same i added on my theme function.php file; I added it at the end of the file just before the theme instance call; is it ok ? is 11 priority OK ?

    Plugin Contributor Venkat Raj

    (@webulous)

    @dhumeurvegetale Yes that should be ok. I double checked at my end and once you add the code the mentioned cron shouldn’t be there in WP Crontrol.

    i.e. We added event at default priority (10) and removes it immediately at 11. So it won’t be there and run.

    Alternatively you can add define('WPO_USE_WEBP_CONVERSION', false); to your wp-config.php which will also fix your issue

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wpo_reset_webp_conversion_test_result not working’ is closed to new replies.