Reply to Re: Invalid argument supplied for foreach()

Your name:

Reply:


Posted by David Robley on 12/20/05 03:20

Jose Borquez wrote:

> I am getting the following errors when accessing a php page:
>
> /usr/local/www/groupoffice-com-2.14-FINAL-4/configuration/index.php(299)
> : Warni
> ng - Invalid argument supplied for foreach()
> [Mon Dec 19 15:10:52 2005] [error] PHP Warning: Invalid argument
> supplied for f
> oreach() in
> /usr/local/www/groupoffice-com-2.14-FINAL-4/configuration/index.php
> on line 299
>
> I solved previous php error problem by installing the php5-extensions,
> but now I am getting the following errors in my log files and I have no
> idea what it could be. Any help would be greatly appreciated.
>
> Thanks in advance,
> Jose

foreach expects to have an array passed as its argument; the error message
suggests that what it is receiving is not an array. Without seeing your
code, the only suggestion we could make (well, me anyway) is to check what
is actually being passed, with print_r or var_dump.



Cheers
--
David Robley

Support bacteria - it's the only culture some people have!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация