By Sean Carney on Tuesday, 04 November 2014
Posted in Technical Issues
Likes 0
Views 1.3K
Votes 0
I wanted to let you know that JCE-Optimize is reporting they found a syntax error in your file easysocial-1.3.10.static.min.js

I also just upgraded to version 1.3.13 and the same problem remains.

This is an error that makes it so that we cannot set their setting for Minify javascript to Yes. We have set this setting to No or the javascript popups stop working.

Here is the message they sent to me about this

Actually this file has a syntax error in it. I think whichever minification library they used probably caused the error.

If you run it through the JSMin.php library, it throws an UnterminatedStringException with message:

JSMin: Unterminated String at byte 577306: ":function(c,d,e,f){try{f.reverse(),a.each(f,function(a,c){b.getItem(c)||b.createItem(c)

When I view the file in my editor it is showing a syntax error at that line.

I don't use JSMin in JCH Optimize because it's too slow. I use one I write myself but it doesn't check for errors so if you indeed have errors it will make a mess of it.

I wasn't able to correct it but I'm sure the developers of EasySocial should be able to, so you can pass the information over to them.


Anyhow, I hope this information is helpful to you. It is actually a problem we have been having with our EasySocial login the whole time so I am hoping they are onto something and this will be helpful to you.

Sean
Thanks for the report!

We've identified the location where it breaks and applied the fix on your site.
We have turned on "Minify JS" on JCH and your site seems to be running fine now.

Technically, It was this particular code in "admin/themes/compiler.js" that wasn't compressor-friendly. After this line was compressed, JS parsers mistakenly read this as an incomplete regex token.
(current++) / total * max;


We'll be rolling the fix into the next update.
·
Tuesday, 04 November 2014 13:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for finding and fixing the problem! :-)
·
Wednesday, 05 November 2014 06:03
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Wednesday, 05 November 2014 10:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jensen,

Can you tell me what the fix is, so i can implement it also at my site.

Thanks in advance.
·
Thursday, 18 April 2019 03:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Michel,

Can you start a new thread and elaborate more details what is your current issue on our forum? Because this thread already 5 years ago, so those code will be different on the latest version of Easysocial.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Thursday, 18 April 2019 09:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post