The code seems to point to the function get_payment_method() on bool in /home/gaiatost/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:160
Isnt this core wordpress files?
Thank you
Phil
(@fullysupportedphil)
Automattic Happiness Engineer
Hey afmalvarez,
It could be that some code on your site is passing an invalid value to WooCommerce.
I know you mentioned you didn’t add anything new to your site, but updating exsiting plugins/themes can also introduce problems. This is why we recommend doing any changes (including updates) on a staging site first.
I would recommend as a first step, trying some conflict testing. We have a guide on how to test for conflicts here:
https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4
I’m assuming this is your live site, so I would recommend doing a full backup (site and database) before starting these tests.
If you find during the steps in the guide above that disabling a specific plugin or theme resolves the problem, then you’ll know the source of the conflict. At that point you can check if that plugin/theme has an available update to resolve the problem. If it doesn’t, you’ll want to contact the developer of that plugin for fix.
Let us know how that goes.
Well I really cant find the bug… expecially in the admin panel where I can see my orders… There is no logic in why cant I (admin) check my orders… I checked the core files…
I really dont know what to do. The theme was paied at envato… everything is working… but my costumer cant view orders details…
Any other ideias?
Phil
(@fullysupportedphil)
Automattic Happiness Engineer
afmalvarez, did you follow the conflict testing guide that I shared above?
You’ll want to switch to the default Twenty Nineteen or Storefront theme, then disable all plugins except for WooCommerce.
Do you still have the problem after following those steps?
Hey there, thank you for your help…
Still no sucess…
I have the same problem even with 19th base theme, and without plugins.
I have updated the woocommerce theme files to latest version also…
I looked into the error… stack overflow but this is core and it is the most recent file.
Uncaught Error: Call to a member function get_payment_method() on bool in /home/gaiatost/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php on line 147
Really dont know if I have to redo a complete website or if there is something that can be done
Thank you for your time
Phil
(@fullysupportedphil)
Automattic Happiness Engineer
@afmalvarez have you made any customizations directly to WooCommerce files? If so, you’ll also want to reverse those with your testing.
If no other plugins are running and you are using the stock Twenty Nineteen or Storefront theme, then there is nothing with WooCommerce itself that would cause this error. If you still have this problem, you may want to try removing the WooCommerce plugin and reinstalling it in case there are any altered files.
Uninstalling WooCommerce will not remove your WooCommerce data (products, orders, etc) by default. As long as you have not added define( 'WC_REMOVE_ALL_DATA', true); to your sites wp-config.php file, all your data will remain. That being said, we always recommend making a backup of your site/database before making any changes.
You can then reinstall WooCommerce and it should be back to it’s default working state.
If you still have problems after that then either there are other customizations in your site that are causing this (edits to the theme’s code or WordPress code). Or there is something in your hosting environment causing the issue.
I hope that info helps!
laceyrod
(@laceyrod)
Automattic Happiness Engineer
This thread has been inactive for a bit, so I’m going to mark it as Resolved now. Please feel free to open a new one if you have any further questions or still need further assistance.
I’m having the same problem when I try to add a new order
Fatal error: Uncaught Error: Call to a member function get_payment_method() on boolean in /home/wbxracks/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:156 Stack trace: #0 /home/wbxracks/public_html/wp-admin/includes/template.php(1306): WC_Meta_Box_Order_Data::output(Object(stdClass), Array) #1 /home/wbxracks/public_html/wp-admin/edit-form-advanced.php(638): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(stdClass)) #2 /home/wbxracks/public_html/wp-admin/post-new.php(75): include(‘/home/wbxracks/…’) #3 {main} thrown in /home/wbxracks/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php on line 156
@afmalvarez @laceyrod
I performed all the procedures
I disabled all plugins
I installed woocommerce again on a single thing that hasn’t changed in the database, and the error persists while trying to create a new order
Have you come up with any solutions?