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

No Comments

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!!!

Image Credits: Photo by Isis França on Unsplash.

Last Updated On April 06, 2018

Related Articles

No results found

Leave a Reply

Notify of
Copy link