-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught ERROR: multiple element <head> occourences are not supported (found 2 occourences) #624
Comments
Perhaps this is the same issues as this one: #622 |
I don't believe there is a file named template-loader.js in 3.3 (neither on this client side; nor on a freshly downloaded 3.3 from https://civicrm.org/extensions/email-template-builder) I can find other files: Not this one: |
Yes, see the related issue I linked above, in that case they were resolved it by trying a different browser! Trying to access the file via https similarly fails (i.e., not a server caching issue). |
Yes, that's the question. Or rather, how the heck is a non-existent file not only being referenced, but also loaded (as seen in the javascript console) and generating errors? The referenced issue suggested that it might be related to browser caching after an upgrade, but then again maybe not (as per your post). In any case, presumably this is all connected to the fact that the extension is now using an updated version of the upstream mosaico project. Conclusion: WTF?! |
The template-loader.js seems to be bundled and minified into mosaico-libs-and-tinymce.min.js, and it may or may not be adding a problem, but there is a separate problem before that. I'll post on #567 since that seems the closest. |
New mailings using versafix-1 are okay.
New mailings using one of the other custom templates based on versafix give the error in the console:
Uncaught ERROR: multiple element <head> occourences are not supported (found 2 occourences)
Found in the file: /sites/default/files/civicrm/ext/uk.co.vedaconsulting.mosaico/packages/mosaico/dist/rs/src/js/template-loader.js
I can create new templates from versafix, but when trying to edit them and any other custom template based on versafix, I get the same error above.
I reviewed the entry in civicrm_mosaico_template and the html doesn't have multiple values in the html, it has exactly one.
So I suspect the js error is misleading, and I'm going to hazard a guess that it's related to the path prefix thingy (but only due to recency bias on my part).
We did disable a few mosaico extensions (tweaks and message templates), the error continues.
The text was updated successfully, but these errors were encountered: