White pages

Status
Not open for further replies.

habbocen

New Member
Messages
2
Reaction score
0
Points
1
Hello!

I'd like to know if you could please tell me how to enable php error's log so I can see where I'm going wrong on the page so instead of it being a white page

Kind Regards,
Shaun.
 

ChatIndia

Community Advocate
Community Support
Messages
1,408
Reaction score
30
Points
48
In your php file, use this code.This will turn on error reporting in your code.

Code:
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);

The above code will show you the errors. It won't log the error.

To log the errors, I did a quick google search and found this.
http://perishablepress.com/how-to-enable-php-error-logging-via-htaccess/
 
Last edited:

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

Just to expand on what @ChatIndia said, we have also implemented a feature in our cPanel that allows you to globally toggle error reporting, if you don't want to change your files. You can do this by choosing "Select PHP Version" on cPanel x3's homepage, then "Switch to PHP Settings". From there, you can change the display_errors value from Off to On. ;)

Thank you,
 

habbocen

New Member
Messages
2
Reaction score
0
Points
1
Hi,

Just to expand on what @ChatIndia said, we have also implemented a feature in our cPanel that allows you to globally toggle error reporting, if you don't want to change your files. You can do this by choosing "Select PHP Version" on cPanel x3's homepage, then "Switch to PHP Settings". From there, you can change the display_errors value from Off to On. ;)

Thank you,

Tried that I still don't get any errors..
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
I have to ask (please don't take this as insulting; I don't know your experience level and can't just make assumptions) — have you viewed the page source to confirm that it isn't simply an HTML error?
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
Yeah, it could be something like <style>body{display:none;}</style> that could be the cause.
Jokes aside. As suggested, I would check out the source of the downloaded page for anything strange such as missing tags or some body and head tags that have been generated by the browser that are empty in their containment.
 
Last edited:
Status
Not open for further replies.
Top