Tagged: CRITICAL Uncaught Error
-
AuthorPosts
-
December 9, 2021 at 4:50 pm #1332173
Hello,
On this site, clueb.it, in the Woocommerce logs I frequently have this error:
= = = = =
2021-12-09T06:08:58+00:00 CRITICAL Uncaught Error: Call to a member function get_cart() on null in /var/www/html/wp-content/themes/enfold/config-woocommerce/config.php:2232
Stack trace:
#0 /var/www/html/wp-includes/class-wp-hook.php(303): avia_woocommerce_cart_pos()
#1 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters()
#2 /var/www/html/wp-content/themes/enfold/functions-enfold.php(1619): apply_filters()
#3 /var/www/html/wp-content/themes/enfold/header.php(32): avia_header_class_string()
#4 /var/www/html/wp-includes/template.php(770): require_once(‘/var/www/html/w…’)
#5 /var/www/html/wp-includes/template.php(716): load_template()
#6 /var/www/html/wp-includes/general-template.php(48): locate_template()
#7 /var/www/html/wp-content/themes/enfold/404.php(9): get_header()
#8 /var/www/html/wp-includes/template-loader.php(106): include(‘/var/www/html/w…’)
#9 /var/www/html/wp-blog-header.php(19): require_once(‘/var/www/html/w…’)
#10 /var/www/html/index.php(17): require(‘/var/www/html/w…’)
#11 {main}
thrown in /var/www/html/wp-content/themes/enfold/config-woocommerce/config.php alla riga 2232
= = =Could this error be the cause of frequent “Pending Payment on WooCommerce”?
What can I do to fix?Best regards
OrianoDecember 10, 2021 at 5:59 am #1332226Hi Oriano,
Is this error causing something to not work as expected on the site? If you need further help, then please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardDecember 10, 2021 at 9:19 am #1332248Hi Rikard,
find in the Private content you account details.Best regard
OrianoDecember 10, 2021 at 9:35 am #1332252Hi Rikard
> Is this error causing something to not work as expected on the site?for the moment the only anomaly I have noticed is an unusual and high number of “Pending Payments” in woocommerce orders.
Best regards
OrianoDecember 12, 2021 at 1:34 pm #1332481Hi,
Thank you for your patience and for the login, but it is not a WordPress Admin login so we can not see the backend of your site, please include.
I see that you have moved your cart to outside of your nav.main_menu I assume you have done this with a script, if this is true then you can ignore the error because /enfold/config-woocommerce/config.php line:2232 is a check that the cart is visible in the correct place, which your is not:
You can test by removing your cart customization and confirm that the error is removed. Either way I do not believe that this leads to issues with any orders.Best regards,
MikeDecember 13, 2021 at 9:44 am #1332538Hi Mike, thanks for your answer
but it is not a WordPress Admin login so we can not see the backend of your site, please include.
to login, you must click on “Il mio profilo” and put user and pass.
See image.I see that you have moved your cart to outside of your nav.main_menu I assume you have done this with a script…
to do this, I have simply use the Enfold option: Header Shopping Cart Icon = Always Display floating on the side.
if this is true then you can ignore the error because /enfold/config-woocommerce/config.php line:2232 is a check that the cart is visible in the correct place, which your is not:
Sorry but I do not understand :(
I use a simple setting of the Enfold setting. And this same setting, creates an error warning ??
I do not understand :(Best regards.
OrianoDecember 14, 2021 at 1:46 pm #1332755Hi,
Thank you I can now see the logs and the error, but when I try to cause another error by adding an item to the cart and going to the check out another error is not created, although I can not actually “purchase” an item.
I have asked the rest of the team if they have any ideas, thank you for your patience.Best regards,
MikeDecember 14, 2021 at 3:01 pm #1332785Hi Mike,
thank you for your answer.
I look forward to your reply.Best regards
OrianoDecember 14, 2021 at 3:20 pm #1332796Hi Oriano :)
Could you please replace the content of /enfold/config-woocommerce/config.php file with this one via FTP – https://pastebin.com/y3UPvKam?
Regards,
YigitDecember 14, 2021 at 3:25 pm #1332801Hi Yigit
At the moment I am traveling, in a couple of hours, upon my return I provide to replace the file.Thank you,
OrianoDecember 14, 2021 at 3:28 pm #1332804Hi,
Bon voyage! We will keep the thread open and wait to hear from you
Best regards,
YigitDecember 15, 2021 at 9:34 am #1332913Hi Yigit
Could you please replace the content of /enfold/config-woocommerce/config.php file with this one via FTP – https://pastebin.com/y3UPvKam?
I did it.
What do you advise me to do now?
Can I wait for the next purchases on woocommerce to check if the error occurs again or not?Best regards
OrianoDecember 15, 2021 at 1:17 pm #1332945December 18, 2021 at 7:00 pm #1333387Hi Yigit
Could you please replace the content of /enfold/config-woocommerce/config.php file with this one via FTP – https://pastebin.com/y3UPvKam?
i did what you said but it didn’t solve the problem :(
The error log continues to report the error:2021-12-18T11:04:49+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /var/www/html/wp-content/themes/enfold/config-woocommerce/config.php:2256 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(303): avia_woocommerce_cart_dropdown() #1 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #2 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action() #3 /var/www/html/wp-content/themes/enfold/includes/helper-main-menu.php(125): do_action() #4 /var/www/html/wp-includes/template.php(772): require('/var/www/html/w...') #5 /var/www/html/wp-includes/template.php(716): load_template() #6 /var/www/html/wp-includes/general-template.php(204): locate_template() #7 /var/www/html/wp-content/themes/enfold/header.php(242): get_template_part() #8 /var/www/html/wp-includes/template.php(770): require_once('/var/www/html/w...') #9 /var/www/html/wp-includes/template.php(716): load_template() #10 /var/www/html/wp-includes/general-template.php(48): locate_template() #11 /var/www/html/wp- in /var/www/html/wp-content/themes/enfold/config-woocommerce/config.php alla riga 2256
Best regards
OrianoDecember 21, 2021 at 2:28 pm #1333647Hi,
Please replace the content of /enfold/config-woocommerce/config.php with the contents of
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_8_8_1/WooCommerce/config.php
If you need help with it, let us know.
Do not forget to make a backup of the original file for a fallback and clear server and browser cache.
Best regards,
GünterDecember 21, 2021 at 3:06 pm #1333658Hi Günter
and clear server and browser cache.
What do you mean by “clear server cache” :(
Best regards
OrianoDecember 21, 2021 at 3:09 pm #1333659Another question: now I have the Enfold 4.8.8.
You advise me to update to the new version 4.8.8.1 and than replace the content of /enfold/config-woocommerce/config.php ?Best regards
OrianoDecember 21, 2021 at 4:35 pm #1333668Hi Oriano,
Would you like us to update the theme and then replace config.php file once again? If so, please confirm so we can go ahead and update it :)
Best regards,
YigitDecember 21, 2021 at 4:46 pm #1333671Hi Yigit
Would you like us to update the theme and then replace config.php file once again?
it’s just that I thought the new version (4.8.8.1) of the Enfold theme also included the new version of the config.php file :(
So, now I do the theme update and then replace config.php :)
Best regards
OrianoDecember 21, 2021 at 5:19 pm #1333673Hi Yigit
I updated the theme and replace the content of /enfold/config-woocommerce/config.php.
Now I keep monitoring the Woocommerce log to see if this fix the problem.Best regards
OrianoDecember 21, 2021 at 6:14 pm #1333675 -
AuthorPosts
- You must be logged in to reply to this topic.