Fatal error on initial start Fatal error on initial start
 

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

Fatal error on initial start

Started by watsocd, January 27, 2004, 02:35:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

watsocd

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

hyperion

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.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

watsocd

I run the server. Can I edit the include_path in php.ini to correct this issue.

hyperion

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"
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

watsocd

Thanks for the assistance.

Problem solved by your suggestion.