Failed opening required...

bodyofwater

Joined: 2003-04-15
Posts: 2
Posted: Tue, 2003-04-15 04:12

I have been trying to get this gallery software working on my web server for a few days with no luck. I think it has something to do with the include_path variable, but I've searched the forums and FAQ have not found a solution that works for me.

I have:

* Downloaded the latest version of GALLERY (1.3.3)
* Uploaded all of the directories and files to my web server via FTP.
* Created a blank file.
* Uploaded it via FTP (binary mode) and renamed it as .htaccess.
* Uploaded it via FTP (binary mode0 and renamed it to config.php.
* Made sure the two new files had CHMOD values of 777.
* Gone to the index page and received the following error...

Fatal error: Failed opening required 'errors/configure_instructions.php' (include_path='c:php4pear') in d:htmlusersbodyofwatercomhtmldangalleryerrorsreconfigure.php on line 10

Does this error mean that the Gallery app is trying to open c:php4pear'errors/configure_instructions.php? If so, I can understand why that fails. But how do I fix it?

I have tried adding a line reading "php_value include_path '.'" to my .htaccess file, but that did not seem to help.

I'm on a shared host so I can not edit the php.ini file.

My PHPINFO page is at http://www.bodyofwater.com/dan/gallery/setup/phpinfo.php.

I sure would appreciate any help you could offer.

Thanks,

Greg

:cry:

Login or register to post comments
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3469
Posted: Tue, 2003-04-15 06:06

Well, ideally you should set the include_path in your php.ini file instead.
On Windows, you use a semicolon ( ; ) to demarcate paths (whereas on Unix/Linux it would be a colon (:).

So your include_path should be something like:

include_path=".;c:php4pear" (inside php.ini, for the "Master" value)
php_value include_path ".;c:php4pear" (inside .htaccess, for the "Local" value)

You should ask your sysadmin to edit the php.ini file. This is a very reasonable request.

As for doing it via the .htaccess file, that *ought* to be working. :roll: This should go in the .htaccess file in the gallery directory. Make sure it's in correctly. It's not currently showing up on your phpinfo.php page, so something's not entered correctly.

I checked, and it seems the configure_instructions.php file does exist, so your problem isn't with the file not being where it should be (which is sometimes the case with this error).

-Beckett (

)

Login or register to post comments
bodyofwater

Joined: 2003-04-15
Posts: 2
Posted: Wed, 2003-04-16 04:58

Okay, still not working.

I've contacted my web host to see if they are willing to edit the main PHP.INI file, but I have not heard back.

Currently the .HTACCESS file in the main gallery directory reads:
php_value include_path ".;c:php4pear"

And the .HTACCESS file in the setup directory reads:
php_value auto_prepend_file php_value_ok.php
php_value magic_quotes_gpc off
php_value include_path ".;c:php4pear"

Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(index.php)$ index.php?init_mod_rewrite=1&amp;ampersandbroken= [QSA]
</IfModule>

Any additional hints or ideas?

Thanks,

G

Login or register to post comments