cdub
cdub

Reputation: 25701

Cakephp 2.1 White Screen on 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:

dev.lessonshark.com

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

dev.lessonshark.com/css/front.css

and that routes fine.

What I have done so far:

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

Still no luck, any ideas?

Upvotes: 0

Views: 471

Answers (2)

faizalheesyam
faizalheesyam

Reputation: 16

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 ?> tag as well.

I hope it help.

Upvotes: 0

RichardAtHome
RichardAtHome

Reputation: 4313

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)

[edit]

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

Upvotes: 1

Related Questions