0
I’m working on a project in Cakephp that I can’t test on localhost.
I took the project already started and as I can not do the tests, put straight keeping always the backup and work like this is horrible.
I installed Cakephp in version 1.3.15 which is the same as the one on the server and is working perfectly. I can run any version of Cakephp except the one running on the web.
I tested it on a virtualized Centos 6.7 server running PHP 5.3.3 and apache and it still didn’t work.
Does anyone have any suggestions?
Check the log output, and if possible, edit the question with it.
– Marcelo de Andrade
How do I do it, @Marcelodeandrade?
– fabricio_wm
In the directory /app/tmp/logs/ there must be a file created by Cake itself.
– Marcelo de Andrade
Take a look if the debug (Config core.php app) is as in 2 -> Configure::write(debug, 2); .
– Marcos Xavier
@Marcosxavier. It is in if Else. How should it look then? ;'
if (stristr($_SERVER['SERVER_NAME'], 'servidor') === false) 
{ 
 Configure::write('debug', 0);
}
else
{
 Configure::write('debug', 2);
}
'– fabricio_wm
@fabricio_wm Comment on this snippet you quoted and leave it with Configure::write('debug', 2); In production leave Configure::write('debug', 0); If it works comment here.
– Marcos Xavier
@Marcosxavier. It worked. Now I see all the errors. How do I sample your screen print?
– fabricio_wm