php script does not load at all...

A

Anonymous

Guest
Hi,

This is a complicated one:

I have a website which used to work fine (chess4me.com). In it is a command center (http://www.chess4me.com/command) which also used to work fine, until my host (powweb) upgraded to a new php and mysql.

The command center (as is) is also installed on htpp://www.r3dchess.com/command and works fine there.

Can anyone seggest a way to start tracking down what is going wrong? I don't even get an error on the site.

index.php starts:

<?php
ini_set("output_buffering","1");
session_start();


// This is the vairable that sets the root path of the website
$Root_Path = "./";
$Page_Name = "index.php";

$config = $Root_Path."bin/config.php";

include_once($Root_Path."bin/something1.php");
require($Root_Path."bin/something2.php");
require($Root_Path."includes/something3.php");

....

The config file included holds:

<?php
////////////////////////////////////////////////////////////////////////
//Configuration file for the chess4me command center
////////////////////////////////////////////////////////////////////////

$conf['database_host'] = "mysqlxx.powweb.com";
$conf['database_name'] = "name";
$conf['database_login'] = "user";
$conf['database_pass'] = "pass";

$conf['site_name'] = "Chess4Me";
$conf['site_url'] = "http://www.Chess4Me.com";
$conf['registration_email'] = "email@chess4me.com";

$conf['session_timeout_sec'] = 3600;

$conf['admin_user_name'] = "user";
$conf['admin_password'] = "pass";
$conf['new_user_requires_approval'] = true;

$conf['chat_refresh_rate'] = 10;

$conf['avatar_absolute_directory_location'] = "/www/c/h/local directory/";
$conf['avatar_image_disk_size_in_bytes'] = 102400;
$conf['avatar_image_width'] = 100;
$conf['avatar_image_height'] = 100;

/////////////////////////////////////////////////////////////////////////
// Swearing Filters
/////////////////////////////////////////////////////////////////////////

$swear_list[0] = "****";
$swear_list[1] = "***";
$swear_list[2] = "*****";
$swear_list[3] = "***";

////////////////////////////////////////////////////////////////////////
?>


I have replaced all aspects that I deemed protect worthy (incl db server).

Any ideas?

Thanks in advance
Chrizb
 
Try this, i had to configure PHP to use a new databese and so on

Sticky: MySQL Installation

Sticky: MySQL 4.1

If it doesnt work: i will look for more things i had to change..
Dont forget.. PHP5 requires lots of modules to be loaded, while they were automaticaly loaded nto PHP4 (built-in)
 
yes..no idea why.
all the code is there.

You seem to have a clue... what is going on?

regards
chrizb
 
Hi

DB access works fine both on the forum and in the admin apnnel (sub domain http://chess4me.com/command/admin/) I can log in there with no problems. So db connectivity is not it.

regards
Christian
 
Hi,

No dump that I can find. We have monitoring on. It just doesn't do anything :(

Thanks for all the effort
Christian
 
Are you using PHP5?

Then check your php.ini...
Look through ALL the available extentions and see if you need some of them... i think there is a special extention for sessions... in case some extention (like sessions) is not loaded but you are trying to use session_start() -- you will not get any output as tha code will halt..
 
ok, will do.
Happy new year. I'll be back with the results later.

Thanks again!
Christian
 
Back
Top