• Resolved vtxtools

    (@vtxtools)


    When I click “Address Book” on the Woocommerce front-end dashboard the server returns a 500 error. I’ve tried removing all my custom code in and still have the issue. I also notice that when I “view details” on this plugin from the back-end it shows “Warning: This plugin has not been tested with your current version of WordPress.” Additionally there hasn’t been an update to this plugin since the release of the latest version of Woocommerce (6.3.1). So I am wondering if WooCommerce Address Book requires an update to function with the latest WordPress/WooCommerce or if it is still possible that my other plugins/customizations are responsible.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matt Harrison

    (@matt-h-1)

    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”

    Thread Starter vtxtools

    (@vtxtools)

    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.

    Thread Starter vtxtools

    (@vtxtools)

    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

    Plugin Author Matt Harrison

    (@matt-h-1)

    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.

    Plugin Author Matt Harrison

    (@matt-h-1)

    I’m closing this from no response. If you have any additional information, feel free to add it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Compatible with latest WordPress/Woocommerce?’ is closed to new replies.