Cannot use object of type text as array

I used zoop some time ago and i used to get this same error:

Cannot use object of type text as array

when submiting a forms2 or a form w guicontrols when i tried to validate required fields and i leave them blank.

I get this error:

Cannot use object of type text as array

when trying to post it.
I remember moving something in the php.ini to fix it but i dont remember what it was.

Can someone help?

register_globals

If you turn register_globals off, you shouldn't have further problems.

john 09 Oct 2008

Always Turn Register Globals Off

It is good practice to always turn off register globals in your php.ini file so that malicious POST variables cannot create PHP variables. Another way to turn off register_globals is using the ini_set function in the config.php file in your app directory. This may be useful for people who do not have access to their hosts php.ini.

//In config.php add the line to the bottom
ini_set('register_globals');

jmorant@cloud9l... 14 Oct 2008

ini_set('register_globals');

Because register_globals instantiates variables before the execution of your script, you cannot turn off register_globals in your script. It can be done using .htaccess, using php.ini. You can undo what register globals does, take a look here for info:
http://us.php.net/manual/en/faq.misc.php#faq.misc.registerglobals

john 31 Oct 2008