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

Written by Ian Carnaghan · 27 sec read >

I get the following error  “Warning: Invalid argument supplied for foreach() in /components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php on line 240” when trying to edit my Community Builder profile. How can I solved this?

NOTE: Received this error using Joomla! 1.5.10 together with Community Builder 1.1



  1. Locate the following file in the root directory of your Joomla! installation.
    {codecitation class=”brush:plain;”}components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php{/codecitation}
  2. Change the following code on line 528
    {codecitation class=”brush: php;”}
    $params =& $juser->getParameters();
    so that it reads

    {codecitation class=”brush: php;”}
    $params =& $juser->getParameters(true);

  3. Delete line 520
    {codecitation class=”brush: php;”}
    $params->loadSetupFile(JApplicationHelper::getPath( ‘com_xml’, ‘com_users’ ));
  4. Problem should be solved!!!

Last Updated On April 06, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. Profile

Leave a Reply

Notify of