When I try to create a Gendex, I get the following :
Warning: main(/config.php): failed to open stream: No
such file or directory
in /home/username/public_html/family/modules/gendex/m
odule_admin.php on line 50
Warning: main(): Failed opening '/config.php' for
inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')
in /home/username/public_html/family/modules/gendex/m
odule_admin.php on line 50
Fatal error: Call to a member function on a non-object
in /home/username/public_html/family/modules/gendex/m
odule_admin.php on line 56
Following info from config may have something to do
with it (?):
<?php
$env['rootPath'] = '/home/username/public_html/family';
$env['rootUrl'] = 'http://www.userdomain.net/family';
$dbtype = 'mysql';
$dbhost = 'localhost';
$env['dbPrefix'] = 'fam';
.
. (edit)
.
include_once( $env['rootPath'].'/include/common.php' );
?>
If I recall, default for $env['dbPrefix'] was 'pgv', which I
see referenced in line 50 - could that have anything to
do with it? (Although I tried editing the php file line 50
to 'fam' in place of 'pgv' without any luck).
Logged In: NO
I would say that it is a circular reference.
config.php is where$env['rootPath'] is defined, and it is trying
to use it to include config.php.
I changed it to
include_once( '../../config.php' );
and it was happy.
Logged In: YES
user_id=962760
So you are suggesting that I change:
include_once( $env['rootPath'].'/include/common.php' );
to:
include_once( '../../config.php' );
in config.php?