The community and profiles are running really slow on the site even though caching is enabled. It doesn't load slow on my local host development machine, just the live site.
And I'm also getting loads of console errors:
Please can you take a lookcomponents/com_community/assets/release/js/loader.js:1 Uncaught SyntaxError: Unexpected token ILLEGAL
community:887 Uncaught ReferenceError: joms is not defined
community:1636 Uncaught ReferenceError: joms is not defined
community:2008 Uncaught ReferenceError: joms is not defined
Hi.
There is something wrong with your site.
When I try to login in backend using credentials you provided , I'm redirected to URL:
administrator/index.php?Itemid=183&task=activate_account®user=71390
And still get admin login interface.
Hi.
But I need SU access.. I can't enable debugging in Joomla! without it.
Ok I've given you SU but you can't debug the community, it runs out of memory every time. Even on my local machine it runs out of memory and the memory_limit is 2048M.
Please also note I have a very busy site so I don't really want debug information displayed to everyone. Is there a way only you can view it?
Hi.
Well... not really. It will be quite hard to debug it without Joomla! debug tools.
I assign developer to this thread.
HI,
I just test it and I think your site is really great, quite fast for me and good design of course :)
thank you
Thanks glad you like the site :)
The community homepage is much fast now because I removed the Who's Online, Members, Videos, Groups modules and just left Photos. It's still quite slow as it loads in about 7 seconds. When all the modules are visible is loads in about 20-30 seconds.
I know it has to do with the way the system generates avatars. I think it's going in and getting an entire user just so that it can return the avatar. And considering there's maybe up to 100 avatars on the page at one time, this is really resource intensive. That's why removing all those modules has sped things up because it has far far less avatars to retrieve.
What I don't understand is that your community on your website has just as many avatars so why is your system so much quicker at loading than mine?
Also on the Kunena forum, it used to take about 20 to load a page because of JomSocial. I disabled the JomSocial integration plugin and the forum loads super fast.
Is there anything we can do about this?
FYI I found the culprit.
com_community/libraries/user.php - line 277
Every time you're getting the CUser object, you're also saving immediately to the DB. The biggest time consuming sql statements are deleting/inserting into the #__user_usergroup_map table. As soon as I commented out the $this->save() call - everything is running fast. What are the implications of me removing this save call and why it it causing such a load on the DB?
I will ask the senior developer for this one..
thank you
please you try open this file components/com_community/libraries/user.php, add this code after line 1058 :
if($this->_params->get('update_cache_list') != $jUser->_params->get('update_cache_list')){
$jUser->setParam('update_cache_list',1);
}
I suggest you also install cache component for helping make it faster, you can search it from joomla extenstion site.