Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #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
    Oriano

    #1332226

    Hi 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,
    Rikard

    #1332248

    Hi Rikard,
    find in the Private content you account details.

    Best regard
    Oriano

    #1332252

    Hi 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
    Oriano

    #1332481

    Hi,
    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:
    2021-12-12_001.jpg
    2021-12-12_062856.jpg
    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,
    Mike

    #1332538

    Hi 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.
    Oriano

    #1332755

    Hi,
    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,
    Mike

    #1332785

    Hi Mike,
    thank you for your answer.
    I look forward to your reply.

    Best regards
    Oriano

    #1332796

    Hi Oriano :)

    Could you please replace the content of /enfold/config-woocommerce/config.php file with this one via FTP – https://pastebin.com/y3UPvKam?

    Regards,
    Yigit

    #1332801

    Hi Yigit
    At the moment I am traveling, in a couple of hours, upon my return I provide to replace the file.

    Thank you,
    Oriano

    #1332804

    Hi,

    Bon voyage! We will keep the thread open and wait to hear from you

    Best regards,
    Yigit

    #1332913

    Hi 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
    Oriano

    #1332945

    Hi,
    Please let us know if you see the error again.

    Best regards,
    Mike

    #1333387

    Hi 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
    Oriano

    #1333647

    Hi,

    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ünter

    #1333658

    Hi Günter

    and clear server and browser cache.

    What do you mean by “clear server cache” :(

    Best regards
    Oriano

    #1333659

    Another 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
    Oriano

    #1333668

    Hi 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,
    Yigit

    #1333671

    Hi 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
    Oriano

    #1333673

    Hi 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
    Oriano

    #1333675

    Hi Oriano,

    Thanks for the update. We will keep the thread on hold. You can simply reply it to re-open it :)

    Best regards,
    Yigit

Viewing 21 posts - 1 through 21 (of 21 total)
  • You must be logged in to reply to this topic.