Hi,
The plugin works just fine with the latest version of WordPress and WooCommerce. You are welcome to demo the plugin at https://woo-address-book.hallme.com/ which is running the latest version of everything.
If you are able to get the PHP error that is causing the 500 error, we may be able to assist.
The “Warning: This plugin has not been tested with your current version of WordPress.” message is just because we only had “Tested up to: 5.9.0” which was the latest version as of 3 weeks ago when we last updated the setting. We’ve now gone ahead and updated it to “Tested up to: 5.9.2”
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.
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 29
That is a strange one. It does seem to be in the plugin. The function it says it is missing was added in version 2.0.0 of the plugin.
So it seems that the file you have at wp-content/plugins/woo-address-book/templates/myaccount/my-address-book.php is from the latest version but it is loading the WC_Address_Book class from a prior version.
Some suggestions to figure this out:
Check to make sure wp-content/plugins/woo-address-book/includes/class-wc-address-book.php is actually the latest version. It should have the function get_wcab_option in it. If it is not, a reinstall or update of the plugin should fix it.
Check your codebase for any other definitions of class WC_Address_Book. This could be if somehow an older version of the plugin is installed twice in different locations. Or something else is implementing a class with the same name. If that is the case then most likely the error is caused by the other class loading instead.
I’m closing this from no response. If you have any additional information, feel free to add it.