coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: watsocd on January 27, 2004, 02:35:45 AM

Title: Fatal error on initial start
Post by: watsocd on January 27, 2004, 02:35:45 AM
I have searched the board and can't find anything specifically on this subject.

I did find this thread but it did not help.
http://forum.coppermine-gallery.net/index.php?topic=1653&highlight=force+path

I am getting the following error when I try to login to coppermine for the first time. The install.php script functions corrrectly. It creates the database tables and creates the install.lock and config.inc.php files in the include directory.

Fatal error: Failed opening required '/include/config.inc.php' (include_path='/var/www/phpinclude:./includes') in /var/www/html/copper/include/init.inc.php on line 135

I am running Redhat 9 with PHP 4.2.2.

Here is a link. http://chuck.homelinux.com/copper
Title: Fatal error on initial start
Post by: hyperion on January 27, 2004, 04:02:28 AM
Okay, this occurs because the include library path has been set in php.ini. You need to edit the require/include calls that generate the errors.  You should do like so each time you get this error:

require(realpath('include/config.inc.php'));

(use the require or include function as appropriate)

Alternatively, you can attempt to correct by using a per directory modification in .htaccess file (placed in the root of Coppermine):

php_value include_path .:/home/user/siteroot.com/sess

where .:/home/user/siteroot.com/sess is the path to the include file in Coppermine.
Title: Fatal error on initial start
Post by: watsocd on January 27, 2004, 04:07:06 AM
I run the server. Can I edit the include_path in php.ini to correct this issue.
Title: Fatal error on initial start
Post by: hyperion on January 27, 2004, 04:18:29 AM
Yes, you should be able to edit php.ini to correct the problem if you are not using the library link for anything.

Look for something like this in php.ini:


;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"  
include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"


Change to:


;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"  
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
Title: Fatal error on initial start
Post by: watsocd on January 27, 2004, 05:06:54 AM
Thanks for the assistance.

Problem solved by your suggestion.