coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: Alajo on October 17, 2003, 06:24:24 PM

Title: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
Post by: Alajo on October 17, 2003, 06:24:24 PM
These are the messages that appear while trying to run coppermine in my server. It runs properly in my own PC.


Warning: Failed opening 'config.inc.php' for inclusion (include_path='') in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 139

Warning: Failed opening 'functions.inc.php' for inclusion (include_path='') in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 140

Warning: Undefined index: TABLE_PREFIX in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 143

Warning: Undefined index: TABLE_PREFIX in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 144

Warning: Undefined index: TABLE_PREFIX in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 145

Warning: Undefined index: TABLE_PREFIX in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 146

Warning: Undefined index: TABLE_PREFIX in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 147

Warning: Undefined index: TABLE_PREFIX in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 148

Warning: Undefined index: TABLE_PREFIX in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 149

Fatal error: Call to undefined function: db_query() in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 156


I read about your suggestions changing the config.inc.php but still doesn't work, this is my config.inc.php:
<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         "localhost";        // Your database server
$CONFIG['dbuser'] =                         "";        // Your mysql username
$CONFIG['dbpass'] =                         "";                // Your mysql password
$CONFIG['dbname'] =                         "";        // Your mysql database name

define('SILLY_SAFE_MODE', 1);
// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                "cpg_";
?>
Title: Failed Openings
Post by: gtroll on October 17, 2003, 06:59:19 PM
The first error gives me a clue
Warning: Failed opening 'config.inc.php' for inclusion (include_path='') in /home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/init.inc.php on line 139

did you change line 139
include "config.inc.php";
Has include config.inc.php been uploaded to  the server?
if you have not changed this and it is on the server then try this
on line 139
[/code]
include "/home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/config.inc.php";
This not the normal configuration but may work for you...[/code]


I also believe you need should fill in the values here
$CONFIG['dbuser'] = " :!: "; // Your mysql username
$CONFIG['dbpass'] = " :!: "; // Your mysql password
$CONFIG['dbname'] = " :!: "; // Your mysql database name
Title: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
Post by: tL-Keiran on October 18, 2003, 01:40:17 PM
Getting the exact same problem as the other guy. Running phpnuke 6.9 as well. Ensured everything was correct and tried your suggestions about adding the information to the database but it still didn't work.
Title: RE: Warnings and Fatal error with Coppermine 1.1d (php-nuke
Post by: regie on October 19, 2003, 08:40:38 AM
It looks to me like a database prefix error... so perhaps this might help. In the /includes/init.inc.php file on line 150 check this line:

$CONFIG['TABLE_USERS']= "nuke_users";

and make sure it is the same as your database prefix. I have read that other users have had to change this when they get the same errors.. hope that helps, good luck!  :)
Title: O.K:
Post by: Alajo on October 20, 2003, 12:00:52 AM
It worked, I had to change line 139 and 140 in init.inc.php:

139 include "/home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/config.inc.php";
140
include "/home/www/inter.net/usuarios/escola/public_html/Antar/modules/coppermine/include/functions.inc.php";

and also fill on the information about my data base name and password in config.php and it worked properly.

Carry on like this, you're doing very well, thank you very much
Title: Problem with config.inc.php and init.inc.php with mysql
Post by: candace on October 20, 2003, 07:17:00 AM
I have a rather major error. Upon accessing the photo album I get this error on the main page:


Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 139

Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='') in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 139

Warning: main(functions.inc.php): failed to open stream: No such file or directory in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 140

Warning: main(): Failed opening 'functions.inc.php' for inclusion (include_path='') in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 140

Notice: Undefined index: TABLE_PREFIX in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 143

Notice: Undefined index: TABLE_PREFIX in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 144

Notice: Undefined index: TABLE_PREFIX in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 145

Notice: Undefined index: TABLE_PREFIX in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 146

Notice: Undefined index: TABLE_PREFIX in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 147

Notice: Undefined index: TABLE_PREFIX in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 148

Notice: Undefined index: TABLE_PREFIX in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 149

Fatal error: Call to undefined function: db_query() in /home/ussstard/public_html/em/modules/coppermine/include/init.inc.php on line 156


I had this already installed it with no errors but do to my error had deleted my whole phpnuke site. But when I reinstalled everything my photo album would not work. I am using PHPNuke 6.7 and my url is http://www.ussstardust.com/em/modules.php?name=coppermine
You do not need an account to view the error.
Title: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
Post by: gtroll on October 20, 2003, 07:37:06 AM
candace I moved your post here the fix is above I have added a new config variable in the new version doc_root because depending on the server it may or may not look in the right directory for files refenced without a path. Just use this path instead of the one posted above.
Title: many errors no gallery yet....
Post by: DigitalMuse on October 21, 2003, 11:14:39 PM
After doing a fresh install of Coppermine to this site i got the following errors:
Tried re uploading the files and still got the same errors

Warning: main(config.inc.php) [function.main]: failed to create stream: No such file or directory in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 139

Warning: main() [function.main]: Failed opening 'config.inc.php' for inclusion (include_path='') in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 139

Warning: main(functions.inc.php) [function.main]: failed to create stream: No such file or directory in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 140

Warning: main() [function.main]: Failed opening 'functions.inc.php' for inclusion (include_path='') in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 140

Notice: Undefined index: TABLE_PREFIX in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 143

Notice: Undefined index: TABLE_PREFIX in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 144

Notice: Undefined index: TABLE_PREFIX in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 145

Notice: Undefined index: TABLE_PREFIX in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 146

Notice: Undefined index: TABLE_PREFIX in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 147

Notice: Undefined index: TABLE_PREFIX in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 148

Notice: Undefined index: TABLE_PREFIX in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 149

Fatal error: Call to undefined function: db_query() in /home/www/nosleepmgmt/html/modules/coppermine/include/init.inc.php on line 156
Title: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
Post by: kegobeer on October 21, 2003, 11:20:32 PM
Read this, then post your info.
http://forum.coppermine-gallery.net/index.php?topic=380
Title: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
Post by: DigitalMuse on October 21, 2003, 11:24:57 PM
am sorry....bad day here....i am using php nuke version 6.5

The paths i think you can see from the posts

the PHP version is 4.3.1

The msql version is 3.23

If I have left any pertinent information out bear with me...im a newbie

 :roll:
Title: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
Post by: kegobeer on October 21, 2003, 11:26:31 PM
Is your mysql version greater than 3.23.23?  It's a minimum requirement.  How about the version of the cpg nuke port?
Title: various errors
Post by: DigitalMuse on October 21, 2003, 11:36:08 PM
hmmm these are the values i have for the msql and that might explain why im getting these errors ( have installed coppermine dozens of times and this is the first time i got any errors on an install)

server version 3.23.56
client version 3.23.54

not sure if this answers your question...but would make sense if the versions are off
Title: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
Post by: gtroll on October 22, 2003, 01:34:21 AM
This has been addressed in another thread SEARCH!
[edit=gtroll]
I moved your post to this thread that addresses this problem if the fix proposed does not work for you let me know
[/edit]
Title: bad include_patch configuration
Post by: gtroll on October 22, 2003, 01:20:48 PM
This whole subject was a 3 pages long on the old board with one solution edit and put absolute call to the includes
http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=1142
Title: Error after installation of Version 11D on Nuke 6.9
Post by: Teknerd on November 03, 2003, 09:12:53 AM
Ok after installing, I am receiving this error.

Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 139

Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='') in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 139

Warning: main(functions.inc.php): failed to open stream: No such file or directory in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 140

Warning: main(): Failed opening 'functions.inc.php' for inclusion (include_path='') in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 140

Notice: Undefined index: TABLE_PREFIX in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 143

Notice: Undefined index: TABLE_PREFIX in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 144

Notice: Undefined index: TABLE_PREFIX in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 145

Notice: Undefined index: TABLE_PREFIX in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 146

Notice: Undefined index: TABLE_PREFIX in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 147

Notice: Undefined index: TABLE_PREFIX in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 148

Notice: Undefined index: TABLE_PREFIX in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 149

Fatal error: Call to undefined function: db_query() in /home/theadvoc/public_html/bzresources/modules/coppermine/include/init.inc.php on line 156


I see there was a fix that was suppose to be here according to the txt file in the 11D pack.

answer here:
http://www.chezgreg.net/cpgboard/viewtopic.php?t=1142

but this site must be down.    Anyone have the fix for it?

Thanks
Title: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
Post by: sigi on November 03, 2003, 09:27:33 AM
there should be the complete path to the includes files in the include() statement:

include("modules/coppermine/include/.... ");
Title: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
Post by: Teknerd on November 03, 2003, 09:30:45 AM
ah thanks for the tip sigi there was a error in the init.inc.php file on lines 139 and 140.  They read as

include "config.inc.php";
include "functions.inc.php";

I changed them to

include "modules/coppermine/include/config.inc.php";
include "modules/coppermine/include/functions.inc.php";

 and it fixed it.