Fixed - Using only scaffolding, successful query shows - but no page content - fixed

4 messages Options
Embed this post
Permalink
MatthewJenkins

Fixed - Using only scaffolding, successful query shows - but no page content - fixed

Reply Threaded More More options
Print post
Permalink

EDIT:
Problem mysteriously solved.

I swapped out my controller and model files using the sample code at the APRESS site, and it fixed things.  The weird thing is, a character-by-character comparison of the bad files vs. the good - and they are identical. every semicolon, every character exact.

I usually type from the book. But on a couple of occasions, I've copied and pasted from the PDF, in moments of laziness. Still looks the same - but my guess is there's some invisible control characters in the PDF that puts everything out of wack.

Just a heads-up to all those copying-and-pasting from the PDF version of the book!!!!

original message:
<hr />
I'm going through the entry-level chapters of David's book. Things are working swimmingly. I'm loving CakePHP...

...suddenly, simple database updates give me blank pages, showing nothing except the query info.

See my working cake install here:
removed

All the views look OK for the various controllers:
http://domain.com/users/
http://domain.com/posts/
etc.  but when I try to update I get nothing. Actually the database gets successfully updated. Just, the page doesn't load.

Now, the confusing thing is that this worked fine for a couple days. Then suddenly stopped working for no apparent reason.

So I reinstalled Cake. Same thing. Tried it in my top level directory, tried it in a subdirectory.
I decided it was something screwy with my web host - so I installed in on my macbook using MAMP.  Same thing there too.

Can anyone guess what's going wrong?  I'm dying to learn CakePHP, but just can't get the basics working right. Any suggestions would be greatly appreciated.  Thanks,  Matthew
davidgolding

Re: Fixed - Using only scaffolding, successful query shows - but no page content - fixed

Reply Threaded More More options
Print post
Permalink
Yet another proof of Isaac Asimov's "ghosts in the machine" theory... At least, that's all that makes sense to me in this case.
--Dave

Author, "Beginning CakePHP: From Novice to Professional"

[ get your copy at: http://www.amazon.com/Beginning-CakePHP-Novice-Professional/dp/1430209771/ ]
backwardselvis

Re: Fixed - Using only scaffolding, successful query shows - but no page content - fixed

Reply Threaded More More options
Print post
Permalink
In reply to this post by MatthewJenkins
Matt did you actually 'diff' the files? Or was it just a visual comparison.
MatthewJenkins

Re: Fixed - Using only scaffolding, successful query shows - but no page content - fixed

Reply Threaded More More options
Print post
Permalink

It was a visual check but I went character-by-character and was very thorough.

I would say the problem, knowing what I know now, was probably caused by improper permissions on my temp cache folders - because I continued to get these mysterious problems until I learned to set those correctly.