News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)

Started by Alajo, October 17, 2003, 06:24:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alajo

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_";
?>

gtroll

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

tL-Keiran

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.

regie

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!  :)

Alajo

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

candace

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.

gtroll

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.

DigitalMuse

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

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

DigitalMuse

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:

kegobeer

Is your mysql version greater than 3.23.23?  It's a minimum requirement.  How about the version of the cpg nuke port?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

DigitalMuse

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

gtroll

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]


Teknerd

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

sigi

there should be the complete path to the includes files in the include() statement:

include("modules/coppermine/include/.... ");
Siegfried Schlosser

Berlin, Germany

had a big Coppermine gallery with more than 250.000 pics  at
www.allygally.de, but due to juristical problems that is closed now ....
Now trying Coppermine 1.4.x at http://walexis.pytalhost.de/

Teknerd

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.