Page 1 of 2

PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 11:37
by SadPerson
Hello my dear friends,

The error:

PHP Error[2]: Invalid Argument Supplied for foreach()

is consequence of the following command without the quotes: "./yiic" I did some research but every potential solution is related to php programming. I am working within virtualbox and its all about setting correct command. There is NO programming code. What am I supposted to do to within virtualbox's terminal to fix this error caused by said command? I don't have any access to website's server also. Here is screenshot:

s14 DOT postimg DOT org/5qyh274q9/phperror.jpg

Thank you in advance.

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 11:41
by noteirak
I'm afraid this has nothing to do with VirtualBox. I would seek support to the supporter.

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 11:52
by SadPerson
I apologize for correcting you but it has to do with virtualbox - the error is within virtualbox.

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 11:58
by loukingjr
SadPerson wrote:I apologize for correcting you but it has to do with virtualbox - the error is within virtualbox.
The error is from whatever guest you are running.
The error is from phpVirtualBox
What am I supposted to do to within virtualbox's terminal to fix this error caused by said command?
What virtuabox terminal would that be?

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 12:24
by loukingjr
I just realized you apparently are running phpVirtualBox. This is not the phpVirtualbox forum.

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 13:03
by SadPerson
What virtuabox terminal would that be?
the one that occurs before Ubuntu's desktop occurs.

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 13:05
by loukingjr
::smh::

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 13:26
by SadPerson
loukingjr wrote:::smh::
i tried to type that command on terminal but not working. Im not that good with virtualbox/ubuntu since i have always been using windows. Please be more exact. The error, once again, is:

PHP Error[2]: Invalid Argument Supplied for foreach()

and i provided the screenshot

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 13:31
by loukingjr
It wasn't a command. ::smh:: means shaking my head.

As I think I mentioned, this is not a phpVirtualBox support forum.

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 13:39
by SadPerson
I apologize for misunderstanding then. If you shake your entire body it could be better than shake just head. I could help you with some good music if needed.

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 14:01
by scottgus1
The picture posted by SadPerson is unfortunately not postable in a on-screen format (by no possible way could I get a 170kb screenshot down to a 128 or less screenshot and just have it viewable (edit I just need a better image editor) - anyone think the 128kb limit is just a little too tight?) Here it is as a zip:
phperror.zip
(127.06 KiB) Downloaded 8 times
Anyway, what the picture shows is a running Ubuntu 64bit guest with the "./yiic" command and resulting errors as typing and response within the guest. None of what I see, especially that command, seems to look like anything I've ever seen coming from Virtualbox, and the command is not in the Virtualbox help file as best as I can remember.

SadPerson, I think your issue will not be able to be answered here. We don't know what "./yiic" means or what it comes from or how to fix it. A google on "yii-1.1.14" yielded this: "http://www.yiiframework.com/news/75/yii ... -released/" Maybe those folks are who you should ask?

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 14:07
by SadPerson
scottgus1 thank you for your answer. More about ''./yiic'' command without the quotes can be found here: tinyurl DOT com/q76vj2r

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 14:12
by loukingjr
scottgus1 wrote:The picture posted by SadPerson is unfortunately not postable in a on-screen format ?
oh geez…

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 14:14
by scottgus1
OK, Lou, I'm dumb this morning. I tried to re-save that shot several different ways to get the size down, couldn't do it. Please enlighten me...

Re: PHP Error[2]: Invalid Argument Supplied for foreach()

Posted: 2. Apr 2015, 14:15
by loukingjr
It's a Mac thing. :)