Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)  (Read 17508 times)

0 Members and 1 Guest are viewing this topic.

Alajo

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
« 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_";
?>
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Failed Openings
« Reply #1 on: October 17, 2003, 06:59:19 pm »

The first error gives me a clue
Code: [Select]
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
Code: [Select]
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]
Code: [Select]
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
« Reply #2 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.
Logged

regie

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
RE: Warnings and Fatal error with Coppermine 1.1d (php-nuke
« Reply #3 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!  :)
Logged

Alajo

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
O.K:
« Reply #4 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
Logged

candace

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Problem with config.inc.php and init.inc.php with mysql
« Reply #5 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:


Code: [Select]
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.
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
« Reply #6 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.

DigitalMuse

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
many errors no gallery yet....
« Reply #7 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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
« Reply #8 on: October 21, 2003, 11:20:32 pm »

Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
« Reply #9 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:
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
« Reply #10 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?
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
various errors
« Reply #11 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
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
« Reply #12 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]

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
bad include_patch configuration
« Reply #13 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

Teknerd

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Error after installation of Version 11D on Nuke 6.9
« Reply #14 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
Logged

sigi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.allygally.de
Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
« Reply #15 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/.... ");
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Warnings and Fatal error with Coppermine 1.1d (php-nuke 6.9)
« Reply #16 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 14 queries.