vtxtools
Forum Replies Created
-
Forum: Plugins
In reply to: [Grid/List View for WooCommerce] PHP Errors in logI am also getting the error log entry:
PHP Warning: Cannot modify header information – headers already sent in /home/myid/public_html/wp-content/plugins/gridlist-view-for-woocommerce/includes/functions.php on line 26
I have tried deactivating all other plugins and the warning persists, except when I also deactivate WooCommerce. Of course, the two plugins ought to be compatible.Forum: Plugins
In reply to: [WooCommerce Address Book] Compatible with latest WordPress/Woocommerce?Here’s my error log
[01-Apr-2022 15:41:13 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Address_Book::get_wcab_option() in /home/donglebi/public_html/wp-content/plugins/woo-address-book/templates/myaccount/my-address-book.php:29
Stack trace:
#0 /home/donglebi/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
#1 /home/donglebi/public_html/wp-content/plugins/woo-address-book/includes/class-wc-address-book.php(262): wc_get_template(‘myaccount/my-ad…’, Array, ”, ‘/home/donglebi/…’)
#2 /home/donglebi/public_html/wp-includes/class-wp-hook.php(307): WC_Address_Book->wc_address_book_page(”)
#3 /home/donglebi/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#4 /home/donglebi/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
#5 /home/donglebi/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3091): do_action(‘woocommerce_acc…’, ”)
#6 /home/donglebi/public_html/wp-includes/class-wp-hook.php(307): woocommerce_account_content(”)
#7 /home in /home/donglebi/public_html/wp-content/plugins/woo-address-book/templates/myaccount/my-address-book.php on line 29Forum: Plugins
In reply to: [WooCommerce Address Book] Compatible with latest WordPress/Woocommerce?Good to know, thanks. And if you have any ideas on how to diagnose this php error, I’d love to hear them. I have to wonder if there’s a conflict with another plugin, we have quite a few. I was very surprised that removing my custom code didn’t resolve the issue.
Forum: Plugins
In reply to: [WooCommerce] Hook for when customer is loaded in admin orderWell I answered my own question by looking at another thread of yours! Turns out I didn’t need [‘value’], I got confused while look at how array is represented in a different file… Well thanks!
Forum: Plugins
In reply to: [WooCommerce] Hook for when customer is loaded in admin orderHow were you able to pass $data using woocommerce_ajax_get_customer_details?
In my filter I have:
$data['shipping']['shipping_noti-email-order']['value'] = get_user_meta( $user_id, 'shipping_noti-email-order', true ); return $data;
This outputs to the correct form-field, but the output reads as:
[object Object]I get the same output no matter what I assign to [‘value’], any tips?