Skip to content

Control Panel Assets views not loading. No "source" url param #15574

Closed Answered by thisanimus
thisanimus asked this question in Q&A
Discussion options

You must be logged in to vote

Turns out this was caused by the chunked file upload plugin. Right now I'm trying to figure out why it works fine in one env and not in the other.


For Posterity:

This was an issue with Cloudflare and Chunked Uploads.

  • Cloudflare analytics was enabled on the prod domain, and it inserts a script right before the end of <body>
  • the Chunked Uploads plugin inserts its own script to extend Craft.Uploader at what it assumes right before the end of <body>
  • Chunked Uploads settings are passed as a data attr on the <script> element and fetched via document.scripts[document.scripts.length - 1]... only now the plugin script is not the last one on the page, the Cloudflare script is.

We disabled the CF…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant