ActionScheduler conflict
-
Hi, I have RankMath SEO installed on my platform and after their recent upgrade, it caused an error which you can see here: https://support.rankmath.com/ticket/website-error-after-upgrade/
They say it’s a conflict with WPForms and that the ActionScheduler needs updating on WP Forms.
Any help?
-
Hey @rockinaway Thanks for reaching out!
I looked into the forum link you shared, and it appears that one needs to login to view the contents. When you have sometime, can you please share the error message that you’re seeing?
That said, you can also take a look at our documentation here to troubleshoot the issue.
Kindly,
Oh I’m so sorry!
Here it is:
Uncaught Error: Call to undefined method ActionScheduler_ActionFactory::create() in /home/customer/www/examinedental.com/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/functions.php:166 Stack trace: #0 /home/customer/www/examinedental.com/public_html/wp-content/plugins/wpforms-lite/src/Tasks/Task.php(278): as_schedule_recurring_action(1685349679, 86400, ‘wpforms_process…’, Array, ‘wpforms’) #1 /home/customer/www/examinedental.com/public_html/wp-content/plugins/wpforms-lite/src/Tasks/Task.php(226): WPFormsTasksTask->register_recurring() #2 /home/customer/www/examinedental.com/public_html/wp-content/plugins/wpforms-lite/src/Tasks/Actions/FormsLocatorScanTask.php(177): WPFormsTasksTask->register() #3 /home/customer/www/examinedental.com/public_html/wp-content/plugins/wpforms-lite/src/Tasks/Actions/FormsLocatorScanTask.php(160): WPFormsTasksActionsFormsLocatorScanTask->add_scan_task() #4 /home/customer/www/examinedental.com/public_html/wp-content/plugins/wpforms-lite/ in /home/customer/www/examinedental.com/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/functions.php on line 166
Thanks
Hey @rockinaway – Thanks for sharing the error log. After looking into the error message, it appears that your site is unable to create some scheduled actions which might due to some wp_cron issues.
When you have sometime, can you please check the site health information under Tools > Site Health, and let me know if any error message is being reported there around scheduled actions?
Kindly,
Hi,
Everything is fine in Site Tools. Infact it says scheduled events are running. This is what the Rank Math support said:
‘The issue seems to be related to WP Forms as they are using an older version of the ActionScheduler library (3.4.2) and it is conflicting with the latest version used in our plugin (3.6.0).
Please get in touch with the support of WP Forms and inform them about this. The issue should be resolved once they update the version of the library in their plugin.’
Hey @rockinaway – Thanks for following on this ticket!
We tried replicating the issue you’re facing with with RankMath on a paid version, however, we haven’t been able to replicate the issue. When you have sometime, can you please share the steps we can follow to replicate the issue? Along with that, can you please share the PHP version, WordPress version.
Kindly,
Thanks for the reply. So it just happened the minute I upgraded to the latest version of RankMath and it seems to only happen for logged in users. There aren’t any specific actions, everything just errors once the cache is cleared. My PHP version is 7.4.33 and WordPress is 6.2.2.
Thanks
Hey @rockinaway – Thanks for details. We’ve shared this issue with our developers, and they’re looking into this. Once we have an update, I’ll be sure to circle back and notify you.
In the meantime, if you have any questions, please feel free to reachout.
Kindly,
Hi @rockinaway,
I’m Ralden, jumping in here for Prashant, as he’s currently not available.
About the information from Rank Math support: “The issue seems to be related to WP Forms as they are using an older version of the ActionScheduler library (3.4.2) and it is conflicting with the latest version used in our plugin (3.6.0).”
Please know that WPForms uses the AS library version 3.4.2 because we still offer support for PHP 5.6. The latest version 3.6.0 requires PHP 7.3+.
But our developer team took a look at this issue, and we’d suggest you to contact Rank Math. You could ask them to investigate the loading order of the AS library on their side because it should be loaded using a correct hook. This will ensure that the AS library inside WPForms Lite won’t be loaded at all, preventing the issue.
Hope this helps!
Hi @rockinaway,
We haven’t heard back from you, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.
Thanks!
Hi, I have contacted Rank Math support – I am just waiting for their response. Thanks
Hi @rockinaway,
Great to hear that! I hope Rank Math support can provide a hook to prevent the issue due to the AS library on WPForms Lite.
If you’d like more help using WPForms Lite, please feel welcome to continue the conversation.
Thanks!
The topic ‘ActionScheduler conflict’ is closed to new replies.