-
AuthorPosts
-
September 5, 2023 at 10:22 pm #1418203
I just ran the recent updates for the Theme and plugins and there seem to be a couple of problems.
1) on the homepage, I have 2 versions of the Layer slider, one for desktop and one for mobile. On the current live version of the site, these load properly. But on the Staging site where I am testing the updates, there is now a big blank section loading below the main slider on Desktop.
2) The Testimonials module is not working properly and is displaying blank with not content, but I checked and there is content there in the page editor.
September 6, 2023 at 2:47 am #1418221Hey Eric,
Thanks fot the screenshots and link to your staging site, I found that your staging site had this error in the browser console:
Uncaught SyntaxError: Unexpected string (at avia-footer-scripts-adcac82dd5e615344ec485a4a9f3b9c2---64f7868991bac.js:7:118555)
So I disabled your Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression and enabled your Enfold Theme Options ▸ Performance ▸ Delete old CSS and JS files and used the admin toolbar option Purge SG Cache
This solved both issues.
I tracked it down to the text “use strict” in the merged js file:
so I set the Javascript File Merging And Compression to Use minified theme javascript files without merging
and the frontend errors do not occur now.
I’m not sure what is causing this and I can’t reproduce it on my site, so I recommend leaving this setting for a few days and then try the original setting if you wish.
Typically all comments in the js & css are stripped when it is minified, so I don’t know why this is slipping though.Best regards,
MikeSeptember 7, 2023 at 1:49 pm #1418359ok, thank you. I don’t understand why that would be an issue since I did no add that script. Is that something built into the theme?
September 7, 2023 at 5:52 pm #1418384Hi,
Yes it looks like during the JS file merging and compression process and error occurred, I’m not sure why it occurred and I can’t reproduce it on my test site.
I have asked the rest of the team if they have any ideas and will reply when I hear back from them.
Please leave the staging site activate so they can also test, thank you for your patience.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.