Uncaught SyntaxError: Unexpected token ‘<‘ (at plugin.min.js?wp-mce-49110-202011
We have an error showing up on one of our Enfold installs. It’s the only one with this issue, and we’ve done all of the usual testing. We’ve deactivated plugins and removed all code from the child theme, cleared the server cache, cleared the browser cache, and tested on different machines… Nothing seems to fix this. I also re-installed a fresh version of WordPress and Enfold parent theme.
What’s really odd is this is a subsite of a MultiSite network that other sites use Enfold. Only this one has errors. Plugins and themes are all shared. So, that leads me to believe it’s something local just to this subsite.
Whenever a page, post, or other CPT, is made or edited, no matter which editor (advanced enfold, classic, or block), whenever you click the link icon in TinyMCE the box doesn’t show and the console reports another error:
plugin.min.js?wp-mce-49110-20201110:1 Uncaught TypeError: Cannot set properties of undefined (setting ‘tempHide’)
at tN.<anonymous> (plugin.min.js?wp-mce-49110-20201110:1:3403)
at c.exec.<computed> (tinymce.min.js?ver=49110-20201110:2:190487)
at pp.execCommand (tinymce.min.js?ver=49110-20201110:2:189626)
at tN.execCommand (tinymce.min.js?ver=49110-20201110:2:346040)
at t.cmd.t.onclick (tinymce.min.js?ver=49110-20201110:2:345166)
at c.fire (tinymce.min.js?ver=49110-20201110:2:197006)
at i.fire (theme.min.js?wp-mce-49110-20201110:1:28284)
at HTMLDivElement.o (theme.min.js?wp-mce-49110-20201110:1:32492)
at C (tinymce.min.js?ver=49110-20201110:2:10800)
at HTMLDivElement.d (tinymce.min.js?ver=49110-20201110:2:10946)
It’s almost like a JS file is getting run as HTML.
If we use the basic text editor for html, that link button works great.
Here are the details:
Enfold 5.4
WordPress 6.1.1
php 8
WP Engine as the host
Any ideas where we need to look?
Adam LloydGuest
Hi Guys,
Love your Enfold theme. I was hoping you make a companion responsive HTML email template I can purchase to leverage the existing brand identity I have already programmed into my site.
Does such a thing exist and I just never figured out how to use it?
Would love to be able to use the same theme and not start over from scratch with something else, like MailChimp.
Please let me know and what new license I need to purchase to activate this feature.
Thank you.
Adam
Sven SchneiderGuest
Hallo i have 2 licence from the enfold templet, question is how long hold the licence have to update every Year ??? ot life time ? because something i saw i need a new token.. and what you meen with token ? thanks a lot Sven
Hi nelmartinez,
Enfold 5.4 is fully compatible with PHP 8.0. If you need further help, then please try to explain the problem a bit further, and post admin WordPress login details to your site in private.
If you want to return a purchase or request a refund, then please reach out to Envato/Themeforest for further help with that.
Best regards,
Rikard
Hi,
Thanks for the update, I’ll go ahead and close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard
Hi scitation,
Please try the following in Quick CSS under Enfold->General Styling:
.avia-content-slider .av_one_third {
margin-left: 10%;
width: 26%;
}
.avia-content-slider .av_one_third.first {
margin-left: 0;
}
Best regards,
Rikard
Hey mischael1,
Could you try updating the theme to the latest version (5.4) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update.
Best regards,
Rikard
Hi,
Thanks for that. First of all, could you try updating the theme to the latest version (5.4) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update.
Best regards,
Rikard
Hi,
Thanks for that. I see that you have used Elementor to create the layout on your site, that is third party plugin which we don’t provide support for. Please try reaching out directly to the plugin developers, or use the built in Enfold Layout Builder to create your content.
Best regards,
Rikard
Hi,
I had already tried resetting the options in the Settings > Reading panel to default or deselect the blog page. That did not resolve the issue. It is currently unset.
I have now discovered that if I set the selected page in the “Where do you want to display the blog” field to any other page than my custom page which is at /blog, it all works as expected. If I change the slug of my custom page to “blogs” instead of “blog” then it works as expected when going to /blogs. But if I go to /blog the displayed page only works properly when any option other than “Use the advance layout builder.. in Enfold > Blog Layout > Blog Layout settings is selected. If I select “Use the advance layout builder..” then the page at /blog does not use the layout builder but the page at /blogs does.
This was all caused because I had created a custom post type with the slug “blog”. This caused a conflict when going to /blog. Instead of going to the custom page with that slug, it was going to the page for the custom post type with that slug. Now that I changed the custom post type slug, it is all resolved.
Thank you for your time an assistance!!
Hi Yigit, WPML-Support provided this solution:
“Thanks for providing me access. I had a quick look at your theme’s code:
As a quick/temporary fix while waiting for Enfold support, please go to “shortcodes/post_metadata.php” line 957 and add ‘translation_priority’ as an excluded taxonomy.
Replace:
1
$excluded_taxonomies = apply_filters( ‘avf_post_metadata_excluded_taxonomies’, array( ‘post_tag’, ‘post_format’ ), $taxonomies );
By:
1
$excluded_taxonomies = apply_filters( ‘avf_post_metadata_excluded_taxonomies’, array( ‘post_tag’, ‘post_format’, ‘translation_priority’ ), $taxonomies );
I did so in my Childtheme (folder shortcodes/post_metadata.php) and it works. Is this what you also would recommend?
Best regards
Anne
All my enfold installations (even some older ones) work with php 8.x.
So it must be something else that leads to the errors you describe.
One thing to keep in mind with php8.x though. jQuery 3.x has thrown some deprecated stuff overboard.
So if you have older Enfold installations still running, they would need to be updated beforehand. Also, any existing snippets should be checked for valid code.
Classic example is jQuery(window).load(function …
I bought a new Enfold license by mistake. Mi intention was upgraded the old but this is the same deprecated version and with PHP 8.0 doesn’t work.
How can i get an update version or change this theme without pay again?
Thanks a lot
Hi,
I don’t have any experience with any file plugins, so I can’t advise.
Enfold will always have the Classic Editor option for as long as it will work which I expect to be for a few more years, I would not be worried, but new WordPress features will be towards the Block Editor.
Best regards,
Mike
Dear Support Team,
I wanted to inquire about the compatibility of the Polylang plugin with Enfold template. It is important to ensure that the plugin works efficiently and effectively on Enfold.
Additionally, I would like to bring to your attention that we are currently facing issues with the WPML plugin, as it generates errors and is not functioning properly. As a result, we plan on migrating to Polylang.
Could you please confirm if Polylang is a suitable alternative for us and if there are any known compatibility issues?
Or could you suggest a plugin that would work well with your theme and provide a seamless multilingual experience (English and French) for our users.
Any recommendations or advice would be greatly appreciated.
Thank you in advance for your assistance.
Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard
Hi Karin,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko
Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard
Hi Roger,
Please edit your Grid Cell and give it a custom CSS class (“grid-slider” in the example below) in Advanced > Developer Settings and then add the following code to the bottom of the functions.php file of your child theme:
function av_grid_slide(){
?>
<script>
jQuery().ready(function(){
var currentBackground = 0;
var backgrounds = [];
backgrounds[0] = 'link-to-your-first-image.jpg';
backgrounds[1] = 'link-to-your-second-image.jpg"';
backgrounds[2] = 'link-to-your-third-image.jpg';
function changeBackground() {
currentBackground++;
if(currentBackground > 2) currentBackground = 0;
jQuery('.grid-slider').fadeOut(1000,function() {
jQuery('.grid-slider').css({
'background-image' : "url('" + backgrounds[currentBackground] + "')"
});
jQuery('.grid-slider').fadeIn(1000);
});
setTimeout(changeBackground, 5000);
}
jQuery(document).ready(function() {
setTimeout(changeBackground, 5000);
});
})
</script>
<?php
}
add_action('wp_footer', 'av_grid_slide');
Then edit the code and change the background image links (“link-to-your-first-image.jpg”)
I will post this as a feature request :)
Best regards,
Yigit
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
Hey,
Danke, aber der Menuepunkt “editor” wird in meinem Theme überhaupt nicht angezeigt
Please make sure you are using a child theme: https://kriesi.at/documentation/enfold/child-theme/
Then, go /wp-content/themes/enfold-child/functions.php via FTP and update the file manually.
If you need our assistance with that, please FTP logins here privately. If you do not know your FTP logins, you can contact your hosting provider and they would provide them for you :)
Regards,
Yigit
Hi,
Sorry for the confusion. Appending a Search Icon is only available for the Top Header layout in Enfold theme options > General Layout tab.
We will add a note about that in the upcoming version.
Cheers!
Yigit
Hi,
I can see the issue on your website on older posts but I could not reproduce it on my local installation.
You are currently using an older version of Enfold. Please refer to this post – https://kriesi.at/documentation/enfold/theme-update/ and update Enfold to the latest version 5.4.
Best regards,
Yigit
Hi Anne,
Thanks for the update!
Enfold has a “avf_exclude_taxonomies” filter that can be used to exclude “translation_priority” taxonomy. I could not reproduce the issue on my WPML site and have not tested it on your installation yet but if you would like us to look into that, please post FTP logins here privately as well.
Best regards,
Yigit
Hi Michael,
Thanks for the update!
If the issue reoccurs, please go to Enfold theme options > Performance and switch to the “use minified JavaScrip files without merging” option in the “JS file merging and compression” field. The upcoming Enfold version includes a fix for this issue :)
Regards,
Yigit
Hey woogie07,
That is totally optional. You will not have license issues if you prefer to develop on a staging site.
If the site has traffic and you are making modifications to PHP files, I recommend a staging site. So in case something goes wrong and you blow up the site, visitors will not be aware of it :)
If you are making only styling changes, then I would enable the Maintenance Mode in Enfold theme options. Once you are done, you can simply disable it.
Best regards,
Yigit
Hi! I’m new with Enfold and I like something like this:
But this thread is old and I don’t find some options.
What I need: a background image from top to the page (behind menu and top section). It’s possible?
Many thanks!