Coder Social home page Coder Social logo

Comments (18)

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024 1

@qdz90 - it is fixed when requesting the content but not when requesting image nodes. For the image nodes, it is fixed in 3.0.3 that will be released next week.

from cloudinary_wordpress.

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024 1

@LarsEjaas we have released 3.1.6 that should fix this issue.
Please let us know if it is not the case!

from cloudinary_wordpress.

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024

@cfab could you share more details on this? Are you using a Custom REST API endpoint or the core one?

from cloudinary_wordpress.

cfab avatar cfab commented on August 16, 2024

Hello,
with the version <3, the given url for a media in the rest api (or using wp-graphql) was the cloudinary media url
Since version 3, the given url is the local url, why did you change this ?
see screenshot below (now and then before v3 - look at the sourceUrl data) - or is it just me ?
Capture d’écran 2022-01-27 à 12 23 52
Capture d’écran 2022-01-27 à 12 24 34

from cloudinary_wordpress.

ashleynexvelsolutions avatar ashleynexvelsolutions commented on August 16, 2024

Any update on this? @cfab @Vdeub-cloudinary

from cloudinary_wordpress.

cfab avatar cfab commented on August 16, 2024

from cloudinary_wordpress.

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024

@ashleynexvelsolutions @cfab - we are working on this and hope to have a fix for 3.0.2.
I'll keep you posted on this.

from cloudinary_wordpress.

cfab avatar cfab commented on August 16, 2024

from cloudinary_wordpress.

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024

We have released 3.0.3 that fixes this issue. Please upgrade and let us know if you still encounter any issues. Thanks!

from cloudinary_wordpress.

thrugl avatar thrugl commented on August 16, 2024

After updating to 3.0.3 from 2.x.x, I am now experiencing this problem

from cloudinary_wordpress.

aleksandar-cloudinary avatar aleksandar-cloudinary commented on August 16, 2024

Hi @thrugl, Could you please share the query you're running and the output?

from cloudinary_wordpress.

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024

Hi @thrugl, to add to Aleksandar's message. Could you please open a ticket to [email protected] with a system report? If you can also share if it is happening for all images or specific ones that could also be helpful.

from cloudinary_wordpress.

LarsEjaas avatar LarsEjaas commented on August 16, 2024

I am experiencing the same issue using the Cloudinary WordPress plugin v. 3.0.9 and WPGraphQL plugin v. 1.13.9.
If I check the URL inside WordPress admin when editing Posts and Pages I get the correct Cloudinary media URL, But when using the GraphQL API endpoint (or using the GraphiQL explorer) I get the WordPress image url.
I have tried downgrading the Cloudinary plugin, however v. 2.7.6 of the plugin crash in the post editor of WordPress v. 6.1.1

from cloudinary_wordpress.

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024

Hi @LarsEjaas, could you please open a ticket to [email protected] with a system report and an example of GraphQL Query you are doing? Thanks!

from cloudinary_wordpress.

LarsEjaas avatar LarsEjaas commented on August 16, 2024

I am sorry for not getting back earlier!

After some debugging I have narrowed the issue I am experiencing to the use of an authorization plugin I use to set CORS headers to my headless frontend:
https://github.com/funkhaus/wp-graphql-cors

I guess this is probably out of the scope of the support from you guys 🙂 But this is how it can be replicated:

  1. Install the WPGrapQL WordPress plugin, the WP Graphql Cors plugin and the Cloudinary WordPress Plugin. Make sure the default "Sample Page" is published and add a featured image to the page hosted on Cloudinary.

  2. Rightclick the featured image and copy the image URL to make sure it points to a Cloudinary URL.

  3. Go to the: GraphiQL IDE menu point inside WP admin.

  4. Inside the IDE add the following graphQL query:

query GET_PAGE(
  $uri: ID!
) {
  page: page(id: $uri, idType: URI) {
    featuredImage {
      node {
        sourceUrl
      }
    }
  }
}
  1. In the QUERY VARIABLES field just below the field for queries, add the following JSON object:
{"uri": "sample-page"}
  1. Click the Execute Query ▶️ button inside the GraphiQL IDE.

Expected behavior

I expect the image slug/URL to point to Cloudinary. I got a slug/URL pointing to the WordPress domain.

Issue created for the WP GraphQL Cors plugin

I have created an issue here: funkhaus/wp-graphql-cors#45
I consider this resolved from your side really, as the Cloudinary plugin is working fine when I disable the WP GraphQL Cors plugin 🙂

from cloudinary_wordpress.

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024

@LarsEjaas
Thanks for the detailed explanation.
I will try to reproduce the issue on my side and see if there is anything we can do.
I'll keep you posted if I find anything interesting.

from cloudinary_wordpress.

LarsEjaas avatar LarsEjaas commented on August 16, 2024

@LarsEjaas Thanks for the detailed explanation. I will try to reproduce the issue on my side and see if there is anything we can do. I'll keep you posted if I find anything interesting.

Thanks @Vdeub-cloudinary - please reach out if you need further details!

from cloudinary_wordpress.

LarsEjaas avatar LarsEjaas commented on August 16, 2024

@LarsEjaas we have released 3.1.6 that should fix this issue. Please let us know if it is not the case!

@Vdeub-cloudinary This is incredible! I am so hyped about this: Can't wait to check it out! Thanks a lot for taking the time to write to me 🙂

from cloudinary_wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.