undeclared static property class-wt-orderimpexpcsv-basic-exporter.php
-
[30-Mar-2023 13:14:17 UTC] PHP Fatal error: Uncaught Error: Access to undeclared static property Wt_Import_Export_For_Woo_Basic_Order_Bulk_Export::$is_wc_paypal_active in /home/xxxxxxxxx/public/wp-content/plugins/order-import-export-for-woocommerce/admin/modules/order/export/class-wt-orderimpexpcsv-basic-exporter.php:494 Stack trace: #0 /home/xxxxxxxxxx/public/wp-content/plugins/order-import-export-for-woocommerce/admin/modules/order/export/class-wt-orderimpexpcsv-basic-exporter.php(153): Wt_Import_Export_For_Woo_Basic_Order_Bulk_Export::get_orders_csv_row() #1 /home/xxxxxxx/public/wp-content/plugins/order-import-export-for-woocommerce/admin/modules/order/order.php(127): Wt_Import_Export_For_Woo_Basic_Order_Bulk_Export::do_export() #2 /home/xxxxxxxx/public/wp-includes/class-wp-hook.php(308): Wt_Import_Export_For_Woo_Basic_Order->wt_process_order_bulk_actions() #3 /home/xxxxxxxx/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #4 /home/storm/sites/nutravet-co-uk/public/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /home/xxxxxxxx/public/wp-admin/admin.php(385): do_action() #6 /home/xxxxxxxxx/public/wp-admin/edit.php(10): require_once('...') #7 {main} thrown in /home/xxxxxxxx/public/wp-content/plugins/order-import-export-for-woocommerce/admin/modules/order/export/class-wt-orderimpexpcsv-basic-exporter.php on line 494
I’ve fixed in this our version of your plugin by replacing the
line 39 to:self::$is_wc_paypal_active = true;
line 494 to:if (isset(self::$is_wc_paypal_active)):
This is because $this-> isn’t available to the static method as they are callable without the object. but this can be targets with self::The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘undeclared static property class-wt-orderimpexpcsv-basic-exporter.php’ is closed to new replies.