Thursday, January 10, 2008
ExpressionEngine Fix For BlueHost PHP Upgrade
On January 8, 2008 around 1 p.m. MT, an upgrade was made to my Web hosting account at BlueHost where sourcegate and my other blog, The Hot Iron, are hosted. This caused both blogs to “break” in that all links redirected to the home page, which means all links were broken as this is the action of the 404 error. Both blogs run ExpressionEngine (or EE), a content management system I like very much.
This issue is related to this EE issue where the home page appears for every link. I had applied this very fix when I launched both blogs, and whatever was done to my hosting account broke this fix. I posted this issue on the EE support forum and got some great responses from the EE team quickly.
I then got an email from Andy Knight who was having this same problem. I shared with him what I did, and earlier today, January 10, I got an email from him saying he solved the issue, and shared with me his fix. It is as follows:
In the root index.php file, change the value of $qtype to 1 (path_info) from 0 (auto). Then change the assignment of $path_info as follows:
$path_info = (isset($_SERVER[’PATH_INFO’])) ? $_SERVER[’PATH_INFO’] : @getenv(’PATH_INFO’);
Previously, instead of PATH_INFO I had ORIG_PATH_INFO.
And it worked! Thanks again Andy!

Blogging • ExpressionEngine • (0) Comments • Permalink





