[imageLink] Product image “peak.png” is not a valid name
-
I’m getting the error “[imageLink] Product image “peak.png” is not a valid name” when syncing. All my products have been getting this error but I have been using https://sharpenutrition.us/product/peeak-performance/ as my test. I have shortened the name, checked to make sure it is a proper image and that there is not 403 errors with it. You can access the image directly at https://sharpenutrition.us/wp-content/uploads/2024/07/peak.png . Looking for what else I can try.
The page I need help with: [log in to see the link]
-
Hi @desharpe,
Thank you for reaching out.
I’m really sorry to hear you’re experiencing this issue. I understand how frustrating this can be getting an error message, and I’m here to assist you in resolving it.
First, I’d recommend you try disconnecting and reconnecting your account to see whether it resolves the issue or not:
- Go to?https://example.com/wp-admin/admin.php?page=connection-test-admin-page?(replace example.com with your domain name)
- Under Merchant Center, click MC Disconnect
- Under Google Account, click Disconnect Google Account
- Under Jetpack, click Disconnect Jetpack
Next, go to?Marketing > Google Listings & Ads?and set up the connection again. Additionally, head over to WooCommerce → Status → Tools, and do the following:
- WooCommerce transients – Clear
- Expired transients – Clear
- Clear template cache – Clear
- Capabilities – Reset Capabilities
- Clear customer sessions -Clear
- Product lookup tables – Regenerate
- Regenerate the product attributes lookup table – Regenerate
Let us know how that goes.
Followed all the above steps. There was no option to disconnect Jetpack. Not sure if that is pertinent. Still getting the same error. In the connection-test-admin-page I did do a Merchant Center “Check MC Status:” and the response showed “wpcom_rest_api_status”: “disapproved”. Not sure if that is needed. Looking at the logs the error being logged is:
2024-11-01T15:47:57+00:00 Debug Automattic\WooCommerce\GoogleListingsAndAds\Product\BatchProductHelper::validate_and_generate_update_request_entries Skipping product (ID: 7697) because it does not pass validation: {“woocommerce_id”:7697,”errors”:[“[imageLink] Product image \”peak.png\” is not a valid name.”]}Hi @desharpe,
Thanks for sharing the Error Log. I understand how frustrating it can be to troubleshoot this error.
The message you’re seeing, “[imageLink] Product image ‘peak.png’ is not a valid name” usually indicates that Google requires ASCII/Latin-only characters. Using special characters, symbols, or non-Latin letters in image URLs or product data can lead to compatibility issues with Google’s system.A good first step would be to rename the image. On your computer, try renaming the image to use only Latin characters and avoid symbols. For example, something descriptive like peak-performance-image.png or productname-description.png works well. Keeping it simple and clear can help ensure compatibility.
After that, re-upload the image. Once you have a new file name, re-upload the renamed image to WooCommerce and assign it to your product.
Finally, force a sync with Google. To expedite the sync, you can use a hidden connection test page to update all products in Google Merchant Center. Simply go to this URL on your site: wp-admin/admin.php?page=connection-test-admin-page, then select Sync All Products with Google Merchant Center.
For further guidance on this issue, you may find our support guide helpful:
https://woocommerce.com/document/google-listings-and-ads/faqs/#why-do-i-have-unsupported-items
Let me know if there’s anything else I can help with!
I have done those steps already. My first image name was PeeakPerformance568x325.png. I then copied the image locally and changed the name to PeeakPerformance-e1729115147882.png. I then tried shrinking the image and changed the name to PeaakPerformanceSmall.png. Then I changed the name to the current peak.png. Each time I uploaded that change as a new image to the file library and swapped the image in the product. Each time has failed. Here is what media library shows for the latest image:
I double checked my MySQL database and the character set is utf8mb4. The only other thing I can think of is that I am using Smush plugin to shrink my images.
Hello desharpe,
Thank you for your reply.
This is an unusual error, normally the image file name “peak.png” should not cause any problem.
As a test, could you download this peak.jpg image and upload it to your site?Let me know if this also shows the same error or works fine.
Looking forward to your response. ??
Hi @desharpe,
Thank you for reaching out and letting us know the issue still isn’t resolved. I understand you’ve already tried several steps, but the images are still not syncing with Google.
After reviewing your product image, I noticed that it contains some text elements that Google typically doesn’t accept for product images. This image appears more like a promotional banner rather than a primary product image, which may be causing the sync issues.
Here are some key points from Google’s Product Image Guidelines to keep in mind when designing product images, as certain elements may conflict with Google’s requirements:
- Avoid images that contain promotional elements or overlays, such as:
- Calls to action (e.g., “buy now”)
- Service-related information (e.g., “extended warranty”)
- Free shipping or price details
- Promotional adjectives (e.g., “best,” “cheap”)
- Product conditions or compatibility (e.g., “new,” “2-piece”)
- Any overlays, including watermarks, brand names, and logos
- Barcodes or other labeling
- Brand, manufacturer, or retailer names and logos
You can review the full guidelines here for more information: Google Product Image Guidelines.
Please update your images according to these guidelines, and let us know if this helps!
I updated the image with the full product image. You can see the new image at https://sharpenutrition.us/wp-content/uploads/2024/07/PeaakPerformance1024.png. I am still getting the error message Product image “PeaakPerformance1024.png” is not a valid name [image]
Hi @desharpe ,
Thank you for the update and I understand that you changed the image entirely to the product itself. The error message, can happen sometimes, even if it looks okay from your end.
Kindly try something simple without any numbers or caps like “performance.png” or “peaak.png”. Once you’ve renamed it, re-upload the image and attempt syncing again.
Please let us know how it goes.
I renamed the image to Peaak.png and reuploaded and replace the current image and am still getting the error. You can see the new image at https://sharpenutrition.us/wp-content/uploads/2024/07/Peaak.png. I also pasted the log info below if it helps at all.
2024-11-10T04:10:57+00:00 Debug Automattic\WooCommerce\GoogleListingsAndAds\Product\WCProductAdapter::map_product_categories Product category (ID: 7697): [“Recovery”]. 2024-11-10T04:10:57+00:00 Debug Automattic\WooCommerce\GoogleListingsAndAds\Product\BatchProductHelper::validate_and_generate_update_request_entries Skipping product (ID: 7697) because it does not pass validation: {“woocommerce_id”:7697,”errors”:[“[imageLink] Product image \”Peaak.png\” is not a valid name.”,”[additionalImageLinks[0]] Product image \”nutrition-label2.png\” is not a valid name.”,”[additionalImageLinks[1]] Product image \”PeaakPerformanceDescrip.png\” is not a valid name.”]} 2024-11-10T04:11:33+00:00 Debug Automattic\WooCommerce\GoogleListingsAndAds\Product\WCProductAdapter::map_product_categories Product category (ID: 7697): [“Recovery”]. 2024-11-10T04:11:33+00:00 Debug Automattic\WooCommerce\GoogleListingsAndAds\Product\BatchProductHelper::validate_and_generate_update_request_entries Skipping product (ID: 7697) because it does not pass validation: {“woocommerce_id”:7697,”errors”:[“[imageLink] Product image \”Peaak.png\” is not a valid name.”,”[additionalImageLinks[0]] Product image \”nutrition-label2.png\” is not a valid name.”,”[additionalImageLinks[1]] Product image \”PeaakPerformanceDescrip.png\” is not a valid name.”]} 2024-11-10T04:13:15+00:00 Debug Automattic\WooCommerce\GoogleListingsAndAds\Product\WCProductAdapter::map_product_categories Product category (ID: 7697): [“Recovery”]. 2024-11-10T04:13:15+00:00 Debug Automattic\WooCommerce\GoogleListingsAndAds\Product\BatchProductHelper::validate_and_generate_update_request_entries Skipping product (ID: 7697) because it does not pass validation: {“woocommerce_id”:7697,”errors”:[“[imageLink] Product image \”Peaak.png\” is not a valid name.”,”[additionalImageLinks[0]] Product image \”nutrition-label2.png\” is not a valid name.”,”[additionalImageLinks[1]] Product image \”PeaakPerformanceDescrip.png\” is not a valid name.”]} 2024-11-10T04:13:25+00:00 Debug Automattic\WooCommerce\GoogleListingsAndAds\Product\WCProductAdapter::map_product_categories Product category (ID: 7697): [“Recovery”]. 2024-11-10T04:13:25+00:00 Debug Automattic\WooCommerce\GoogleListingsAndAds\Product\BatchProductHelper::validate_and_generate_update_request_entries Skipping product (ID: 7697) because it does not pass validation: {“woocommerce_id”:7697,”errors”:[“[imageLink] Product image \”Peaak.png\” is not a valid name.”,”[additionalImageLinks[0]] Product image \”nutrition-label2.png\” is not a valid name.”,”[additionalImageLinks[1]] Product image \”PeaakPerformanceDescrip.png\” is not a valid name.”]}Hi @desharpe
I understand how frustrating it must be that this issue is still persisting, especially after all the troubleshooting we’ve done together. Let’s try a different approach to help narrow down the cause.I took a look at your other product images, and they seem consistent, so it’s unlikely that the images themselves are the issue for this product specifically.
As a next step, could you try deleting the images from your media library and the product itself, then re-create the product with the same settings with slight adjustment? This will help determine if there’s a glitch in the product data. I’d also recommend creating the product with all plugins temporarily deactivated to see if there’s any interference.
Please give this a try, and let me know if it makes a difference.
This is a production site. I’m not going to be deleting my products and disabling all my plugins. Please go ahead and close this request. I’ll find another product that will work for me.
Hello desharpe,
Thank you for your reply.
Please note that this is a unique issue and has not been reported anywhere recently.
If you wish to pursue this matter again, we are always here to help you resolve it.Have a great day!
- You must be logged in to reply to this topic.