Errors in Index.php Errors in Index.php
 

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

Errors in Index.php

Started by ttegron, May 04, 2005, 05:34:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ttegron

Hi, I'm getting the following errors in my index.php.

Notice: Undefined index: PATH_TRANSLATED in c:\Inetpub\wwwroot\cpg133\index.php on line 21

Notice: Undefined offset: -1 in c:\Inetpub\wwwroot\cpg133\index.php on line 22

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\cpg133\index.php:21) in c:\Inetpub\wwwroot\cpg133\themes\classic\theme.php on line 810

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\cpg133\index.php:21) in c:\Inetpub\wwwroot\cpg133\themes\classic\theme.php on line 811

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\cpg133\index.php:21) in c:\Inetpub\wwwroot\cpg133\include\functions.inc.php on line 51


I think there maybe two different problems. One is the first two errors, the second is the warnng errors.
I have searched the forum for the answer to either of these and am struggling to find the answers. about the warning messages I've read threads where people have said that it's because their host needs to turn on long arrays, but i'm hosting the site myself and they are turned on in php.ini.

The first set of error messages I have had through the install.php and I saw in other threads to ignore but they are still there after the install stage.

Any ideas? It's probably something stupid i've done. By the way i'm running this on Windows 2003 Server, with PHP 5.0.4, MySql 4.1.11 and Coppermine v1.3.3.

Many thanks in advance.

Alan

Nibbler

Find this code in index.php and remove it:

// Check if standalone is installed in a portal like phpNuke (added by DJMaze)
$DIR=preg_split("/[\/\\\]/",dirname($_SERVER['PATH_TRANSLATED']));
if ($DIR[count($DIR)-2] == "modules") {
    echo "<html><body><h1>ERROR</h1>You installed the standalone Coppermine into your Nuke portal.<br>".
         "Please download and install a CPG Port: <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658\">CPG for PostNuke OR CPG for PHPnuke</a></body></html>";
    die();
} // end check


Have you added anything in index.php ?

Please post a link to your site.

ttegron

Hi that was quick  :)

Here is the link - http://195.137.8.138/cpg133/index.php

No I did first of all as I was trying to fix the first two errors when I saw them in the install.php. But then I thought I would do a fresh install of CPG to make sure it wasn't anything I hade done.  So no it's a fresh install.

Many thanks,

Alan

ttegron

That wokred a treat!

Many thanks  8)