Skip to content

Incompatibility: Cloudinary WordPress Plugin breaks Media URLs when JetEngine dashboard styles load inline SVGs #1092

Closed

Description

@TheRealFreelancer

Description

When using the Cloudinary WordPress plugin together with Crocoblock JetEngine, the Media Library “Edit Attachment” screen shows broken image URLs (/wp-content/uploads/...) instead of the expected Cloudinary URLs.

This only happens when JetEngine is active. After investigation with Crocoblock Support, the root cause seems to be that Cloudinary scans the entire admin page output for URLs. JetEngine adds inline SVGs via jet-engine/framework/jet-dashboard/jet-dashboard.php, and Cloudinary attempts to process these SVG references as if they were media files. When this fails, all Cloudinary URLs on the page “fall back” to local paths.


Steps to Reproduce

  1. Install the Cloudinary WordPress plugin and connect a Cloudinary account.
  2. Sync media so that attachments use Cloudinary URLs.
  3. Install and activate JetEngine.
  4. Go to Media → Library → List View and click on any image → Edit.
  5. The File URL field now shows a local /wp-content/uploads/... path instead of the correct res.cloudinary.com/... URL.
  6. The image preview also fails to load.

Expected Behavior

Cloudinary should continue to return the correct Cloudinary URL for the attachment, regardless of whether JetEngine is active or whether the page includes inline SVGs.


Actual Behavior

When JetEngine is active, Cloudinary falls back to local upload paths in the Media Library Edit view. Image previews break.


Additional Context

  • Crocoblock Support confirmed JetEngine does not hook into wp_get_attachment_url or rewrite media URLs.
  • The issue is triggered by JetEngine’s dashboard styles, which insert inline SVGs (content: url('data:image/svg+xml;base64,...')).
  • Removing these lines from JetEngine immediately fixes the issue.
  • A temporary workaround is a custom shim plugin that restores Cloudinary URLs in the Admin area.
  • WordPress 6.6.x, PHP 8.2–8.3, latest Cloudinary plugin, JetEngine 3.x.
  • Screenshots from Crocoblock Support show that removing the SVG CSS resolves the issue.
Image

Suggested Resolution

Improve Cloudinary’s admin URL parsing/handling logic to ignore data: URIs (SVGs or other inline assets).
Example: Skip replacement when the URL starts with data: instead of http/https.

This would prevent inline SVGs from breaking attachment URL replacement in the Admin area.

Image Image Image Image

Activity

  1. atdcloud commented on Sep 4, 2025

    @atdcloud

    Hi @TheRealFreelancer ,
    Thank you for bringing this issue with us. We are currently looking into it and will check if we can reproduce the issue on our end.

  2. aatanasov-cloudinary commented on Sep 12, 2025

    @aatanasov-cloudinary
    Contributor

    Hi @TheRealFreelancer, Thank you for reporting this issue.

    This is a premium plugin, and we're unable to test it directly, but when we add admin styles similar to the screenshot, the images load correctly. Here is an example:

    Image

    Additionally, the admin page includes such inline SVG files by default (e.g. the sidebar menu icons).

    It looks like there is something else that affects the edit media page.

    Would you be able to send the HTML markup of all Crocoblock JetEngine elements available on the edit media page(e.g. view-source:http://example.com/wp-admin/post.php?post=123&action=edit)? We'd like to see how the markup is organized and if it affects the Cloudinary parsing.

  3. TheRealFreelancer commented on Sep 12, 2025

    @TheRealFreelancer
    Author

    Hey @aatanasov-cloudinary,

    Thank you for looking into the issue.

    If you don't mind, I can provide you with access to my test site. It only has JetEngine and Cloudinary installed.

    Please let me know where I should send the credentials.

  4. Vdeub-cloudinary commented on Sep 12, 2025

    @Vdeub-cloudinary

    Hi @TheRealFreelancer, let me jump in here.
    Feel free to invite wp-debug-aaaaiyfgvjekhcaw3stn74gmly@cloudinary.slack.com, we will receive an email to set a password and I'll share it with @aatanasov-cloudinary. This is a shared email we use when we need access to a WordPress instance.

  5. TheRealFreelancer commented on Sep 12, 2025

    @TheRealFreelancer
    Author

    Invite sent. I hope it works.

  6. Vdeub-cloudinary commented on Sep 12, 2025

    @Vdeub-cloudinary

    Thanks @TheRealFreelancer - I found your account details via our logs and the screenshots you shared. It seems your website is not configured to send email so I haven't received the invitation email. When I try to reset the password, I get this error:
    Error: The email could not be sent. Your site may not be correctly configured to send emails. [Get support for resetting your password](https://wordpress.org/documentation/article/reset-your-password/).

    If that's easier, feel free to reach out to support@cloudinary.com instead and share the password directly. Thanks!

  7. TheRealFreelancer commented on Sep 16, 2025

    @TheRealFreelancer
    Author

    Hi @Vdeub-cloudinary, apologies for the delayed response. I’ve sent the login credentials to support@cloudinary.com, referencing this thread. Please let me know if you were able to log in and reproduce the issue. Since this is a test site, I can also provide FTP access if needed.

  8. Vdeub-cloudinary commented on Sep 16, 2025

    @Vdeub-cloudinary

    Hi @TheRealFreelancer as per the ticket you opened, I was able to access the test site and the credentials were shared with @aatanasov-cloudinary.

  9. TheRealFreelancer commented on Sep 16, 2025

    @TheRealFreelancer
    Author
  10. aatanasov-cloudinary commented on Oct 9, 2025

    @aatanasov-cloudinary
    Contributor

    Hi @TheRealFreelancer, we reproduced the issue, and it was fixed in #1102

    The issue isn't specifically related to JetEngine, but to long inline SVGs in the markup.

    The fix will be released in the next plugin version.

  11. TheRealFreelancer commented on Oct 9, 2025

    @TheRealFreelancer
    Author

    Excellent!

  12. aatanasov-cloudinary commented on Oct 29, 2025

    @aatanasov-cloudinary
    Contributor

    Hi @TheRealFreelancer, the fix has been released in the latest plugin version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions