holladb Posted January 4, 2008 Share Posted January 4, 2008 For the life of me i can't figure this out... I have a website that was running on PHP4 just fine. Now that we're transferring the website to a dedicated PHP5 server it fails to work. http://www.idealclothing.net <--PHP4 The PHP5 server is offline... On the PHP4 server we are using a templating system. The admin side is also using a templating system. The admin template system works fine but the user side fails to work. Lets say you click on "About Us" it goes to idealclothing.net/about. Works fine on PHP4 but on PHP5 i get a 404 error. Does anybody know how to fix this?? Quote Link to comment Share on other sites More sharing options...
revraz Posted January 4, 2008 Share Posted January 4, 2008 Not without seeing code. Whenever someone does a update, they forget to check the php.ini and set it like it was on the older version. Quote Link to comment Share on other sites More sharing options...
drummer101 Posted January 4, 2008 Share Posted January 4, 2008 I'm guilty of that Speaking of, I still need to upgrade my live server to php5 :-\ Quote Link to comment Share on other sites More sharing options...
holladb Posted January 4, 2008 Author Share Posted January 4, 2008 I made the INI file a replica of the PHP4 ini file. Here is an example of the code used to display: require_once 'inc/config.inc.php'; $tpl->loadTemplatefile('page'); $db->setTable($GLOBALS['t_contents']); if ($id != '') { $page = $db->get("id='".intval($id)."'", array('id', 'title', 'text')); } if ($alias != '') { $page = $db->get("alias='".mysql_escape_string($alias)."'", array('id', 'title', 'text')); } $tpl->setVariable(array( 'TEXT' => $page['text'] )); parseGlobal('global', '', 'page', $page['id']); $db->disconnect(); $tpl->show(); Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted January 4, 2008 Share Posted January 4, 2008 Start by checking your web server log for errors (and turning on full php error reporting E_ALL to find Notices and Warnings that can help pin down where the problem is.) Make sure that the php.ini that you are changing is the one that php is using. Quote Link to comment Share on other sites More sharing options...
holladb Posted January 4, 2008 Author Share Posted January 4, 2008 Found the solution, I'm a moron and forgot to turn RewriteEngine on in apache! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.