Skip to content
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

versafix-1 template not working #622

Closed
roblog opened this issue Nov 21, 2023 · 4 comments
Closed

versafix-1 template not working #622

roblog opened this issue Nov 21, 2023 · 4 comments

Comments

@roblog
Copy link

roblog commented Nov 21, 2023

Hi, we are getting the following js error with a fresh in stall of Mosaico v. 3.3.1697392242 on a Drupal 10 site with php 8.1 and Civi 5.67.0:

Uncaught Unable to find opening and closing tags in the template

The error occurs after clicking the Edit button in the design phase, and the result is a grey page which is empty apart from the main Civi menu.

The other two out of the box templates appear to be working ok.

@mattwire
Copy link
Collaborator

Check the versafix template html is not an empty file. If it is re-download the extension.

@roblog
Copy link
Author

roblog commented Nov 22, 2023

Hi. Are you referring to the file at uk.co.vedaconsulting.mosaico/packages/mosaico/templates/versafix-1/template-versafix-1.html ?

I had actually already sussed out this file was empty so copied the file from another working installation of the extension on a different site. This gave me another js error (sorry cannot remember what it was). So then I completely reinstalled the extension and the file in question has the missing content, including the html open and close tags reported in the error message.

However, I am still getting the original error message, even though the re-installed version of the file has content in it. I have tried rebuilding the Drupal cache, and the Civi cache, and have emptied out the templates_c folder and done a hard page refresh (Ctrl+F5) but none of these actions makes a difference.

@roblog
Copy link
Author

roblog commented Nov 22, 2023

I don't know if this is relevant but according to my Firefox browser console the error is occurring at line 202 of uk.co.vedaconsulting.mosaico/packages/mosaico/dist/rs/src/js/template-loader.js but the template-loader.js file does not actually exist in the site's filesystem.

@roblog
Copy link
Author

roblog commented Nov 22, 2023

It looks like the empty html template file got lodged in my Firefox browser cache. Ctrl+F5 didn't have any effect, so I tried it in a different browser and it worked. So i did "Forget about this site" in Firefox, and it is working there as well now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants