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_";
?>
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
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.
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! :)
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
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.
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.
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
Read this, then post your info.
http://forum.coppermine-gallery.net/index.php?topic=380
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:
Is your mysql version greater than 3.23.23? It's a minimum requirement. How about the version of the cpg nuke port?
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
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]
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
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
there should be the complete path to the includes files in the include() statement:
include("modules/coppermine/include/.... ");
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.