Uncaught Error: Call to a member function get_weight() on boolean
-
Hi,
just to let you know that I saw this error. And this was in my error.log:
2018/05/14 12:18:14 [error] 18093#18093: *192800 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_weight() on boolean in /var/www/my-site.org/wp-content/plugins/dhl-for-woocommerce/includes/abstract-pr-dhl-wc-order.php:386 Stack trace: #0 /var/www/my-site.org/wp-content/plugins/dhl-for-woocommerce/includes/abstract-pr-dhl-wc-order.php(76): PR_DHL_WC_Order->calculate_order_weight('1803') #1 /var/www/my-site.org/wp-admin/includes/template.php(1063): PR_DHL_WC_Order->meta_box(Object(WP_Post), Array) #2 /var/www/my-site.org/wp-admin/edit-form-advanced.php(707): do_meta_boxes(Object(WP_Screen), 'side', Object(WP_Post)) #3 /var/www/my-site.org/wp-admin/post.php(174): include('/var/www/my-...') #4 {main} thrown in /var/www/my-site.org/wp-content/plugins/dhl-for-woocommerce/includes/abstract-pr-dhl-wc-order.php on line 386" while reading response header from upstream, client: 79.244.63.140, server: www.my-site.org, request: "GET /wp-admin/post.php?post=1803&action=edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "www.my-site.org", referrer: "https://www.my-site.org/wp-admin/edit.php?s=myuser&post_status=all&post_type=shop_order&action=-1&m=0&_customer_user&paged=1&action2=-1"
Looks like the plugin is calling get_weight() on a boolean. Sorry, that I cannot give further steps to reproduce, but I only have this error log.
But maybe you can add a further check here.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Uncaught Error: Call to a member function get_weight() on boolean’ is closed to new replies.