• Resolved lorigregor

    (@lorigregor)


    After updating to the most recent version, 2.7.5, we got a chron error when one of our pieces of content was set to expire. After checking the error log we saw this repeated several times:

    [20-Jun-2022 20:50:01 UTC] PHP Fatal error:  Uncaught Error: Call to a member function save() on boolean in /htdocs/wp-content/plugins/post-expirator/post-expirator.php:804
    Stack trace:
    
    #0 /htdocs/wp-includes/class-wp-hook.php(307): postexpirator_expire_post(3880)
    #1 /htdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #2 /htdocs/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
    #3 /htdocs/wp-cron.php(138): do_action_ref_array('postExpiratorEx...', Array)
    #4 {main}
      thrown in /htdocs/wp-content/plugins/post-expirator/post-expirator.php on line 804

    We reverted the plugin and it seems to be working now, but we won’t be able to update until this issue is solved. I don’t know much about what is happening, but was asked to report it to your support.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @lorigregor,
    thanks for your report!

    Do you have Debug logging enabled? This option is available in Settings > Diagnostics

    Regards

    Thread Starter lorigregor

    (@lorigregor)

    I see you have a new version rolled out that might fix this. I also wasn’t aware we had debug turned on, so thank you for asking and making me look. I’m going to work on our websites this afternoon and I can let you know if the problem is now solved.

    Thread Starter lorigregor

    (@lorigregor)

    I tried with both the debug set to false and true with the latest version of the plugin installed, but it does not seem to be expiring our content.

    Plugin Author andergmartins

    (@andergmartins)

    Hi @lorigregor,

    Please, could you try the following beta package?

    https://www.dropbox.com/s/wyl596chxur5jka/publishpress-future-2.7.7-beta.1.zip?dl=0

    Thanks

    Thread Starter lorigregor

    (@lorigregor)

    I discovered that we had “define(‘DISABLE_WP_CRON’, true);” in our wp-config file, so I commented that out and it seems to be doing ok again. I installed the 2.7.7-beta and it also seems to be ok, but I still have that line commented out in wp-config. I have not been the one troubleshooting cron issues on our site so I don’t know how all of that works, but maybe our file was the issue conflicting with your new plugin version?

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @lorigregor

    If you had that line in your wp-config file, that pretty much solves this issue.

    Please re-open the issue if problems occur again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error / chron issue since version 2.7.5’ is closed to new replies.