Forums Sign Up Reply Search Statistics
Basic Statistics GraFX Software Solutions - Forum / Basic Statistics /

cinfig.inc.php errors when running statistics.php

 
Author photogrfx
Forums Member
#1 Posted: 30 Jan 2007 02:52:23 Edited by: photogrfx
Reply 
After running the auto configuration program then attempting to run statistics.php I get the following errors which seem to indicate a problem with path or permissions--don't know which, or what needs to be changed in config.inc.php:

//default URL path like $INDEX_URL="http://www.yourdomain.com/";
define("STAT_INDEX_URL","http://www.estspace.com/" );

// always close the path with ending slash /
// like /home/path/to/your/files/
define("STAT_INDEX_PATH","home/estspace/public_htm l/statistics/");

define("STAT_DB_INDEX", "estspace_BasicStat");


define("STAT_TEMPLATE_PATH", STAT_INDEX_PATH."programtemplates/");
define("STAT_INCLUDE_PATH",STAT_INDEX_PATH."includ e/");
define("STAT_LANG_PATH",STAT_INDEX_PATH."language/ ");

errors follow:

Warning: main(home/estspace/public_html/statistics/include/ session.php) [function.main]: failed to open stream: No such file or directory in /home/estspace/public_html/statistics/statistics.p hp on line 18

Warning: main() [function.include]: Failed opening 'home/estspace/public_html/statistics/include/sess ion.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/estspace/public_html/statistics/statistics.p hp on line 18

Warning: main(home/estspace/public_html/statistics/include/ cls_string.php) [function.main]: failed to open stream: No such file or directory in /home/estspace/public_html/statistics/statistics.p hp on line 19

Warning: main(home/estspace/public_html/statistics/include/ cls_string.php) [function.main]: failed to open stream: No such file or directory in /home/estspace/public_html/statistics/statistics.p hp on line 19

Warning: main(home/estspace/public_html/statistics/include/ cls_string.php) [function.main]: failed to open stream: No such file or directory in /home/estspace/public_html/statistics/statistics.p hp on line 19

Warning: main() [function.include]: Failed opening 'home/estspace/public_html/statistics/include/cls_ string.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/estspace/public_html/statistics/statistics.p hp on line 19

Warning: main(home/estspace/public_html/statistics/language /en.inc.php) [function.main]: failed to open stream: No such file or directory in /home/estspace/public_html/statistics/statistics.p hp on line 20

Warning: main(home/estspace/public_html/statistics/language /en.inc.php) [function.main]: failed to open stream: No such file or directory in /home/estspace/public_html/statistics/statistics.p hp on line 20

Warning: main(home/estspace/public_html/statistics/language /en.inc.php) [function.main]: failed to open stream: No such file or directory in /home/estspace/public_html/statistics/statistics.p hp on line 20

Warning: main() [function.include]: Failed opening 'home/estspace/public_html/statistics/language/en. inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/estspace/public_html/statistics/statistics.p hp on line 20

Fatal error: Cannot instantiate non-existent class: mysession in /home/estspace/public_html/statistics/statistics.p hp on line 22
Author software
Admin
#2 Posted: 30 Jan 2007 08:05:07
Reply 
define("STAT_INDEX_PATH","home/estspace/public_htm l/statistics/");

should start with slash ...

define("STAT_INDEX_PATH","/home/estspace/public_ht m l/statistics/");
Author photogrfx
Forums Member
#3 Posted: 31 Jan 2007 22:27:35
Reply 
Thanks;

I fixed the path problem, and now I am getting MySQL errors. Like I said
earlier your readme.txt file is very unclear and does not corrospond with
the variables in config.inc.php.

==================================================
here is my config.inc.php with comments by me:

// $Id: config.inc.php,v 1.13 2004/05/22 07:41:14 lvalics Exp $
// define your database informations
define("DB_USR", "estspace_joestat");
define("DB_PWD", "estspace_JoeStat181");
// define("DB_PWD", "JoeStat181");
define("DB_NAME", "estspace_BasicStat");
// define("DB_NAME", "BasicStat");
define("DB_HOST", "www.estspace.com");

define("STAT_DB_USR", DB_USR);
define("STAT_DB_PWD", DB_PWD);
define("STAT_DB_NAME", DB_NAME);
define("STAT_DB_HOST", DB_HOST);

//default URL path like $INDEX_URL="http://www.yourdomain.com/";
// define("STAT_INDEX_URL","http://www.estspace.com/s tatistics/");
define("STAT_INDEX_URL","http://www.estspace.com/" );

// always close the path with ending slash /
// like /home/path/to/your/files/
// define("STAT_INDEX_PATH","/home/estspace/public_ht ml/statistics/");
// define("STAT_INDEX_PATH","/home/estspace/public_ht ml/");
define("STAT_INDEX_PATH","/home/estspace/public_ht ml/statistics/");

define("STAT_DB_INDEX", "estspace_BasicStat");
// ================================================== =====================
// ================================================== =====================
// all the rest need to be as it is. Edit this lines only if you know what
you are doing

// define where you programtemplates are, usually is ...
INDEX_PATH/programtemplates/

// define("STAT_TEMPLATE_PATH",
STAT_INDEX_PATH."/home/estspace/public_html/statis tics/programtemplates/");
//
define("STAT_INCLUDE_PATH",STAT_INDEX_PATH."/home/ estspace/public_html/statistics/include/");
//
define("STAT_LANG_PATH",STAT_INDEX_PATH."/home/est space/public_html/statistics/language/");

// change to:

define("STAT_TEMPLATE_PATH", STAT_INDEX_PATH."programtemplates/");
define("STAT_INCLUDE_PATH",STAT_INDEX_PATH."includ e/");
define("STAT_LANG_PATH",STAT_INDEX_PATH."language/ ");



// Where you will be redirected if somneone try to use pages without login
page first.

define("STAT_NO_LOGGED_IN_REDIRECT","/statistics/l ogin.php/");


//if(eval("include_once(\"extra/config.inc.php\"); ")!=NULL)
//if(!@include_once("extra/config.inc.php")) {
@include_once("tmp/extraconfig.inc.php");

/*
define('STAT_AUTH_TYPE',STAT_AUTH_TYPE_BASE64);
==================================================

I tried defining username password

"DB_USR", "DB_PWD", and "DB_NAME" with and without the db preface
"estspace_" but it doesn't affect the error which is always the same:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user
'estspace_joestat'@'70.87.126.226' (using password: YES) in
/home/estspace/public_html/statistics/include/conn ection.php on line 17 No
connection.

Can you help on this?

Thanks,

Joe
Author software
Admin
#4 Posted: 31 Jan 2007 23:50:37
Reply 
Acces denied means that username is not OK for that database.
Author photogrfx
Forums Member
#5 Posted: 1 Feb 2007 00:53:34
Reply 
There are only two ways to define my username in your script:

define("DB_USR", "estspace_joestat");
// define("DB_USR", "joestat");

// define("DB_PWD", "estspace_JoeStat181");
define("DB_PWD", "JoeStat181");

define("DB_NAME", "estspace_BasicStat");
// define("DB_NAME", "BasicStat");

define("DB_HOST", "www.estspace.com");

I use cPanel for administering my website, and the instructions say my username "joestat" should be prefaced with "estspace_".

As you can see I have tried this several ways and still get the error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'estspace_joestat'@'70.87.126.226' (using password: YES) in /home/estspace/public_html/statistics/include/conn ection.php on line 17
No connection.

I know nothing about your software and how it works, or what variables need to be changed. You prrovide no documentation.

If your other products are supported this way it's not likely I will buy anything from you.

Thanks,

Joe
Author software
Admin
#6 Posted: 1 Feb 2007 08:44:14
Reply 
Did you let estspace_joestat users to use estspace_BasicStat database? Privilegs need to be add in cPanel. This is a cPanel setting to database, is not our script.
Author photogrfx
Forums Member
#7 Posted: 2 Feb 2007 02:15:28
Reply 
Well I thought I did, but to be sure I deleted all users and databases and started over.

I finally got to the configuration login screen:
http://www.estspace.com/statistics/login.php/

Entered demo/demo and now get these errors:

Table 'estspace_gfxstat.estspace_gfxstatstats' doesn't exist
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/estspace/public_html/statistics/statistics.p hp on line 76

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/estspace/public_html/statistics/statistics.p hp on line 81

You guys could save endless questions with some accurate documentation.

The database name is defined in two places in cinfig.inc.php

define("DB_NAME", "estspace_gfxstat");
and
define("STAT_DB_INDEX", "estspace_gfxstat");

looking at the error message, these two lines need to be different. What should be entered for "STAT_DB_INDEX"?

Thanks,

Joe
Author photogrfx
Forums Member
#8 Posted: 2 Feb 2007 02:37:58
Reply 
Solved my problem.

Please come up with some accurate documentation. It would save a lot of time.

Thanks,

Joe
Author software
Admin
#9 Posted: 2 Feb 2007 07:26:32
Reply 
Glad that you fixed.
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.