• I have full admin permissions and need to delete/edit 2 php events but I can’t do either of those things. I have read all the info on your website but still no joy. All help gratefully received.

    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This almost certainly means that file editing has been disabled on your site, which also means that PHP cron events cannot be edited.

    Take a look through https://wp-crontrol.com/docs/php-cron-events/, in particular the info about the DISALLOW_FILE_MODS?and?DISALLOW_FILE_EDIT configuration constants.

    Let me know how you get on, and whether I need to make some improvements to that documentation.

    Thread Starter futurepacer

    (@futurepacer)

    Hi John – thanks for your response. I am the super-admin on the site. I have checked the config file and can confirm that file editing has not been disabled. Your docs were very clear by the way.

    Any other ideas as I’m really stuck ??

    Very best
    John

    Thread Starter futurepacer

    (@futurepacer)

    Here’s the extract from the debug log when I attempt to delete the php event in case it helps identify the issue (I’ve removed the url and replaced with ‘myurl’:

    [12-Jun-2024 12:34:01 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /home/customer/www/myurl/public_html/wp-includes/link-template.php on line 394


    [12-Jun-2024 12:34:02 UTC] Cron reschedule event error for hook: crontrol_cron_job, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {“schedule”:”every15mins”,”args”:{“code”:”file_get_contents (\”http:\/\/myurl\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/notifications\/scheduled\/send\”);”,”name”:”Amelia Cron”},”interval”:900}


    [12-Jun-2024 12:34:02 UTC] Cron unschedule event error for hook: crontrol_cron_job, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {“schedule”:”every15mins”,”args”:{“code”:”file_get_contents (\”http:\/\/myurl\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/notifications\/scheduled\/send\”);”,”name”:”Amelia Cron”},”interval”:900}


    [12-Jun-2024 12:34:02 UTC] PHP Warning: The stored hash is missing for a PHP cron event; for more information see https://myurl/wp-admin/tools.php?page=crontrol_admin_manage_page&crontrol_hooks_type=php in /home/customer/www/myurl/public_html/wp-content/plugins/wp-crontrol/src/bootstrap.php on line 2309


    [12-Jun-2024 12:34:13 UTC] Cron reschedule event error for hook: crontrol_cron_job, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {“schedule”:”every15mins”,”args”:{“code”:”file_get_contents (\”http:\/\/myurl\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/notifications\/scheduled\/send\”);”,”name”:”Amelia Cron”},”interval”:900}


    [12-Jun-2024 12:34:13 UTC] Cron unschedule event error for hook: crontrol_cron_job, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {“schedule”:”every15mins”,”args”:{“code”:”file_get_contents (\”http:\/\/myurl\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/notifications\/scheduled\/send\”);”,”name”:”Amelia Cron”},”interval”:900}


    [12-Jun-2024 12:34:13 UTC] PHP Warning: The stored hash is missing for a PHP cron event; for more information see https://myurl/wp-admin/tools.php?page=crontrol_admin_manage_page&crontrol_hooks_type=php in /home/customer/www/myurl/public_html/wp-content/plugins/wp-crontrol/src/bootstrap.php on line 2309

    I came here to raise an issue very similar to this one. I have been unable to delete or edit cron events I added a while back that are now flagged with ‘Needs Checking’ since 1.16.2. Therefore the server gets constant errors in the log. I have followed your troubleshooting tips on the wp-crontrol website. If I delete the WP Cron plugin, the problem remains. I have reached out to the hosting company, and they have said there’s nothing they can do at their end. They have tried to delete the crons manually and they just reappear.

    Thread Starter futurepacer

    (@futurepacer)

    Hi Oliver – thanks for chipping in. That’s exactly the problem I have that started my search for an answer. I followed the same route as you, including contacting my hosting company and got the same response from them.

    I’m sure John, the developer, will be able to come up with the solution for us both because I guess we can’t be the only ones ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to save any changes to php events’ is closed to new replies.