Title: Uncaught error &#8211; Must supply a valid HTTP Basic Authorization header
Last modified: March 8, 2021

---

# Uncaught error – Must supply a valid HTTP Basic Authorization header

 *  [doubleedesign](https://wordpress.org/support/users/doubleedesign/)
 * (@doubleedesign)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/uncaught-error-must-supply-a-valid-http-basic-authorization-header/)
 * When going through the connection process, after entering the client ID and client
   secret I am prompted for my Campaign Monitor credentials again. Then, upon returning
   to the WordPress admin, the page shows an uncaught error:
 *     ```
       Uncaught Error: Cannot use object of type stdClass as array in /path/to/wp-content/mu-plugins/campaign-monitor-for-woocommerce/views/admin/connect.php on line 110
   
           require_once()
           wp-content/mu-plugins/campaign-monitor-for-woocommerce/core/Helper.php:133
           renderer()
           wp-content/mu-plugins/campaign-monitor-for-woocommerce/core/App.php:582
           register_settings_page()
           wp-includes/class-wp-hook.php:287
           apply_filters()
           wp-includes/class-wp-hook.php:311
           do_action()
           wp-includes/plugin.php:478
           do_action()
           wp-admin/admin.php:254
       ```
   
 * I am using the latest version of the plugin.
 * Adding some debugging code to the location flagged in the error, I found that
   the object being returned is:
 * `stdClass Object ( [Code] => 50 [Message] => Must supply a valid HTTP Basic Authorization
   header )`
 * What can cause there not to be a valid authorisation header, and how can I fix
   it?
    -  This topic was modified 5 years, 3 months ago by [doubleedesign](https://wordpress.org/support/users/doubleedesign/).
    -  This topic was modified 5 years, 3 months ago by [doubleedesign](https://wordpress.org/support/users/doubleedesign/).
    -  This topic was modified 5 years, 3 months ago by [doubleedesign](https://wordpress.org/support/users/doubleedesign/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Campaign Monitor](https://wordpress.org/support/users/vibhorchhabra/)
 * (@vibhorchhabra)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/uncaught-error-must-supply-a-valid-http-basic-authorization-header/#post-14149185)
 * Hi doubledesign,
 * Sorry to hear of the trouble with this! It looks like there has been a hiccup
   during the initial connection process, as a first step, the best option would
   be to delete the plugin completely, reinstall and attempt to reconnect again.
 * If you are still seeing issues, would it be possible to create a support case,
   so we can get your account details and check the logs for your Campaigb Monitor
   account in detail. You can create a support case here: [https://help.campaignmonitor.com/](https://help.campaignmonitor.com/)
   by clicking Contact Support .
 * Thank you!
 *  Thread Starter [doubleedesign](https://wordpress.org/support/users/doubleedesign/)
 * (@doubleedesign)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/uncaught-error-must-supply-a-valid-http-basic-authorization-header/#post-14153471)
 * Thank you for the quick reply!
 * I had tried clearing out all of the rows in wp_options related to the plugin 
   to get the prompt again, but the issue still happens. As it’s being used on a
   multisite, I also tried on a different site, no luck. I will create a support
   case as I have some other questions about our use case that may be able to be
   answered at the same time. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Uncaught error – Must supply a valid HTTP Basic Authorization header’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/campaign-monitor-for-woocommerce_262050.
   svg)
 * [Campaign Monitor for WooCommerce](https://wordpress.org/plugins/campaign-monitor-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/campaign-monitor-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/campaign-monitor-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/campaign-monitor-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/campaign-monitor-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/campaign-monitor-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [doubleedesign](https://wordpress.org/support/users/doubleedesign/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/uncaught-error-must-supply-a-valid-http-basic-authorization-header/#post-14153471)
 * Status: not resolved