Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Turning on PHP-Errors/Warnings?
At times, I do something screwed up and the page turns blank. It would be nice if I could turn on debugging somehow.
Where is it turned off at in the script so I can turn it on?
__________________
|
#2
|
||||
|
||||
Mysidia doesn't turn off errors. Fatal errors that cause white pages cannot be helped, they're caused by syntax errors (typos) and the framework isn't prepared to handle that. If no errors appear, then error reporting is turned off at the server level (which is always done on public hosting because they expect people to be hosting production-ready sites) so contact your hosting if you feel they aren't displaying errors and see if it can be turned off just for you (probably not, because hosting is usually shared) (or if you're self-hosting with WAMP, modify the error_reporting parameter in apache's php.ini file).
You should still be able to check your error log regardless (google or ask your hosting provider how to find it).
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#3
|
||||
|
||||
Quote:
PHP Code:
__________________
The calzones... betrayed me?
|
#4
|
|||
|
|||
Quote:
I guess this means no more typing of 100+lines of code then checking for errors. =( Thanks @pachoofoosh.
__________________
|
#5
|
||||
|
||||
Perhaps you might be interested in reading some the responses to the 'white screen of death' on Stackoverflow? It's just a very common PHP thing, but a syntax error handler could be hacked in... I'd sooner just copy and paste my file into a syntax checker.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#6
|
||||
|
||||
It's always a good idea to learn how to use a development environment on your own private machine before deploying out there to the public web. You can use XAMP, LAMP, or WAMP depending on which you prefer. I personally like WAMP because it has a little control panel on your task bar you can pull up which makes getting to things easier. Then you can fix errors on your development copy, and use Filezilla to upload changes to your live webhost.
|
|
|
What's New? |
What's Hot? |
What's Popular? |