Joomla!

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

 

Answer:

  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();
    {/codecitation}
    so that it reads

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

  3. Delete line 520
    {codecitation class=”brush: php;”}
    $params->loadSetupFile(JApplicationHelper::getPath( ‘com_xml’, ‘com_users’ ));
    {/codecitation}
  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. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of