By Richard on Friday, 11 April 2014
Posted in General Issues
Likes 0
Views 1.5K
Votes 0
It is an EasyBlog error that only happens on the EasyDiscuss Forum page on my site, so posted it is this section. The error was there before I updated to the latest version of EasyDiscuss, thought the update may solve it but it is still there.

I have a Joomlart accordion in the right hand column of my Blog, Forum and Social pages with line 42 of the code in the accordion module set to -1 (instead of default 0) so that all tabs in the accordion close on visiting/loading the page.

The accordion contains modules from EasyBlog, EasyForum and EasySocial.

There are 6 possible closed outcomes, 2 for each of the 3 pages for logged in and not logged into the site.

All 3 pages (Blog, Forum, Social) have closed tabs when logged in.

Only 2 pages (Blog and Social) have closed tabs when not logged in, the Forum page leaves all tabs open with the following error message appearing when I right click on the page, select 'Inspect Element' and click on 'Console':

Uncaught ReferenceError: EasyBlog is not defined

I am using the Login Layout Menu Option (set to Guest) and Logout Action (set to Registered) with Blog and Forum integrated with Social and set to use the EasySocial login provider on a Purity 3 Joomlart website with Bootstrap 3 and Joomla 3.2.3. I also use NoNumber ReReplacer to allow any component on Bootstrap 2.3 to use Bootstrap 3 classes.

It is probably a minor setting problem but I cannot find it.....
I noticed this below the error message on line 2664 if it helps:

EasyBlog.ready(function($){$('.blog-module-archive > div:first').addClass('active-year');$('.blog-module-archive .mod-year a').bind('click',function(){$(this).parent().toggleClass('toggle');$(this).parents('.archive-year-wrapper').find('.mod-months').toggle();return false;});});
·
Friday, 11 April 2014 00:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

It looks like JCH is compressing items based on the "static" version and because JCH combines all javascripts including EasySocial, EasyDiscuss etc, it may be problematic. The quickest way to resolve this, is to configure EasyBlog to run on Optimize mode and clear the cache. JCH would then only compress specific scripts from EasyBlog.

By the way, it would be much appreciated that in the future, forum posts should be kept really simple and a link to the page that has issues should be displayed. Lengthy forum posts will only cause delays because we need to read through multiple times to really understand the whole issue
·
Friday, 11 April 2014 00:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark, I will make the change and will also shorten posts with a link in the future as requested.

I always try an give as much information as possible to help identify a problem here but understand it may actually be quicker to follow the path you suggest.
·
Friday, 11 April 2014 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for understanding Richard Just so you know, we handle close to 100 emails and forum posts on a daily basis so reading through really lengthy post is just tiring We really prefer if the post was as simple as:

The post above for example could be simplified to:


Some javascript errors appearing on the page. This is the error that I am getting:

Uncaught ReferenceError: EasyBlog is not defined

You can check it out at http://site.com/forums

Thanks!
·
Friday, 11 April 2014 01:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah ok, makes sense and will do
·
Friday, 11 April 2014 01:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks again for understanding Richard
·
Friday, 11 April 2014 01:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post