• Resolved nicmare

    (@nicmare)


    Hi there, running recent WP and AS on PHP 8.3.1 and when i try to access AS through wp-admin tools-menu i get a critical error. Debug.log says:

    PHP Fatal error: Uncaught Error: Call to undefined method ActionScheduler_Versions::active_source() in /www/htdocs/w00885cf/mybricks/wp-content/plugins/action-scheduler/classes/ActionScheduler_AdminView.php:254
    Stack trace: 0 /www/htdocs/w00885cf/mybricks/wp-includes/class-wp-hook.php(324): ActionScheduler_AdminView->add_help_tabs(Object(WP_Screen)) 1 /www/htdocs/w00885cf/mybricks/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 2 /www/htdocs/w00885cf/mybricks/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 3 /www/htdocs/w00885cf/mybricks/wp-admin/includes/class-wp-screen.php(424): do_action('current_screen', Object(WP_Screen)) 4 /www/htdocs/w00885cf/mybricks/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen() 5 /www/htdocs/w00885cf/mybricks/wp-admin/admin.php(212): set_current_screen() 6 /www/htdocs/w00885cf/mybricks/wp-admin/tools.php(40): require_once('/www/htdocs/w00…') 7 {main}

    thrown in /www/htdocs/w00885cf/mybricks/wp-content/plugins/action-scheduler/classes/ActionScheduler_AdminView.php on line 254
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Barry

    (@barryhughes-1)

    Hi @nicmare,

    I’m sorry to hear you’ve hit on some difficulties with this latest release.

    If I spin up a brand new test site, and only install Action Scheduler 3.9.1, I can navigate to Tools β€£ Scheduled Actions without any difficulties. Additionally, if we look at the source code for 3.9.1, we can see that the “undefined method” active_source is actually present. So, I’m a little unsure what’s going wrong in your case, but would love to find out.

    • Are other plugins that potentially also contain separate copies of Action Scheduler present and active?
      • One way to test this would be to deactivate Action Scheduler and see if the Tools β€£ Scheduled Actions screen is still available (if it is, then another plugin is also adding it).
      • It this is true, it would be great to figure out which plugins are adding it and, if we can, which versions of Action Scheduler they are adding.
    • Alternatively, it’s not impossible that the update went wrong in some fashion, and you now have a ‘corrupt installation’ that is essentially a mix of code from 3.9.1, and an earlier version.
      • Try removing Action Scheduler completely, then re-install it.
      • Is the problem still present?

    Thank you for your help: we’d love to get to the bottom of this one.

    Thread Starter nicmare

    (@nicmare)

    hey Barry thank you very much for your response. I think I have an idea. I am also using wp mail smtp which has action scheduler build in. Could it be that there is some kind of conflict ? Because when I downgrade to previous version everything works well again.
    kind regards

    Plugin Contributor Barry

    (@barryhughes-1)

    It’s possible. Though, on a test site, if I install and activate Action Scheduler 3.9.1 alongside WP Mail SMTP 4.3.0, I’m still able to access the Tools β€£ Scheduled Actions screen without experiencing a fatal error.

    Do those version numbers correlate with what you have in your environment, or could something else be at play?

    Plugin Contributor Barry

    (@barryhughes-1)

    …I’ll add that we do know of potential problems when Action Scheduler 3.2.0 or earlier are also present. So if any of your plugins happen to bundle one of those, that may lead to issues like you are seeing. Is that possible here?

    Thread Starter nicmare

    (@nicmare)

    Ha! Finally found the conflict. It happens when WP Umbrella is activated! I will report it to the plugin author! Thank you Barry!

    Plugin Contributor Barry

    (@barryhughes-1)

    OK, sounds like we’re a little bit closer to the answer!

    I did take a moment to test with WP Umbrella 2.17.1 and still couldn’t replicate, but I do see they are loading Action Scheduler, or parts of Action Scheduler, in what looks like a slightly unorthodox way, so it could certainly be that this is leading to the problem you are seeing.

    As you’ve identified the conflict, I’ll go ahead and mark this post as resolved.

    Plugin Contributor Barry

    (@barryhughes-1)

    @nicmare … correction, the pieces just clicked together. This is not an issue on WP Umbrella’s side, it’s actually something that can be replicated any time Action Scheduler 3.9.1 is present but loaded after an earlier version. We’ll look into a fix on our side.

    Thread Starter nicmare

    (@nicmare)

    Thank you Sir! Looking forward seeing a fix soon.

    Thread Starter nicmare

    (@nicmare)

    Now i get a very similar issue with version 3.9.0 and recent rank math 1.0.237. Will there be a fix soon pleeeease?? at the moment i can not use AS at all

    Thread Starter nicmare

    (@nicmare)

    Update to 3.9.2 seems to fix all issues. Thank you!

    Plugin Contributor Barry

    (@barryhughes-1)

    Now i get a very similar issue with version 3.9.0 and recent rank math 1.0.237.

    Yes, they use Action Scheduler 3.9.1 in that version.

    Update to 3.9.2 seems to fix all issues.

    Great to hear!

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

The topic ‘Fatal Error with Version 3.9.1’ is closed to new replies.