Mobile App Refresh Campaign [Banner] 2024

Product Icon

WooCommerce Help Scout

by  OPMC
Start relevant conversations with your customers, using WooCommerce and Help Scout.

Contact form shows an error when logged in

I am working with your plugin for a customer (shop.handsfreehealth.com), and we discovered that the plugin was not able to fetch the order info on logged-in users, and this was generating an error (Class “OrderUtil” not found) when displaying the contact form for support.

After a bit of troubleshooting, the only solution was to update line 91 in the file class-wc-help-scout-shortcodes.php as follows:

´´´if ( isset($_SESSION[‘OrderUtil’]) && class_exists( ´´´’Automattic\WooCommerce\Utilities\OrderUtil’ ) && ´´´OrderUtil::custom_orders_table_usage_is_enabled() ) {

And this fixed the issue; now the site is loading the contact form without any errors.

If necessary, we can share a subscriber account so you can see the issue.

Have a great day,
AlbertoR

Author

albertocurotec

Current Status

Open

Last updated: September 21, 2023

1 comment

Log in to comment on this feature request.

  1. accounts17d5750d1e says:

    One of our clients are having the same issue, and we would prefer a proper fix over having to rewrite 3rd party code.