/    Sign up×
Community /Pin to ProfileBookmark

White page dilemma — from working sources… ??!

I have a serious problem with one of my php files: in a browser the source is blank and the page is white.

From experience I know this means there is a misplaced ) somewhere. However, the odd thing is: I have working copies of this file in two other remote locations that display correctly on the web. What the !?!? is going on?

Why would an identical page break on one machine but work on two others? I’ve checked for misplaced (‘s, but none can be found. Is there something else that could cause this? A broken php.ini, a file called by the broken php missing on the machine it breaks on? etc?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogSep 19.2008 — Most likely a different PHP version and/or configuration setting resulting in something generating a fatal error such as an undefined function. Try adding the following at the very top of the script:
[code=php]
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
[/code]

If it is, in fact, a parse error, the above won't help. You would need to turn on error reporting in php.ini or a local .htaccess file (if Apache and if enabled); or else check the server logs for error messages from PHP.
Copy linkTweet thisAlerts:
@YelgnidrocSep 19.2008 — The reasons for the white page are numerous.

Errors should not be reported by default, but look at Nogdog's answer to try and get more info.

Can you post the php code and maybe someone will spot the error?
Copy linkTweet thisAlerts:
@Kyleva2204Sep 20.2008 — are we talking about the same white-page/no-source problem that comes up as a 302 error in Safari? Ive had that problem a lot, and was poed by it so many times because there is no error outputted, the script just dies. I just look really hard at my code and try to spot the error..
×

Success!

Help @mith36 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...