By Marc on Thursday, 28 January 2016
Posted in Technical Issues
Replies 3
Likes 0
Views 485
Votes 0
We are getting an the following occasional error on some members profiles:

Notice: Undefined variable: theme in /var/www/kiwiklub.com/media/com_easysocial/apps/user/shares/helpers/albums.php on line 33

Fatal error: Call to a member function output() on null in /var/www/kiwiklub.com/media/com_easysocial/apps/user/shares/helpers/albums.php on line 33

On investigation, this error is related to the Album app and/or module, where the helper is trying to process this code:
		if( !$privacy->validate( 'albums.view' , $album->id, SOCIAL_TYPE_ALBUM , $album->uid ) )
{
$html = $theme->output( 'site/stream/restricted.text' );
return $html;
}


I have commented out the privacy check so that the site profiles remain functional, but its a bit concerning since I am by-passing a permissions check.
Hey Marc,

Hm, you are absolutely right! Looks like this is a bug. To fix this, download the attached file and upload it into the same location as the folder you posted above.
·
Thursday, 28 January 2016 20:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for the speedy response.
It looks like that has solved the problem
Enjoy the Holiday!
·
Thursday, 28 January 2016 21:31
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Marc
·
Thursday, 28 January 2016 21:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post