coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 PHPnuke/Postnuke Support => Topic started by: rhydewithdis on November 06, 2003, 02:21:19 AM

Title: [FIXED] Error install.php -> can't access file directly
Post by: rhydewithdis on November 06, 2003, 02:21:19 AM
I figured this would happen - nothing can ever be that easy - hehe.

So I followed the direction to a T - but I ran into an error as soon as I tried to run the installation file.

I'm running PHPNuke 6.5 and had CPG 1.1D running with no problems...

Here are some of the errors I'm getting (any help will be appreciated!):

Warning: Failed opening 'modules/coppermine/include/config.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/vivrant/www/content/modules/coppermine/index.php on line 29

Warning: Failed opening 'modules/coppermine/include/init.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/vivrant/www/content/modules/coppermine/index.php on line 45

Fatal error: Call to undefined function: breadcrumb() in /home/vivrant/www/content/modules/coppermine/index.php on line 144
Title: [FIXED] Error install.php -> can't access file directly
Post by: DJMaze on November 06, 2003, 02:38:33 AM
change line 29 of index.php into:
include('include/config.inc.php');

and see if error still occures for that line.

Ehm what has that install error to do with your post ?
Title: [FIXED] Error install.php -> can't access file directly
Post by: rhydewithdis on November 06, 2003, 04:19:23 AM
Quote from: "DJMaze"change line 29 of index.php into:
include('include/config.inc.php');

and see if error still occures for that line.

Ehm what has that install error to do with your post ?

Hey DJMaze - I tried out what you suggested - I changed this line:

include('modules/'.$name.'/include/config.inc.php');

to this:
include('/include/config.inc.php');

The error now is:
Warning: Failed opening '/include/config.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/vivrant/www/content/modules/coppermine/index.php on line 29

What do you think?
Title: [FIXED] Error install.php -> can't access file directly
Post by: DJMaze on November 06, 2003, 04:35:41 AM
remove first slash in include('/include/config.inc.php');

is i wrote above it should look like this: include('include/config.inc.php');
Title: [FIXED] Error install.php -> can't access file directly
Post by: rhydewithdis on November 06, 2003, 05:18:47 AM
Quote from: "DJMaze"remove first slash in include('/include/config.inc.php');

is i wrote above it should look like this: include('include/config.inc.php');

DJMaze - thanks for all the help... I removed the slash, but still I am getting a similar error:

Warning: Failed opening 'include/config.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/vivrant/www/content/modules/coppermine/index.php on line 29
Title: absolute reference
Post by: gtroll on November 06, 2003, 06:33:47 AM
TRY:
require_once("../../mainfile.php");
Title: [FIXED] Error install.php -> can't access file directly
Post by: gtroll on November 06, 2003, 06:56:12 AM
No that won't work check that file and see if it's there by
using an absolute path for each error
'/home/vivrant/www/content/modules/coppermine/include/config.inc.php'
Title: [FIXED] Error install.php -> can't access file directly
Post by: gtroll on November 06, 2003, 07:12:21 AM
If above doesn't work test this instruction by reverting the folder to chmod 0777 this may be for windows servers only:
Quote* chmod "modules/coppermine/include" folder back to 744
Title: thanks but still no luck - i don't get it!
Post by: rhydewithdis on November 06, 2003, 02:52:46 PM
Here's the error I get now:
Warning: Failed opening '/home/vivrant/www/content/modules/coppermine/include/config.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/vivrant/www/content/modules/coppermine/index.php on line 29

Right now I have chmod 777 on config.inc.php

The line in the install.php file now reads: include('/home/vivrant/www/content/modules/coppermine/include/config.inc.php');

I double checked and I'm make sure the absolute path is corrrect at this point.  

For background - all I did was download the zip file, unzip, and upload all the contents to their appropriate directories...  if any of you guys are on AIM or MSN, and have time, drop me a line!  MY SN on both is rhydewithdis

Thanks - and any other options I could try?
Title: [FIXED] Error install.php -> can't access file directly
Post by: sigi on November 06, 2003, 08:09:05 PM
the include should start at the root dir of the web - so in your case try

include("modules/coppermine/include/config.inc.php");

that worked for me .-.-.-
Title: [FIXED] Error install.php -> can't access file directly
Post by: DJMaze on November 06, 2003, 08:11:48 PM
The problem of rhydewithdis is solved after i was digging in his files.

It seems the phpNuke 6.5 mainfile.php file has a bug.

If you use our install.php then insert above Line 21 ($inside_mod = 1; ) the following line:
define('inside_mod', 1);