very often this is an indication that your app/config files are not in
sync with your cake core files
see this thread
http://groups.google.com/group/cake-php/browse_thread/thread/6465f8d6ec5b7462/e31177cc5332340a?lnk=gst&q=Warning%3A+Invalid+argument+supplied+for+foreach()&rnum=4#e31177cc5332340a

On 8/24/06, mrbog <[EMAIL PROTECTED]> wrote:
>
> I just installed the latest cakephp release and tried doing the cake
> blog tutorial.  This one:
>
> http://manual.cakephp.org/chapter/20
>
> Here is the error I got:
>
> Warning: Invalid argument supplied for foreach() in
> /www/cakefun/cake/libs/controller/controller.php on line 604
>
> Warning: Invalid argument supplied for foreach() in
> /www/cakefun/cake/libs/model/datasources/dbo_source.php on line 1140
>
> Notice: Uninitialized string offset: 0 in
> /www/cakefun/cake/libs/model/datasources/dbo_source.php on line 1147
>
> Notice: Uninitialized string offset: 0 in
> /www/cakefun/cake/libs/model/datasources/dbo_source.php on line 1149
>
> Notice: Uninitialized string offset: 0 in
> /www/cakefun/cake/libs/model/datasources/dbo_source.php on line 1152
>
> Notice: Uninitialized string offset: 0 in
> /www/cakefun/cake/libs/model/datasources/dbo_source.php on line 1157
>
> Notice: Uninitialized string offset: 0 in
> /www/cakefun/cake/libs/model/datasources/dbo_source.php on line 1160
>
> Warning: session_start() [function.session-start]: Cannot send session
> cookie - headers already sent by (output started at
> /www/cakefun/cake/libs/controller/controller.php:604) in
> /www/cakefun/cake/libs/session.php on line 131
>
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent (output started at
> /www/cakefun/cake/libs/controller/controller.php:604) in
> /www/cakefun/cake/libs/session.php on line 131
>
> After that, on the page, I get:
>
> CakePHP Rapid Development
> List Posts
> Actions
>
> New Post
>
> I tried adding a new post, but there are no fields in the form.  I
> click "new" and go back to this page and get the same errors and no new
> posts.
>
> I have php 5.1.2. My mysql is 5.0.20 and both are working fine for
> other (non cake) php sites on my server.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to