I've been trying to understand this problem for a while now and I have
no clue on what is going on. Here go some steps to explain what is
happening:
1. I've downloaded (today - January 21, 2010) the versions 1.2.5 and
1.3.0 beta from CakePHP.org website;
2. Uncompressed them and put on the folder where apache reads them;
3. Accessing the version 1.3.0 (on my machine: http://localhost/cakephp-1.3.0/)
I get a beautiful screen (with colours, CSS, all the stuff you expect
to see...) where there is a sentence that says: "Your database
configuration file is NOT present. Rename config/database.php.default
to config/database.php"; And that's expected; To see a print of this
page I'm talking about please follow the link http://yfrog.com/jp130beforedatabasep;
4. Then I've renamed the file database.php.default to database.php;
5. Back to the browser I reloaded the page and noticed a new sentence:
"Your database configuration file is present. Cake is NOT able to
connect to the database." - That's what I was expecting - the same
beautiful page with colours and CSS but with a different message about
the database connection; To sse a print of the page please open
http://yfrog.com/08130afterdatabasep;
So... what's the problem?
The problem is that these same steps don't work for cakephp version
1.2.5, which is the stable version. Here is what happens:
1. On the 1.2.5 version, the screen has colours, CSS and the sentence
"Your database configuration file is NOT present. Rename config/
database.php.default to config/database.php", all as expected; Please
see a print of the page on http://yfrog.com/0n125beforedatabasep;
2. So I'll go and rename the database.php.default file to simply
database.php;
3. Back to the browser, I reload that page and that's when the problem
happens: There are no more colours, no CSS, no styles and there is
just about 1/4 of all text the this page is supposed to show; Please
see a print of the page on http://yfrog.com/jp125afterdatabasep;
I was using cakephp on Windows and I believed that it was a Windows
problem because a friend of mine tried the same steps on his machine
(Ubuntu) and didn't get this error.
So I installed Ubuntu and after having everything ready to start
studying cakephp, I got the same problem!
Any ideas on how to solve this?
Cheers
Lucas Loss
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment