Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Warning: Invalid argument supplied for foreach() (1 viewing) (1) Guest
TOPIC: Warning: Invalid argument supplied for foreach()
#54475
Warning: Invalid argument supplied for foreach() 5 Months, 2 Weeks ago  
Hello,

I am getting the following error message at the top of my CB profile page(see attached jpg):

Warning: Invalid argument supplied for foreach() in /home/content/r/e/h/rehost8419/html/joomla/components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php on line 240

This is my setup: Joomla 1.5.3 stable - Community Builder 1.1 - FireBoard 1.0.4 Stable

I did not have this problem until after I installed FireBoard.

Please help. I am new to this. Thanks


EDIT:
I have not installed the CB Plug-in for FireBoard... should I?
HSOY (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/07/23 23:47 By HSOY.
 
 
#54477
Re:Warning: Invalid argument supplied for foreach( 5 Months, 2 Weeks ago  
Here is what it looks like.
HSOY (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#54480
Re:Warning: Invalid argument supplied for foreach( 5 Months, 2 Weeks ago  
that type of error "foreach()" is only caused by improper upgrade from older version of language file issues.
grinchy (User)
Senior Boarder
Posts: 355
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#54490
Re:Warning: Invalid argument supplied for foreach( 5 Months, 2 Weeks ago  
I was not upgrading anything. Everything was a first time install.

Could you give me any ideas on how to fix this problem?
HSOY (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#54570
Re:Warning: Invalid argument supplied for foreach( 5 Months, 2 Weeks ago  
heres the quick fix, check this:

forum.joomla.org/viewtopic.php?f=235&...00b1ace648af81f9db37

thus:

removing the line 529 of com_comprofiler/plugin/user/plug_cbcore/cb.core.php

which reads:
Code:

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



and changing line 528 which reads:
Code:

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


to

Code:

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


- g
guilliam (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#54571
[Solved] Invalid argument supplied for foreach( 5 Months, 2 Weeks ago  
I just tried your solution guilliam and it worked! Thanks a lot!
HSOY (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/07/25 00:36 By HSOY.
 
 
#54572
Re:[Solved] Invalid argument supplied for foreach( 5 Months, 2 Weeks ago  
HSOY wrote:
I just tried your solution guilliam and it worked! Thanks a lot!

its from jinx actually

- g
guilliam (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top