Welcome Guest, Not a member yet? Register   Sign In
White screen after class is known to work
#11

[eluser]morpheus316[/eluser]
routes looks like this

$route['default_controller'] = "notopen";
$route['scaffolding_trigger'] = "";
#12

[eluser]squarebones[/eluser]
I get the WSOD all the time. Usually it's malformed syntax (missing end parenthesis, missing semi-colon, missing squiggly bracket thingy). Then I have to spend some time looking at newly added/modified code to find the problem. It's tedious. Never check the logs, though they may show where the error lay. Too lazy. It's like a puzzle - find the wonky code you botched. It's amazingly satisfying to type in one character and have the page magically appear in all it's glory (or horror).

What's even worse is when I run the PHP Validator plug-in in Coda and I get nothing...no dialog with No Errors, or a dialog listing the error - just nothing. That's a sinking feeling because I might then have to inspect all thousand lines of code in my controller to find the one itty, bitty bug. Ugh...bang keyboard with head until dead or mentally disabled...stumble to fridge and drink lots of cold beer. Go to bed. Not go to bed. Who cares? Gotta fix that stupid bug.

So that's it. The answer to the White Screen of Death is to do a lot of poking about in the code, check the log if you are inclined to, just give up, phone a friend, order out for pizza, bang on the keyboard in utter frustration.

Frankly, the core works well enough for me not to go poking around in it looking for the solution to my own idiotic coding faux pas.

And that's the nickle's worth of wisdom from moi.
#13

[eluser]Unknown[/eluser]
I was also getting this problem, although the symptoms are more accurately described in this post.

http://mydomain.com/ would show the Router.php error.
http://mydomain.com/index.php would route to my welcome controller
http://mydomain.com/welcome would also work fine

The solution that worked for me:

In applications/config/config.php I changed

Code:
$config['uri_protocol'] = "AUTO";

to

Code:
$config['uri_protocol'] = "PATH_INFO";

Since I was using mod_rewrite to remove index.php, I also changed the $config['index_page'] variable in the config file to be blank (as per the inline comments).

For reference, the site is hosted on a MediaTemple gs account.

Granted, I know almost nothing about the different URI Protocol methods, so I could very well just be burying a bug. I'm sure someone will pipe up if that's the case.




Theme © iAndrew 2016 - Forum software by © MyBB