First time install Error !! First time install Error !!
 

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

Main Menu

First time install Error !!

Started by shadowc, December 09, 2003, 10:50:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shadowc

First time i install the cpg 1.2 and try to login ocr go to index.php i get this error.

Warning: main(include/config.inc.php): failed to open stream: No such file or directory in /wwwroot/xxxxxxxx.com/www/coppermine/include/init.inc.php on line 135

Fatal error: main(): Failed opening required 'include/config.inc.php' (include_path='/wwwroot/xxxxxxxx.com/include') in /wwwroot/xxxxxxxx.com/www/coppermine/include/init.inc.php on line 135

And when i edit these lines.....

require 'include/config.inc.php';
require 'include/functions.inc.php';

To.....

require 'config.inc.php';
require 'functions.inc.php';


I get passed that error and gets a new one...............

Warning: main(themes/default/theme.php): failed to open stream: No such file or directory in /wwwroot/xxxxxxxx.com/www/coppermine/include/init.inc.php on line 228

Fatal error: main(): Failed opening required 'themes/default/theme.php' (include_path='/wwwroot/edgeflyfishing.com/include') in /wwwroot/xxxxxxxx.com/www/coppermine/include/init.inc.php on line 228


Since im not a PHP programmer i get stuck here, but the problen seems to be a wrong include_path, but i can't find where the path statement is.

I tried the cpg 1.1.1 and the 1.2.0RC2, but gets the same problem, i have also moved the cpg directory down to root level at the site, and still the same problem, now im realy stuck, please help.

shadowc

After looking in all the threads on this forum i find out the the problem could be at the server, so i changed all "require=" paths to full paths, and got to the login screen, after 2-3 seconds, im getting a Parse Error in line 20 in index.php

The line:

require(include/init.inc.php');

and changed this to the full path like this.

require(''/wwwroot/edgeflyfishing.com/www/coppermine/include/init.inc.php');

But im still getting the Parse Error:

Parse error: parse error in /wwwroot/edgeflyfishing.com/www/coppermine/index.php on line 20

Joachim Müller

The line
Quoterequire(include/init.inc.php');
will produce a parse error because it lacks a single quote before the path, change it to
Quoterequire('include/init.inc.php');
(technically speaking, but since you seem to have server config issues, this is highly academical).

You're on the right track with using the full url, but you have an error in your syntax there as well - the line
Quoterequire(''/wwwroot/edgeflyfishing.com/www/coppermine/include/init.inc.php');
should actually be
Quoterequire('/wwwroot/edgeflyfishing.com/www/coppermine/include/init.inc.php');
(this time you had to single quotes at the start). Try again!
As a rule of thumb: if you start a quote in PHP (be it a single quote or a double quote), you'll have to end it as well with the same thing (single or double).

GauGau

shadowc

Tnx for the fast reply.

The quote ' got lost when i cut'n paste the code so it was:
require('include/init.inc.php');

after some testing with different path's i tried the index.php from the rc2 and it worked ??? is there any diffrences in the final and the RC2 ?

Link to the gallery http://www.edgeflyfishing.com/coppermine/index.php

PS the config.php, login.php, admin.php works fine..