Hi, I am having a very strange issue on my webspace provider, this
does not happen on my local installation.

I tried to get Cake to work on my webspace (Cake 1.2, released
version), installed everything, database works. I implemented a simple
scaffolding app with two tables, "articles" and "comments". And it
seems to work.

However, after entering some article, when I try to look at
http://dev.reya.de/articles Firefox returns a blank page. Totally
blank, no header, no content. Funny though, http://dev.reya.de/articles/edit/7
works just fine. (If anyone should give this a try, please don't
delete that entry, so this example will still work :) )

I debugged into this and it came down to around line 700 in /cake/libs/
view/view.php (in the _render function):

                if (Configure::read() > 0) {
                        include ($___viewFn);
                } else {
                        @include ($___viewFn);
                }

For debug purposes, I changed that to:

                if (Configure::read() > 0) {
                        $this->log('_render in view. #694, trying to include ' .
$___viewFn );
                        include ($___viewFn);
                } else {
                        @include ($___viewFn);
                }

                $this->log('_render in view. #700.');

That's what the log file says (first /articles, then /articles/edit/7)

2007-02-23 18:13:45 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:46 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:46 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:47 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:48 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:48 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:49 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:49 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:50 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:50 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:13:51 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/index.thtml
2007-02-23 18:14:30 Debug: _render in view. #694, trying to include
cake/libs/view/templates/scaffolds/edit.thtml
2007-02-23 18:14:30 Debug: _render in view. #700.
2007-02-23 18:14:30 Debug: _render in view. #694, trying to include /
is/htdocs/wp1034476_1QHLDZ3T0M/www/cake/cake/libs/view/templates/
layouts/default.ctp
2007-02-23 18:14:30 Debug: _render in view. #700.

Configure::Read() is greater than zero, it tries to include $___viewFn
which is "cake/libs/view/templates/scaffolds/index.thtml" which seems
to be correct, the file exists. But after that it just dies. I tried
to put debug stuff into that file but it must die somewhere before
that. It doesn't really die that but it tries that about 10 times and
then I get the blank page. Why 10 times? Why does the blank page show
up?

Has anyone seen something like this before? I want to make sure this
works before I actually put more time in for development.

I tried to make sure all files don't end with spaces or newlines,
edited the db config correctly and /app/tmp is writable as well. Don't
know what to do. Any help is greatly appreciated.


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

Reply via email to