• Resolved Elias Groesel

    (@grodonkey)


    Hello,

    when completing the setup, after verifying my phonenumber and pressing “complete setup” button I receive the message “Unable to complete setup. Please try again later”.

    Here is the error from the logs:

    2022-03-30T17:31:34+00:00 CRITICAL Uncaught TypeError: Return value of Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings::get_settings() must be of the type array, string returned in .../plugins/google-listings-and-ads/src/API/Google/Settings.php:545
    Stack trace:
    #0 .../plugins/google-listings-and-ads/src/API/Google/Settings.php(123): Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings->get_settings()
    #1 .../plugins/google-listings-and-ads/src/API/Google/Settings.php(51): Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings->should_sync_shipping()
    #2 .../plugins/google-listings-and-ads/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php(67): Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings->sync_shipping()
    #3 .../wp-includes/rest-api/class-wp-rest-server.php(1141): Automattic\WooCommerce\GoogleLis in /home/m2170/Sites/purplebike.de/wp-content/plugins/google-listings-and-ads/src/API/Google/Settings.php in Zeile 545

    Do you know whats going on there?
    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hi @grodonkey,

    Does this happen when only WooCommerce and Google Listings and Ads are active and the Twenty Twenty theme is used? If so, please open up a ticket at WooCommerce.com and include a link to this forum thread in it.

    https://woocommerce.com/my-account/create-a-ticket/

    Thanks!

    u8802880

    (@u8802880)

    2022-04-06T03:40:05+00:00 CRITICAL Uncaught TypeError: Return value of Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings::get_settings() must be of the type array, string returned in /var/www/xxxx.com/htdocs/wp-content/plugins/google-listings-and-ads/src/API/Google/Settings.php:556
    Stack trace:
    #0 /var/www/xxxx.com/htdocs/wp-content/plugins/google-listings-and-ads/src/API/Google/Settings.php(135): Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings->get_settings()
    #1 /var/www/xxxx.com/htdocs/wp-content/plugins/google-listings-and-ads/src/API/Google/Settings.php(52): Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings->should_sync_shipping()
    #2 /var/www/xxxx.com/htdocs/wp-content/plugins/google-listings-and-ads/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php(67): Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings->sync_shipping()
    #3 /var/www/xxxx.com/htdocs/wp-includes/rest-api/class-wp-rest-server.php(1141): Automattic\WooCommerce\GoogleListingsAndAd in /var/www/xxxx.com/htdocs/wp-content/plugins/google-listings-and-ads/src/API/Google/Settings.php on line 556

    I use flatsome :(, sample error

    • This reply was modified 2 years ago by u8802880.
    nikluz

    (@nikluz)

    Im having the exact same issue

    2022-04-05T16:51:20+00:00 CRITICAL Uncaught TypeError: Return value of Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings::get_settings() must be of the type array, string returned in /var/www/wordpress/wp-content/plugins/google-listings-and-ads/src/API/Google/Settings.php:556
    Stack trace:
    #0 /var/www/wordpress/wp-content/plugins/google-listings-and-ads/src/API/Google/Settings.php(135): Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings->get_settings()
    #1 /var/www/wordpress/wp-content/plugins/google-listings-and-ads/src/API/Google/Settings.php(52): Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings->should_sync_shipping()
    #2 /var/www/wordpress/wp-content/plugins/google-listings-and-ads/src/API/Site/Controllers/MerchantCenter/SettingsSyncController.php(67): Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings->sync_shipping()
    #3 /var/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1141): Automattic\WooCommerce\GoogleListingsAndAds\API\Site\Controllers\MerchantCenter\SettingsSyncContr in /var/www/wordpress/wp-content/plugins/google-listings-and-ads/src/API/Google/Settings.php on line 556

    As a programmer, I can tell you that this line in particular stands out to me:
    get_settings() must be of the type array, string returned

    The question is if this is happening due to a bug in the plugin, or if some setting in our end is causing get_settings() to return a string instead of an array.

    In any case, your plugin does not handle this error well. The user should be receiving more useful feedback when this happens rather than “Unable to complete setup. Please try again later”. We need some sort of indicator of what the actual problem is. Im happy to work with your development team to help resolve this issue since it looks like its affecting a few people already.

    nikluz

    (@nikluz)

    Yall are quick! thanks for updating and fixing this!

    Thread Starter Elias Groesel

    (@grodonkey)

    Unfortunately the problem still persists for me.
    @3sonsdevelopment Yes, only those are active.

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hi @grodonkey,

    Unfortunately the problem still persists for me.

    Can you please confirm if you are using the latest version of this plugin which is v1.12.4? If not, can you please update the plugin to its latest version and check again?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error when completing the setup’ is closed to new replies.