Where can I get the API Environment variable?
I just installed the Cloudinary Wordpress plugin but I am not able to find the API Environment variable, it should look like this: cloudinary://API_KEY:API_SECRET@CLOUD_NAME
I created it manually but it shows an error: "Incorrect connection string".
I got the information I have so far from:
- `User settings > Account > Cloudinary cloud name"
- API Key y API Secret from `User settings > Security`
I am not sure what I am missing. Thanks in advance!
-
Official comment
Hi Luis,
I've checked your account details and can see that you've signed up for our Media Optimizer product: https://cloudinary.com/documentation/media_optimizer
Media Optimizer does not support the WordPress Plugin.
If you would like to use features that are part of our Programmable Media (e.g. WP Plugin) or Digital Asset Management features, you can sign up for another free account using a different email address.
When signing up for the other account, you can choose one of the other products to create an account that can use those features (in the signup form, either the Programmable Media for image and video API
Regards,
Akshay -
Hi Askhay, thanks for the quick response!
That works, I have configured the plugin according to your suggestions.
Now, I am having some issues when syncing images, the images in the gallery show a cloudinary blue icon with the title of "Not syncable. This is an external media".
Do you have an idea why that happens? The file is on the Wordpress Media Library
I tried adding the URL "General Settings > External Asset Sync Settings" but I still see the same.
Kind Regards,
Luis0 -
Hi Luis,
Are these particular assets outside your Media Library? There are settings in your Cloudinary settings that would actually allow you to sync external media, which you could consider. Please let us know what you think?
Regards,
Victor0 -
Hi Victor,
I downgrade the version to 2.7.6 because of an issue with wp-graphql. See more info here: https://github.com/wp-graphql/wp-graphql/issues/2192
I can see a "Sync now" button on that version that starts the sync with cloudinary.
Thanks for the help!
Kind Regards0 -
Hi Luis,
Thanks for the update! Were you on 3.0.2 before? The GraphQL issue should be resolved on a limited basis, you can see the release notes for 3.0.2 here: https://github.com/cloudinary/cloudinary_wordpress/releases/tag/3.0.2
Specifically "Added support for Querying raw HTML content with WPGraphQL - content only". For now, if 2.7.6 is all that works for your use cases, this may be a temporary solution.Regards,
Victor0 -
Hi Victor,
Yeah, I was using that version before. I reinstalled that version again, please see the screenshots below:
- Query and result: https://ibb.co/GVqzkj9
- Media library image status: https://ibb.co/Hq6xgZR
- Error I was talking before of "Non syncable. This is an external media": https://ibb.co/3mm6pG
- Image URL: https://do-benchmark.chrisallan.co/app/uploads/benchmark_world_tour-1.png
WPGraphql plugin version: Version 1.7.2
Cloudinary plugin version: 3.0.2
Is there anything I am missing?
Kind regards.
Luis0 -
Hi Luis,
By default, we only sync assets whose guid matches the domain of your website and since v3, you are now able to add other accessible domains under General Settings > External Asset Sync Settings but first, we will need to check the guid of your image. Can you please open a ticket to support@cloudinary.com and share a system report with the asset added to it as explained in the 2nd video here?
Thanks,
Loic
0 -
Hello Loic,
Sorry for the delay, I was digging in on the solution Mr. Victor gave me, he was right. The `guid` of the media library was not correct. I fixed them and the sync feature of the plugin is working as expected!
I migrated the media library from one domain to another, since it is a Wordpress bedrock project, it uses environment variables to manage the domain URL across the whole site.
The issue related to `wp-graphql` not giving me the cloudinary asset's URL remains. I will create the ticket as you suggest so you have all the information about it.
Thanks for all the support!
0 -
Hi Loic,
Looks like the button to add a media item to the cloudinary report was removed. See the image below:
Is there an option I need to enable to see that button?
Kind regards!
0 -
Hi Luis,
The button only appears if you have enabled the System Report feature. You can follow the steps here to enable it,
Hope that helps.
Best,
Loic
0 -
Hi Loic,
Ticket created, thank you!
Kind regards
0 -
Hi Luis,
Thanks for opening the ticket.
I have it in my queue and I'll reply soon.
Let's keep the conversion on the ticket you just opened.
Best,
Loic
0
Post is closed for comments.
Comments
12 comments