• Resolved websitetailor

    (@websitetailor)


    It has come to my attention that one of the your hooks “wdf_maybe_send_report” is blocking my crons from running. The only way I can get my crons to work is to disable the plugin which I really don’t want to do. I have everything up to date and can’t find the cause.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hi @websitetailor

    Sorry for the inconvenience

    To determine what is causing the conflict between Defender and the CRON jobs, we’d recommend to enable the WordPress debugging to gather more information. Please add these lines in your wp-config.php file:

    // 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 );

    The code should be added before this other line:

    /* That's all, stop editing! Happy blogging. */

    This block of code will create a debug file in this location: /wp-content/debug.log. Test the cron jobs with Defender enabled and check if any new entries are added in the logs and share them in this thread so we can provide additional assistance.

    Find more info in the WordPress documentation:

    Debugging in WordPress

    As an additional suggestion, consider adding a plugin like WP Crontrol, which can help you monitor the current cron jobs and the current status of the events.
    https://ww.wp.xz.cn/plugins/wp-crontrol/

    Feel free to share any findings from this plugin in this support topic as well.

    Let us know if additional help is required.

    Kind regards

    Luis

    Thread Starter websitetailor

    (@websitetailor)

    Hi Luis,

    Thanks for your reply. I’ve attached screen shots cron WP Crontrol from with leaving Defender active for a few days and then after disabling it.

    This is the contents of the debug.log after re-activiting Defender:

    [20-Jul-2023 23:16:21 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/ipswicha/public_html/extrado/wp-admin/includes/post.php on line 1548
    [20-Jul-2023 23:16:21 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:16:23 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 28672 bytes) in /home/ipswicha/public_html/extrado/wp-admin/includes/privacy-tools.php on line 171
    [20-Jul-2023 23:16:23 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Cookie/Jar.php on line 1
    [20-Jul-2023 23:16:25 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 28672 bytes) in /home/ipswicha/public_html/extrado/wp-admin/includes/privacy-tools.php on line 171
    [20-Jul-2023 23:16:25 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Cookie/Jar.php on line 1
    [20-Jul-2023 23:16:32 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 28672 bytes) in /home/ipswicha/public_html/extrado/wp-admin/includes/privacy-tools.php on line 171
    [20-Jul-2023 23:16:32 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Cookie/Jar.php on line 1
    [20-Jul-2023 23:16:42 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/includes/sanitizers/class-amp-style-sanitizer.php on line 1748
    [20-Jul-2023 23:16:42 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0
    [20-Jul-2023 23:16:42 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0
    [20-Jul-2023 23:16:43 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/includes/sanitizers/class-amp-style-sanitizer.php on line 3534
    [20-Jul-2023 23:16:43 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/includes/validation/class-amp-validation-callback-wrapper.php on line 97
    [20-Jul-2023 23:17:01 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/wordpress-seo/src/integrations/settings-integration.php on line 529
    [20-Jul-2023 23:17:01 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/ipswicha/public_html/extrado/wp-includes/functions.php on line 6932
    [20-Jul-2023 23:17:24 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/vendor/composer/ClassLoader.php on line 571
    [20-Jul-2023 23:17:24 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:17:44 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/vendor/composer/ClassLoader.php on line 571
    [20-Jul-2023 23:17:44 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:17:50 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/wordpress-seo/src/integrations/settings-integration.php on line 529
    [20-Jul-2023 23:17:50 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/ipswicha/public_html/extrado/wp-includes/functions.php on line 6932
    [20-Jul-2023 23:17:53 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/wordpress-seo/src/integrations/settings-integration.php on line 529
    [20-Jul-2023 23:17:53 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/ipswicha/public_html/extrado/wp-includes/functions.php on line 6932
    [20-Jul-2023 23:18:18 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/vendor/composer/ClassLoader.php on line 571
    [20-Jul-2023 23:18:18 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:18:38 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/vendor/composer/ClassLoader.php on line 571
    [20-Jul-2023 23:18:38 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:19:10 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/vendor/composer/ClassLoader.php on line 571
    [20-Jul-2023 23:19:10 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:19:30 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/vendor/composer/ClassLoader.php on line 571
    [20-Jul-2023 23:19:30 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:19:39 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 94208 bytes) in /home/ipswicha/public_html/extrado/wp-content/themes/Avada/includes/class-fusion-dynamic-css-from-options.php on line 152
    [20-Jul-2023 23:19:39 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/wordpress-seo/src/memoizers/meta-tags-context-memoizer.php on line 97
    [20-Jul-2023 23:19:39 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0
    [20-Jul-2023 23:19:52 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/vendor/composer/ClassLoader.php on line 571
    [20-Jul-2023 23:19:52 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:20:06 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/wordpress-seo/src/integrations/settings-integration.php on line 712
    [20-Jul-2023 23:20:06 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/ipswicha/public_html/extrado/wp-includes/functions.php on line 4191
    [20-Jul-2023 23:20:10 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/wordpress-seo/src/integrations/settings-integration.php on line 712
    [20-Jul-2023 23:20:10 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/ipswicha/public_html/extrado/wp-includes/functions.php on line 4191
    [20-Jul-2023 23:20:36 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/vendor/composer/ClassLoader.php on line 571
    [20-Jul-2023 23:20:36 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:20:56 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/amp/vendor/composer/ClassLoader.php on line 571
    [20-Jul-2023 23:20:56 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 163840 bytes) in /home/ipswicha/public_html/extrado/wp-includes/Requests/src/Autoload.php on line 150
    [20-Jul-2023 23:21:11 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/wordpress-seo/src/integrations/settings-integration.php on line 712
    [20-Jul-2023 23:21:11 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/ipswicha/public_html/extrado/wp-includes/functions.php on line 4191
    [20-Jul-2023 23:21:49 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/ipswicha/public_html/extrado/wp-content/plugins/wordpress-seo/src/integrations/admin/integrations-page.php on line 5
    [20-Jul-2023 23:21:49 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/ipswicha/public_html/extrado/wp-includes/class-wp-fatal-error-handler.php on line 74

    Thanks for your assistance.

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hi @websitetailor

    Thanks for the additional information.

    The error you are getting indicates the current resources are not enough to handle all cron jobs.

    [20-Jul-2023 23:16:21 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/ipswicha/public_html/extrado/wp-admin/includes/post.php on line 1548

    We’d recommend to adjust PHP’s maximum memory limit in the server to at least 256MB (512 would be ideal if possible). Once the memory limit is increased, enable Defender and check the execution of the cron jobs.

    Find below some methods to increase the Memory limit that you can use as a reference.
    https://themeisle.com/blog/increase-wordpress-memory-limit/

    Hope this information helps, let us know if additional assistance is required.

    Kind regards

    Luis

    Thread Starter websitetailor

    (@websitetailor)

    Hi Luis,

    Unfortunately that didn’t fix the problem. However, completely deleting the plugin and all saved data then reinstalling appears to have worked so far.

    Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @websitetailor

    I admit this is strange!

    Thinking about it, what comes to my mind is that perhaps some of the data related to that cron task execution might have gotten “corrupted” in DB in some way – but it will be impossible now to track that down and check.

    I still can’t replicate the issue on my end and I must honestly admit I can’t find any other reason for that than the assumption shared above.

    if it’s working find so far, I think let’s leave it for now and please keep an eye on this plugin to see if the issue comes back or not. If it does, please report it again to us and we’ll get back to it.

    Kind regards,
    Adam

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘wdf_maybe_send_report blocking cron’ is closed to new replies.