• Resolved kelsiecakes

    (@kelsiecakes)


    My action scheduler is filled with failed actions such as:

    gla/jobs/update_merchant_product_statuses/process_item

    gla/jobs/update_products/process_item

    And then today when I was marking a published product as draft a fatal error occured on my site. Here’s the details that were included with the email wordpress sent-

    An error of type E_ERROR was caused in line 270 of the file /nas/content/live/showit28976/wp-content/plugins/google-listings-and-ads/src/Product/ProductHelper.php. Error message: Uncaught TypeError: Automattic\WooCommerce\GoogleListingsAndAds\Product\ProductHelper::get_synced_google_product_ids(): Return value must be of type ?array, string returned in /nas/content/live/showit28976/wp-content/plugins/google-listings-and-ads/src/Product/ProductHelper.php:270

    The site is back up again but I have no idea how to fix this issue. I also have about 10 products that never sync with google listings. and on the product feed overview, I also always get this status: There was an error loading the Overview Stats. Click to retry.array_key_first(): Argument #1 ($array) must be of type array, string given

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there, @kelsiecakes! Thanks for contacting us. I’m happy to help you.

    Can you please share the logs of the failed scheduled actions so we can take e a look?
    You can find them under WooCommerce > Status > Scheduled Actions. They will be on the Logs column.

    Furthermore, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    Google Listings error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Google/GMC.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter kelsiecakes

    (@kelsiecakes)

    Here is a log from today:

    1. 2024-05-18 19:05:58 +0000
      action created
    2. 2024-05-18 19:05:58 +0000
      action started via Async Request
    3. 2024-05-18 19:06:02 +0000
      action failed via Async Request: array_merge(): Argument #1 must be of type array, string given

    I need to figure out how to link to the github gists so I’m not pasting a wall of text here with the system report so I will work on that next.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello kelsiecakes

    Thank you for your reply.

    This appears to be a conflict between plugins or code on your site.
    That is why the normal function of the WooCommerce and GLA plugins is disturbed.
    Further diagnosis will require a System Status Report.

    If you are not familiar with Githib then you may use this tool to paste your site’s SSR.
    Please make sure to change the expiry to One Week at the top left area.
    https://paste.mozilla.org/

    Looking forward to your response. ??

    Best regards.

    anastas10s

    (@anastas10s)

    Hi ?? We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting fatal errors with Google Listings- array not string?’ is closed to new replies.