Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [FIXED] Error install.php -> can't access file directly  (Read 10844 times)

0 Members and 1 Guest are viewing this topic.

rhydewithdis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.vivrant.com
[FIXED] Error install.php -> can't access file directly
« 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
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[FIXED] Error install.php -> can't access file directly
« Reply #1 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 ?
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

rhydewithdis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.vivrant.com
[FIXED] Error install.php -> can't access file directly
« Reply #2 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?
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[FIXED] Error install.php -> can't access file directly
« Reply #3 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');
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

rhydewithdis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.vivrant.com
[FIXED] Error install.php -> can't access file directly
« Reply #4 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
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
absolute reference
« Reply #5 on: November 06, 2003, 06:33:47 am »

TRY:
require_once("../../mainfile.php");

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[FIXED] Error install.php -> can't access file directly
« Reply #6 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'

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[FIXED] Error install.php -> can't access file directly
« Reply #7 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

rhydewithdis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.vivrant.com
thanks but still no luck - i don't get it!
« Reply #8 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?
Logged

sigi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.allygally.de
[FIXED] Error install.php -> can't access file directly
« Reply #9 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 .-.-.-
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/

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[FIXED] Error install.php -> can't access file directly
« Reply #10 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);
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.