Advanced search  

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

Pages: [1]   Go Down

Author Topic: Could not read the file include/init.inc.php for reading  (Read 10090 times)

0 Members and 1 Guest are viewing this topic.

Jastro

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Could not read the file include/init.inc.php for reading
« on: September 28, 2010, 08:46:23 pm »

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
Logged

Nibbler

  • Guest
Re: Could not read the file include/init.inc.php for reading
« Reply #1 on: September 28, 2010, 08:52:44 pm »

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.

Code: [Select]
    $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;
    }
Logged

Jastro

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Could not read the file include/init.inc.php for reading
« Reply #2 on: September 28, 2010, 09:08:37 pm »

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. ;-)
Logged

Nibbler

  • Guest
Re: Could not read the file include/init.inc.php for reading
« Reply #3 on: September 29, 2010, 10:24:25 am »

Try removing the @ from that line and see if you get an error message from PHP.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.