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

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

PDF Print E-mail

Question: 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.
    components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
  2. Change the following code on line 528
    $params =& $juser->getParameters();
    

    so that it reads

     $params =& $juser->getParameters(true);
     
  3. Delete line 520
    $params->loadSetupFile(JApplicationHelper::getPath( 'com_xml', 'com_users' ));
    
  4. Problem should be solved!!!
+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!