• Hi,

    I have installed the Campaign Monitor for WooCommerce plugin.
    When I visit the setting screen it produces a Fatal error preventing the screen from rendering:

    
    PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array in /Webserver/sonyawinner-local/wp-content/plugins/campaign-monitor-for-woocommerce/views/admin/connect.php:119
    

    Tracing it back it looks like I may have installed the plugin before as $appSettings containing some pre-existing data.

    When this data is used to call $clients = \core\App::$CampaignMonitor->get_clients($auth); it returns:

    stdClass Object ( [Code] => 122 [Message] => Revoked OAuth Token )

    This leads to the fatal error when the $clients data is attempted to be used.

    If setting exist but an API call returns “Revoked OAuth Token” it should fail gracefully and show you the settings page to enter new details.

    To resolve the issue I have to manually delete all campaign_monitor_woocommerce_{$var} settings from the database.

  • The topic ‘Revoked OAuth Token – Fatal Error’ is closed to new replies.