By Jordan Weinstein on Thursday, 18 September 2014
Posted in Technical Issues
Replies 5
Likes 0
Views 1.1K
Votes 0
Hi there,

In a user profile, if we have enabled a link to "Display Profile Type" in one's profile, then a link appears in the header of the profile to:

index.php?option=com_easysocial&view=profiles&layout=item&id=SOME_NUMBER

This page produces a fatal error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /Applications/MAMP/htdocs/DOMAIN/libraries/framework/Joomla/Registry/Format/Json.php on line 58

It seems to be related to the fact that the random users widget is displaying all users in a community and in my case we have about 7,000. Is there any way to limit the number of users displayed to avoid this issue, assuming that is in fact the issue here. On a site with a much smaller community, I an not seeing this. Maximum Memory allowed in PHP is 128M in both sites.

Jordan
Hello Jordan,

Which random users widget are you referring to here? Are you referring to the modules? The module actually has a limit that is defined in the module parameters.
·
Friday, 19 September 2014 00:36
·
0 Likes
·
0 Votes
·
0 Comments
·
It is a sidebar widget called Random Users, right above Random Albums. They do not appear to be modules but widgets in that profile statistics page.
·
Friday, 19 September 2014 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, okay I get it now. Download the attached file and upload it into /components/com_easysocial/views/profiles/
·
Friday, 19 September 2014 01:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Yup, that did it

Will this be a permanent change to the core Mark or a hack for me to maintain on my sites?

Jordan
·
Friday, 19 September 2014 04:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jordan,

This code is already added internally
·
Saturday, 20 September 2014 02:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post