By calvin on Sunday, 16 July 2017
Posted in General Issues
Replies 4
Likes 0
Views 528
Votes 0
I have removed the latest posts module from my homepage (unpublish) because I get this error.
Have you any clues or can you reproduce the error?
https://www.evernote.com/l/APEvgL-YFnhMrrZBZzxts7kak4VPJrqP_tA
I have found this was due to trying to use rok boost plugin from rockettheme. This is a plugin that gives options of compressing and reducing calls to files that CMS seem to create a lot of..I get the js errors even if I turn of the js side of things.
Do you guys know of a similar tool that works well with EB?
·
Sunday, 16 July 2017 20:33
·
0 Likes
·
0 Votes
·
0 Comments
·
When you use tools like this to compress scripts, there is nothing we can do on our end because these plugins would collect all the JS codes on the page and compile it into a single file.

The problem happens when they do not respect the ordering of the scripts on the page. For instance, the error that you are getting is primarily because EasyBlog scripts was trying to look for a variable on the page and because your compressor isn't respecting the ordering, it hit an error.
·
Sunday, 16 July 2017 22:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Good code should not rely on order within the domain of an extension. So it is ok to need jquery as a dependency but is not ok to need scripts in an order for a component. Or at least this should be the case. I would prefer to see a single js for easy blog, not mixing inline js and scripts. It's messy.
·
Sunday, 16 July 2017 22:32
·
0 Likes
·
0 Votes
·
0 Comments
·
There are reasons why the codes need to be placed inline and the primary reason is because we need php to output certain environment conditions.

You are correct about not needing the dependencies but we our extensions are living in an environment that co-exist with a thousand of different extensions and plugins. The only way in resolving these conflicts is to have these codes generated inline.
·
Monday, 17 July 2017 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post