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

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

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.