Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1423944

    Hi guys,

    I get the error below when I click on check-out if I want to buy a product on my website (see the details in the private content section)

    Any hint how to fix it? I already made sure that all plugins are up-to-date.

    Thank you,
    Simone

    #1423961

    Hey SimonePols,

    Are you running the latest version of both the theme and WooCommerce? Did you try to temporarily deactivate all plugins except WooCommerce? Which version of PHP are you running?

    Best regards,
    Rikard

    #1424078

    Hi Rikard,

    Yes I am running the latest version of both, and I tried to deactivate all plugins too but the issue persists. I run PHP 7.4.33.

    Any other idea what it could be?

    Thank you,
    Simone

    #1424081

    Hi,

    Thank you for the update.

    The filter “lp_certificate_image_cart_woo” doesn’t exist in the theme out of the box. Do you have any idea which plugin adds this filter? Please make sure that the theme is updated to version 5.6.8.

    Best regards,
    Ismael

    #1424084

    Thank you Ismael.

    Yes, 5.6.8 is my current version of the theme.

    I see that this learnpress certificate add-on is causing the problem, thank you for pointing it out! I just opened a ticket to learnpress to ask for support with that and they say it’s something in the enfold theme

    What should I check next?

    I deactivated the plugin for the moment.

    Thanks a lot,
    Simone

    • This reply was modified 1 year, 1 month ago by SimonePols. Reason: I got a reply
    #1424202

    Hi,

    According to the stack trace above, the error is coming from the plugin or one of the modifications that has been added to the files. Did you have someone modify the /enfold/config-woocommerce/config.php or add any code in the functions.php file?

    This is where the “lp_certificate_image_cart_woo” filter error is generated.

    avia_wc_widget_product_image_size(‘apply_filters(‘lp_certificate_image_cart_woo(‘<img width=”300…’, Array) #4 /home/customer/www/simonepols.com/public_ht in /home/customer/www/simonepols.com/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 2971
    

    Thank you for your patience.

    Best regards,
    Ismael

    #1424226

    Hi Ismael and thank you for your quick reply,

    Mmm no, we didn’t touch the functions.php file.

    Do you know how we can proceed with this?

    Thank you,
    Simone

    #1424292

    Hi,

    Thank you for the info.

    Did you check the /enfold/config-woocommerce/config.php file, specifically around line 2971? The filter “lp_certificate_image_cart_woo” may have been added in that file. It’s also possible that the plugin is using the avf_wc_widget_product_image_size filter, but it seems to be missing 4 parameters, which require an update.

     avia_wc_widget_product_image_size(), 2 passed in /home/customer/www/simonepols.com/public_html/wp-includes/class-wp-hook.php on line 310 and exactly 6 expected in
    

    Best regards,
    Ismael

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