Fix joomla community builder cb.core line 240 foreach bug
Written by Li   

When I use community builder 1.1 for joomla 1.5.x, it reports the following error.

Warning: Invalid argument supplied for foreach() in /components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php 
on line 240 

 I fix it in the following way:

1. Change  line 528 from

$params =& $juser->getParameters();


$params =& $juser->getParameters(true);

2. Delete line 529.

$params->loadSetupFile(JApplicationHelper::getPath( 'com_xml', 'com_users' ));

After do the following steps, it works fine.

Recommend Read