Irene Frigerio asked 3 months ago

Good morning Woocommerce one page checkout and layouts Pro.
produces me this error and that blocks the creation of psd from the pdf backand of another plugin that “YITH WooCommerce Multi Vendor / Marketplace” this is the error:

CRITICAL Uncaught Error: Call to undefined function cmb2_get_option() in /var/www/vhosts/mtbadvisor.it/httpdocs/booking/wp-content/plugins/woocommerce-one-page-checkout-and-layouts-pro/woocommerce-one-page-checkout-and-layouts-pro.php:223
Stack trace:
#0 /var/www/vhosts/mtbadvisor.it/httpdocs/booking/wp-includes/class-wp-hook.php(287): CclwCheckout->cclw_adon_plugin_template()
#1 /var/www/vhosts/mtbadvisor.it/httpdocs/booking/wp-includes/plugin.php(212): WP_Hook->apply_filters()
#2 /var/www/vhosts/mtbadvisor.it/httpdocs/booking/wp-content/plugins/woocommerce/includes/wc-core-functions.php(420): apply_filters()
#3 /var/www/vhosts/mtbadvisor.it/httpdocs/booking/wp-content/plugins/woocommerce/includes/wc-core-functions.php(301): wc_locate_template()
#4 /var/www/vhosts/mtbadvisor.it/httpdocs/booking/wp-content/plugins/yith-woocommerce-booking-premium/includes/utils/class.yith-wcbk-exporter.php(112): wc_get_template()
#5 /var/www/vhosts/mtbadvisor.it/httpdocs/booking/wp-content/plugins/yith-woocommerce-booking-premium/incl in /var/www/vhosts/mtbadvisor.it/httpdocs/booking/wp-content/plugins/woocommerce-one-page-checkout-and-layouts-pro/woocommerce-one-page-checkout-and-layouts-pro.php alla riga 223

 
 

1 Answers
Rupinder answered 3 months ago

Hi Irene,
According to your listed issues it seems you are having problems with line no 223.
Which is like $layout = cmb2_get_option( ‘custom_checkout_settings’,’cclw_checkout_layouts’);
I would recommend you to remove or comment this particular line from file plugins/woocommerce-one-page-checkout-and-layouts-pro/woocommerce-one-page-checkout-and-layouts-pro.php

And then test it .Do let me know how it works.
Thanks

Your Answer