App for Cloudflare® Pro

App for Cloudflare® Pro 1.8.9

media library error

fassbinder

New member
I have the error below, so it simply does not load the images. I did not find any references to what could cause this... any ideas or suggestions?
thanks

Uncaught SyntaxError: Invalid or unexpected token
at new Function (<anonymous>)
at Function.template (underscore.min.js?ver=1.13.7:2:15243)
at n.template (wp-util.min.js?ver=6.7.1:2:328)
at n.render (media-views.min.js?ver=6.7.1:2:26047)
at wp.Backbone.Subviews.<anonymous> (wp-backbone.min.js?ver=6.7.1:2:2142)
at underscore.min.js?ver=1.13.7:2:6363
at Function.N (underscore.min.js?ver=1.13.7:2:9419)
at wp.Backbone.Subviews._attach (wp-backbone.min.js?ver=6.7.1:2:2103)
at wp.Backbone.Subviews.set (wp-backbone.min.js?ver=6.7.1:2:884)
at wp.Backbone.Subviews.add (wp-backbone.min.js?ver=6.7.1:2:1001)
 
Do you have a sample URL it's happening at (or at least a description of where you go to see it)? I can see if it's something I can replicate it, but would need to know where exactly you are seeing it on your end.
 
It occurs in a post, when I go to insert the image.
 

Attachments

  • Captura de tela 2024-12-19 222838.jpg
    Captura de tela 2024-12-19 222838.jpg
    152.6 KB · Views: 0
Hello,I identified the error.
It was the update of the "Image Placeholders" plugin.
By deactivating the plugin, the image gallery was ok.

Note: When activating or deactivating various plugins, I get the message "Pro version installed, but not active. If you have a license, you can enter it here." in the App for Cloudflare®, meaning I need to activate it again.
 

Attachments

  • Captura de tela 2024-12-20 072941.jpg
    Captura de tela 2024-12-20 072941.jpg
    13 KB · Views: 0
Do you have a list of the plugins you have installed by chance? It sounds like something may be mucking with your WordPress options for whatever reason. I've tried activating and deactivating various plugins as a test and none of that made the license key go missing for me. When it happens, is it all the Cloudflare related settings, or just the license key?

Does he API token stay intact? Is the license key there, but you just need to click "Save Changes" on the settings page to re-enable the license?
 
I have the following plugins active:
Classic Editor
Modern Image Formats
Performance Lab
Pods - Content Types and Custom Fields
Site Kit by Google
tagDiv Cloud Library
tagDiv Composer
The Events Calendar
UpdraftPlus - Backup/Restore
WP Rocket
Yoast SEO Premium

yes, API token stay intact. I just need to click "Save Changes"!
 
As far as you can tell, is it *only* when plugins are enabled/disabled? When the plugin page is visited, the backend will force a validation of the license, so it seems strange that's when it's getting lost.

The only thing I can really think of would be if somehow WordPress temporarily loses it's ability to do API backend communication at that point temporarily (maybe a different plugin is shimming in a replacement to WordPress' normal HTTP request system, but only on the plugin page).

It probably makes sense to see if you are able to narrow down which plugin is causing it (disable a few at a time until you see it working as expected), if that's possible. Then could look at that plugins code to see what they are doing that might be mucking standard WordPress functions.
 
Ya, I guess not catastrophic if it's only happening on the plugin page when you enable/disable, but it most definitely seems like something might be affecting WordPress' HTTP calls (but hopefully only on that page). Like I said, if you do end up being able to narrow it down to a certain plugin, I can go digging through their code and maybe build a bug report for them (I can't think of any legit reason that a plugin should be breaking [even temporarily] WordPress' ability to use it's own basic functions for things like HTTP requests).
 
Back
Top