LDAV / woocommerce-pdf-italian-add-on

WooCommerce PDF Invoices Italian Add-on
GNU General Public License v2.0
4 stars 5 forks source link

CRITICAL Uncaught Error #10

Closed gine closed 6 years ago

gine commented 6 years ago

I getted this error after payed with paypal on a sandbox:

2018-07-15T00:38:44+00:00 CRITICAL Uncaught Error: Call to a member function get_value() on string in /home/gasmyotxpb/www/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/woocommerce-pdf-italian-add-on.php:247
Stack trace:
#0 /home/gasmyotxpb/www/wp-includes/class-wp-hook.php(286): WooCommerce_Italian_add_on->after_order_notes('')
#1 /home/gasmyotxpb/www/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#2 /home/gasmyotxpb/www/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /home/gasmyotxpb/www/wp-content/plugins/um-woocommerce/core/um-woocommerce-api.php(83): do_action('woocommerce_aft...')
#4 /home/gasmyotxpb/www/wp-content/plugins/um-woocommerce/core/filters/um-woocommerce-account.php(227): UM_WooCommerce_Core->edit_address(Array)
#5 /home/gasmyotxpb/www/wp-includes/class-wp-hook.php(286): um_account_content_hook_billing(NULL)
#6 /home/gasmyotxpb/www/wp-includes/plugin.php(203): WP_Hook->apply_filters(NULL, Array)
#7 /home/gasmyotxpb/www/wp-content/plugins/ultimate-member/core/um-account.php(248): ap
w3b-beweb commented 6 years ago

Same here, with wp 4.9.7, italian addon 0.6.1.3 and woocommerce 3.4.3. Added a check before line 247 to avoid error

if (!empty($checkout) && is_object($checkout))

but I don't know if it's only a missing variable check or a symptom of an error in the code elsewhere

LDAV commented 6 years ago

fixed on v.0.6.1.4 thanks