Could not read the file include/init.inc.php for reading Could not read the file include/init.inc.php for reading
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Could not read the file include/init.inc.php for reading

Started by Jastro, September 28, 2010, 08:46:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jastro

Just downloaded cpg1.5 and set up IIS and mySQL before starting install.php.
At the very beginning of installing I get this error message:
"Could not read the file include/init.inc.php for reading."
Checked and made sure the file is there and have read rights, but still no luck.  ???

Actually there is a little spelling mistake in the install.php file for this error message, but i'm not worried about that.  ;)

Anyone else seen this and can guide me past it ?

Regards

Jastro

Nibbler

Means the file could not be opened for reading, so you need to fix permissions. Can't tell you any more than that since I don't use IIS.


    $handle = @fopen('include/init.inc.php', 'r');
    if ($handle == FALSE) {
        $page_title = 'Could not fopen';
        html_header();
        echo 'Could not read the file inlucde/init.inc.php for reading. Make sure it exists and is readable, then try again.';
        html_footer();
        die;
    }

Jastro

Thanks for a very quick response !
My first though was to tweek the permissions and even given full access rights (to all cpg files!) doesn't make a difference.. :-(
So i'm still a bit stuck.
And yes its the 'include/init.inc.php' in question, not 'inlucde/init.inc.php' as the error message states. ;-)

Nibbler

Try removing the @ from that line and see if you get an error message from PHP.