Jump to content

Recommended Posts

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??

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();

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.