Fatal error – undefined is_ajax() with woo 4.3.1
-
After updating to Woo 4.3.1 I was getting a fatal error on the site:
undefined is_ajax()
with this plugin.
I reverted to Woo 4.3.0 via cpanel and the site is fine again.
The page I need help with: [log in to see the link]
-
I have the same problem
Hey?@mintynz and @sachser19640628,
Thanks for writing to us about our plugin! I am happy to help out here. ??
I have taken a look on my test site and I can’t seem to replicate this issue with the latest version of WooCommerce. As such, I suspect that you may be running into a theme or plugin conflict.
As a next troubleshooting step, I’d like to rule out any conflicts that might be causing this issue.
- Would you please switch to a default theme, such as Twenty Nineteen? If this resolves the issue, it looks like there’s a theme conflict.
- Next, could you please try disabling all your plugins except for WooCommerce and Sequential Order Numbers? If this fixes the issue, you can try re-enabling your plugins one by one to find out which one is causing the issue.
Would you please let me know how this testing goes?
Thanks,
TamaraHey @tamarazuk – thanks for the quick response. It’s encouraging.
I need to find some space to do those steps.
In the meantime: @sachser19640628 I’m using the Divi theme, and the following plugins. Does any of it look similar to your setup?
—–
InfiniteWP – Client
BackupBuddy
iThemes Security
Classic Editor
Format Media Titles
Forminator Pro
Really Simple SSL pro
WooCommerce Payment Express Gateway
WooCommerce Sequential Order Numbers
WooCommerce TM Extra Product Options
Wordfence Security
Yoast SEO
WP Mail Logging
WP Rocket
Smush Pro
WPMU DEV DashboardHey @mintynz,
Thanks so much for sharing a list of some of your plugins. I looked around and I couldn’t find any reports of conflicts between these plugins and Sequential Order Numbers.
As a next step, I’d like to take a look at the full fatal error report. Would you please paste in the full log of these fatal errors, including a stack trace? You can find this under WooCommerce > Status > Logs in the fatal error files.
Thanks,
@tamarazuk I’ve logged back in and updated Woo again from 4.3 to 4.3.1… and now I’m not getting any errors.
I have not changed anything else at all.
I’m wondering if it was a flawed Woocommerce update… that perhaps one or two files didn’t write out properly, which ended up presenting as “undefined is_ajax() in woocommerce-sequential-order-numbers”.
@sachser19640628 does rolling back to WC4.3 and then reinstalling 4.3.1 solve things for you?
@tamarazuk Apologies for the mislead on this, but again, I do appreciate the prompt and thoughtful responses.
I tried it twice, always the same, the shop is completely gone.
I use Theme ENFOLD
Plugins:
Duplicator Pro
Germanized for WooCommerce
PayPal Plus for WooCommerce
WooCommerce
WooCommerce Multilingual
and the complete WPML stuffHere is my error log
2020-06-22T16:30:36+00:00 CRITICAL Uncaught Error: Call to a member function get_cart() on null in /pages/83/60/d0010882/home/htdocs/wordpress_PitBull/wp-content/themes/enfold/config-woocommerce/config.php:2101
Stack trace:
#0 /pages/83/60/d0010882/home/htdocs/wordpress_PitBull/wp-includes/class-wp-hook.php(287): avia_woocommerce_cart_pos(Array, Array, ‘html_’)
#1 /pages/83/60/d0010882/home/htdocs/wordpress_PitBull/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /pages/83/60/d0010882/home/htdocs/wordpress_PitBull/wp-content/themes/enfold/functions-enfold.php(1462): apply_filters(‘avf_header_clas…’, Array, Array, ‘html_’)
#3 /pages/83/60/d0010882/home/htdocs/wordpress_PitBull/wp-content/themes/enfold/header.php(25): avia_header_class_string()
#4 /pages/83/60/d0010882/home/htdocs/wordpress_PitBull/wp-includes/template.php(723): require_once(‘/pages/83/60/d0…’)
#5 /pages/83/60/d0010882/home/htdocs/wordpress_PitBull/wp-includes/template.php(672): load_template(‘/pages/83/60/d0…’, true)
#6 /pages/83/60/d0010882/home/htdoc in /pages/83/60/d0010882/home/htdocs/wordpress_PitBull/wp-content/themes/enfold/config-woocommerce/config.php in Zeile 2101Hey @sachser19640628 that certainly looks like an error in the Enfold theme:
“wp-content/themes/enfold/config-woocommerce/config.php”
I can’t see any mention of the WooCommerce Sequential Order Numbers theme in your error log. And I can’t see it in your plugin list. Are you sure you’re in the right place?
Ps. You may want to trim the error listings to start at /wp-content … it may expose too much info about your website setup to have the full path as you have.
Hey all,
Hope you both had a lovely weekend!
No apologies needed, thanks so much for reporting back the fix and for helping others ??
As @mintynz noted, it’s best to edit out the site path from the error messages when you get a chance. Also, I concur with @mintynz. It looks like these errors are related to your theme.
As a next step, would you please try fully deactivating Sequential Order Numbers to see if the errors persist? If they don’t please re-activate our plugin and switch to a different theme to rule out or confirm a conflict with Enfold and let me know what you find in your tests ??
Thanks,
TamaraHey all,
It has been a long time since we heard from you, so I’m going to mark this topic as resolved.
If you’re still experiencing issues please take a look at our FAQs for more information and create a new thread if you have further questions.
Thanks,
Tamara ??
- The topic ‘Fatal error – undefined is_ajax() with woo 4.3.1’ is closed to new replies.