Pantalla blanca de Cakephp 2.1 en Devserver

We created a subdomain on our server. First we tested that HTML worked, then I did phpinfo() and everything worked fine there. But when I moved the entire Cakephp app to the devserver at:

I get a white screen. But I can go to:

and that routes fine.

Lo que he hecho hasta ahora

1. Made debug in core set to 3.
2. Removed all the cache files in tmp folder.

Still no luck, any ideas?

preguntado el 28 de agosto de 12 a las 09:08

Debug mode should not be 3, try with making it 2. -

you have to start from index.php, check it line by line, it could be wrong configuration in your .htaccess something terrible in php code or something wrong in php.ini -

@jain: debug 1, 2, 3, and 0 all give white screen; @ sukinsan, checking line by line in index.php now -

It's about debugging step by step without code review its bit difficult to find out the problem. -

Going through the apache/php logs may give the answer but a quick and ditry way would be to set display_errors to "on" in the php.ini and then you should see the specifics of the error. Probably best to HTTP Auth password protect the site first though if this is a public production server, just in case the error spits out any confidential information. -

2 Respuestas

Firstly, check your server error logs. White screens are usually one of the following:

  • You didn't clear out the files in /app/tmp/cache (leave the directories, remove any files).

  • You are running out of memory (check the server logs)

  • mod_rewrite is not enabled on the server or is not configured correctly (check you have allowOverride all set in your apache config so Cake's .htaccess files are read)


  • you haven't made your app/tmp directory writable by the web user

Respondido 28 ago 12, 11:08

oops - missed where you mentioned you'd removed cache files, possibly an out of memory error then... - RichardEnCasa

i put my old cake site in that directory and it worked, so there's probably a newline or extra space somewhere that php doesn't like - cdub

I just cracked my head with this problem.

If none of the above mentioned solution work, (debug, emptying cache..etc), try this one.

Open up your controller, remove any unwanted empty line especially at the top of the file anywhere around you <?php tag, and make sure no useless empty line around the closing ?> etiqueta también.

Espero que te ayude.

Respondido el 08 de enero de 13 a las 12:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.