• Resolved Neil Haslewood

    (@neil-haslewood)


    Hi

    I am now getting problems on my website from your plugin. Although I have deactivated your plugin I am getting a “White Screen Of Death” if I activate more than 3 or 4 plugins. I have been in touch with the developers of my theme and they have had a good look at the problem. They mentioned the following …

    “The error causing the “White Screen Of Death” is: Allowed memory size of 134217728 bytes exhausted. The problem is quite complex.

    WordPress has a cron feature that runs scheduled tasks. The scheduled tasks are stored in the wp_options table in the database. There is an option in the wp_options table named “cron” (option_name is “cron”), where it stores the scheduled tasks. The main cause of the “White Screen Of Death” is that the “cron” option contains 19862 tasks in your site. The bulk of them belongs to one plugin called “rocketbar”. Every time wordpress runs cron jobs, the value of the whole “cron” option is loaded to the memory. When only a couple of plugins are active on your site, then there is enough free memory for cron jobs. But when too many plugins are active, there is not enough free memory.

    To fix this issue, the rocketbar tasks should be removed from the “cron” option. But it is not easy at all. The “cron” option is a serialized 19862 element array, and the tasks other then rocketbars must not be removed!!

    You should contact the author of the rocketbar plugin to assist you to fix this issue.”

    Can you please help me with this issue. I need to get rid of rocketbars cron tasks as soon as possible so that I can get back to running my website properly.

    Thank you.

    Kind Regards
    Neil

    https://wordpress.org/plugins/rocketbar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Neil Haslewood

    (@neil-haslewood)

    Hi

    By the way my website can be found at …
    http://www.peakandfellwalking.co.uk/

    Kind Regards
    Neil

    Plugin Author Code by Jinx

    (@code-by-jinx)

    Hey Neil,

    Sorry to hear that you’re having issues. I understand what you’re saying here. The RocketBar cache for Pages and Posts is built on an hourly basis. The code for that is here:

    https://github.com/byjinx/rocketbar/blob/master/rocketbar/includes/hooks.php#L14-L18

    As far as I know, this is the correct way to write up Cron jobs, as specified in the WordPress docs: https://codex.wordpress.org/Function_Reference/wp_cron

    The only way that this issue could have arisen in a regular WordPress environment would be if WP Cron was not allowed to run, but stored future Cron events in memory, and then was reenabled as some time in the future.

    This would be an issue with any plugin using WP Cron, given enough time. The reason that you’re having issues with RocketBar is only because it happens to be using an hourly Cron job (which is completely normal for a plugin), and therefore stored many more entries than normal.

    I’m assuming that you’ve now reenabled WP Cron, and are now having issues. So, here’s what I’d recommend you do now:

    Open the Rocketbar code base via FTP, and delete lines 17 and 18 in rocketbar/includes/hooks.php.

    See: https://github.com/byjinx/rocketbar/blob/master/rocketbar/classes/bar.php#L17-18

    That should fix your issue, by just not doing anything when the Cron job is requested. If it doesn’t, you will need to have someone log into your server, and run a script aside WordPress to remove all of the unnecessary entries within your WordPress cron option.

    Because this is not a bug with the code base of RocketBar directly, this is all the assistance I can give you. If you would like assistance past this, you can contact me at bruce@myinbox.ws, and I’d be happy to work with you at an hourly basis.

    Thanks.

    Thread Starter Neil Haslewood

    (@neil-haslewood)

    Hi Jinx

    That’s really helpful. Thanks.

    I will delete the lines that you have suggested. I will then need to flush the WP Cron of all old jobs. Hopefully this should speed up my website too.

    Kind Regards
    Neil

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RocketBar Cron Jobs Exhaust Memory’ is closed to new replies.