I've got an utterly weird problem that I've been unable to track down or even understand. I'm running 5.1 with the path & pathauto modules. pathauto is configured to put the node type in front of the title, like this:
/story/title-of-story
/video/title-of-video
So far so good. Since yesterday, I cannot view certain pages. When I click on the link I just get a blank window. All the node data is still there, the URL is fine, the teaser is fine, just the node won't show by itself. After some testing, I saw that all the nodes with this problem had "W" as the first character in the title. If I change the "W" to something else then the node works fine. If I take a previously-working node and change the first letter of its title to "W", it won't display.
I've made many small changes to my theme the past couple of days, but I can't imagine any kind of bad coding or typo that would cause this kind of problem, so I don't know where to look, and I'm starting to doubt my sanity. Any help appreciated!
Comments
In case it helps, you can
In case it helps, you can see one of the blank nodes here. Even "view source" comes up empty.
enable PHP error reporting
Something to try so you can see what's going on is to enable error reporting in your php.ini. It involves editing php.ini and setting
error_reportingto E_ALL anddisplay_errorsto On.If you don't have access to your server's php.ini file, you may still be able to display PHP errors instead of the white screen of death. Try adding this to your settings.php:
ini_set("display_errors", 1);Those settings were already
Those settings were already turned on in php.ini, so it's not a PHP error. I uninstalled the Gallery module which I had installed yesterday, and the white screen has turned into 404 Page not found, so that's something.
It's definitely something with the aliases, because if I use the unaliased names (e.g., node/53) I can access the page. The aliases are there, since I had to look them up to find the unaliased names, but even refreshing the aliases didn't fix things.
I can't even look at the error log, because it's named "watchdog".
Found it!
After contemplating various forms of torture, I tracked down the problem to .htaccess. One of the rewrite rules had /w... instead of /w/... Now I KNOW I've never touched this particular .htaccess, so it must have been gallery. I don't know if it's a bug or just a burp, but I'm glad it's not me. Thanks for your help anyway!