Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Errors in Index.php  (Read 4953 times)

0 Members and 1 Guest are viewing this topic.

ttegron

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Errors in Index.php
« on: May 04, 2005, 05:34:50 pm »

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
« Last Edit: May 04, 2005, 06:50:15 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Errors in Index.php
« Reply #1 on: May 04, 2005, 05:39:30 pm »

Find this code in index.php and remove it:

Code: [Select]
// 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.
Logged

ttegron

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Errors in Index.php
« Reply #2 on: May 04, 2005, 05:48:15 pm »

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
Logged

ttegron

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Errors in Index.php
« Reply #3 on: May 04, 2005, 06:43:16 pm »

That wokred a treat!

Many thanks  8)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.