-
AuthorPosts
-
October 28, 2023 at 8:15 am #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,
SimoneOctober 28, 2023 at 1:36 pm #1423961Hey 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,
RikardOctober 30, 2023 at 4:12 am #1424078Hi 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,
SimoneOctober 30, 2023 at 7:18 am #1424081Hi,
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,
IsmaelOctober 30, 2023 at 7:41 am #1424084Thank 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
October 31, 2023 at 3:25 am #1424202Hi,
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,
IsmaelOctober 31, 2023 at 10:22 am #1424226Hi 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,
SimoneNovember 1, 2023 at 5:20 am #1424292Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.