• This is the error i keep getting when trying to connect google for woocommerce.

    TypeError: Cannot read properties of undefined (reading ‘split’)

    at F (https://enerset-shop.rs/wp-content/plugins/google-listings-and-ads/js/build/get-started-page.js?ver=71d5de2b93e7945bc733:1:22965) at D at div at Y at div at WithAdminPageShell(Component) at Suspense at Oe (https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=ce5e6a2fbfb89a63a074:2:177626) at div at div at ye (https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=ce5e6a2fbfb89a63a074:2:176419) at div at Rac (https://enerset-shop.rs/wp-includes/js/dist/components.min.js?ver=5dedfe13f08880193a28:10:124282) at FC (https://enerset-shop.rs/wp-includes/js/dist/components.min.js?ver=5dedfe13f08880193a28:10:125036) at w (https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/admin-layout/index.js?ver=a5130e96397abb3fb080:2:2770) at Pn (https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=ce5e6a2fbfb89a63a074:2:238803) at O (https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=ce5e6a2fbfb89a63a074:2:145201) at P (https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=ce5e6a2fbfb89a63a074:2:144646) at a (https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=ce5e6a2fbfb89a63a074:2:139200) at https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=ce5e6a2fbfb89a63a074:2:241430 at https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=6b38d231f83c5b197e72:2:160290 at https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=6b38d231f83c5b197e72:2:161343 at https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=6b38d231f83c5b197e72:2:158242 at https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=6b38d231f83c5b197e72:2:158242 at https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=6b38d231f83c5b197e72:2:159435 at zn (https://enerset-shop.rs/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=ce5e6a2fbfb89a63a074:2:245875)
    • This topic was modified 1 week, 4 days ago by Jan Dembowski.
    • This topic was modified 1 week, 4 days ago by Jan Dembowski. Reason: Formatting

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi @davidc27!

    Thanks for sharing the full error details.

    The error means the plugin’s JS code tried to run .split() on a value it expected to be a string (likely something like a URL or connection ID), but the value came back empty/undefined, usually caused by stale or corrupted connection data between the plugin, your Google account, and WooCommerce’s admin data layer.

    Please try reconnecting your accounts by following these steps:

    1. Go to https://example.com/wp-admin/admin.php?page=connection-test-admin-page. (replace the example.com with your site url )
    2. Under Merchant Center, click MC Disconnect.
    3. Under Google Account, click Disconnect Google Account.
    4. Under Jetpack, click Disconnect Jetpack. (if available)
    5. Next, please go to your Google account’s security settingsremove all access permissions for WooCommerce
    6. Clear your browser/site cache, then repeat the setup process in Google for WooCommerce.
    7. Then repeat the setup process in the plugin.

    For a full guide on connecting your Google Merchant Center account, please refer to this article.

    If that does not work, Please also share the following so we can investigate further:

    • Your System Status Report from WooCommerce → Status → System Status.
    • Any relevant error logs from WooCommerce → Status → Logs, particularly logs generated around the time the error occurs.

    Please paste the System Status Report and relevant error log into Pastebin and share the generated links with us. When creating the Pastebin entries, please enable the Burn after reading option.

    Once we have these details, we can investigate the issue further.

    Plugin Support Jason Kytros

    (@jasonkytros)

    Hey @davidc27 ,

    This is Jason, a Technical Product Manager working with this extension.

    The error that you describe indicates that the store’s country in WooCommerce settings was not saved correctly. This could be the result of either a plugin conflict, or the WooCommerce onboarding failing to complete properly.

    To resolve this:

    • Go to WooCommerce > Settings > General.
    • Choose a new country temporarily in Country/State.
    • Click Save.
    • Choose your original country.
    • Click Save.

    Can you give this a try and let me know if the issue is resolved?

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

You must be logged in to reply to this topic.