Error when trying to connect
-
I go through the process of connecting my Pinterest account to Woocommerce through the plugin, but after I click Allow on the Allow This Site Access? page, I get the following error: {“code”:”rest_forbidden”,”message”:”Sorry, you are not allowed to do that.”,”data”:{“status”:401}}
I have tried the following:
1. disabled all security plugins
2. Cleared all server and browser cache
3. uninstalled the plugin and reinstalled it
4. disconnected the claimed site at Pinterest
5. I have Administrator rights
6. I have tested /wp-json/ on your site while logged in and it showed a response
7. Application Passwords are enabled
8. I paused CloudflareI still can’t get it to work.
The page I need help with: [log in to see the link]
-
Hi there!
Thank you for bringing this to our attention. I can see that there was a bug related to this issue (GitHub issue #1040), which has already been resolved.
Could you please make sure you are using the latest version of the Pinterest for WooCommerce plugin? To do this, kindly delete your current plugin and install a fresh copy from here: Pinterest for WooCommerce – ww.wp.xz.cn.
Please check if this resolves the issue. If you still face the same problem, 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
- Fatal error logs (if any) under WooCommerce > Status > Logs.
Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.
<h1 class=”plugin-title” style=”box-sizing: border-box; font-family: Inter, sans-serif; font-size: 24px; font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0px; white-space-collapse: collapse;”></h1><h1 class=”plugin-title” style=”box-sizing: border-box; font-family: Inter, sans-serif; font-size: 24px; font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0px; white-space-collapse: collapse;”></h1>
I confirm I am using the latest version of the plugin.
System Status Report https://pastebin.com/jP2nzSFG
Fatal error logs https://pastebin.com/rb6RgNwjHi there!
From the logs you’ve shared, it seems there are two main issues happening on your site:
- Allowed memory size of 805306368 bytes exhausted
This indicates that your site’s PHP memory limit is being reached while processing certain tasks. Increasing the PHP memory limit may help prevent these errors. You can do this by updating your
wp-config.phpfile or asking your hosting provider to increase the memory limit. Here is the article to guide you on how to increase the memory limit: https://woocommerce.com/document/increasing-the-wordpress-memory-limit/2. TypeError: Advanced_Media_Offloader\Services\CloudAttachmentUploader::getRootSourceFiles(): Argument #1 ($metadata) must be of type array, bool given
This error comes from the Advanced Media Offloader plugin and is unrelated to Pinterest. It happens when the plugin tries to upload or process media files and receives invalid metadata.
For testing purposes, could you please deactivate all plugins except WooCommerce and Pinterest, and try to replicate the issue again to see if it still occurs? Also, please try replicating the issue in an incognito or private browser window.Thank you, that seemed to work. However, I am no getting all the below errors on the Diagnostics > Ingestion Issues page:
10 Dec at 14:44 GMT
Issues from last ingestion
Export detailsList of workflow errors
Issue
Description
What to do
Occurrences
Warning 1306
Some additional images could not be downloaded because requests to the image host's server are rate-limited. HTTP status code response: 429.
Contact your image hosting service provider. Their server encountered an error while processing the request to download your additional_image_link values.
1,176
Warning 1224
Some additional images could not be downloaded due to the image host's server encountering bad gateway errors. HTTP status code: 502.
Contact your image hosting service provider. Their server encountered an error while processing the request to download your additional_image_link values.
836
Warning 1219
Some additional images could not be downloaded because they were not found. HTTP status code: 404.
Please validate your additional_image_link values. If the URL is correct, try accessing the image directly via a web browser.
342
Warning 159
Some condition values are missing, which may limit visibility in recommendations, search results and shopping experiences
Check your condition values and make sure they are formatted as new, used or refurbished for any items with associated condition values before your next update
252
Warning 157
Some google_product_category values are missing, which may limit visibility in recommendations, search results and shopping experiences
Check your google_product_category values and make sure they are formatted with values from your relevant region's GPC taxonomy for any items with associated google_product_category values before your next update
244
Error 1300
Unable to retrieve the image
Contact your image hosting service provider. Their server encountered an error while processing the request to download your image_link value.
113
Error 1207
Some images could not be downloaded due to the image host's server encountering bad gateway errors. HTTP status code: 502.
Contact your image hosting service provider. Their server encountered an error while processing the request to download your image_link values.
98
Warning 203
Some additional_image_link values are duplicates and will not be published with the item
Make sure your additional_image_link values do not duplicate each other or the image_link
72
Error 1202
Some images could not be downloaded because they were not found. HTTP status code: 404.
Please validate your image_link values. If the URL is correct, try accessing the image directly via a web browser.
38
Error 111
Some items are missing an image_link URL in product metadata, so those items will not be published
Enter image_link URLs for all items or delete items that are missing image_link URLs before your next update
3Awesome @shahzeenfarooq,
I’m glad to hear my colleague’s response helped and that you were able to resolve the issue. If you found the support in the forum useful, we’d really appreciate it if you could take a moment to leave a review here: https://ww.wp.xz.cn/support/plugin/pinterest-for-woocommerce/reviews/#new-post
Please could you advise about the additional errors I am now seeing which I included in my previous post
Hi there!
Sorry for missing those errors earlier. I can see that you’re encountering multiple issues, and some of them are related to missing condition and google_product_category fields.The Pinterest plugin will add 2 fields to the products page for simple products: Condition and Google Category. These fields are not required by Pinterest but if they are not filled they will show a Warning message on Catalog Tab (Alert message).
You can find those options in the Product data for simple products:

For variable products, the Pinterest tab will be added to the main product (parent) containing the Google category. Product condition will be added to each product variation.

The easiest way to fix this is filling those two fields for your products. If you have a large amount of products, it’s easier to do this in bulk. You can have how to manage this in bulk in our documentation here: https://woocommerce.com/document/pinterest-for-woocommerce/#bulk-edit-attributes.
Also, some of the issues are related to your server. Could you please contact your hosting provider and ask them why the server is returning 404 / 429 / 502 errors?
I hope this helps.
You must be logged in to reply to this topic.