ignoring session_start()

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
barzog
Posts: 8
Joined: Thu Jan 31, 2002 7:00 pm

ignoring session_start()

Post by barzog »

After upgrading from 0.6.8a to 0.8.1 I constantly see following notice when viewing graphs: Notice: A session had already been started - ignoring session_start() in /usr/local/www/data/cacti-new/include/top_graph_header.php on line 33
how can I fix this?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

What version of PHP are you running? I have yet to see this error message before.

-Ian
bruno

Post by bruno »

raX wrote:What version of PHP are you running? I have yet to see this error message before.

-Ian
this also happens with me.

deq% php -version
PHP 4.3.3RC1 (cli) (built: Jul 4 2003 18:13:16)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

FreeBSD 5.1

Here's the full error message:

Notice: A session had already been started - ignoring session_start() in /usr/local/www/data/cacti/include/top_graph_header.php on line 33

Btw, the interface snmp implementation completely fail on freebsd as those oids don't exist on net-snmp 5 install... sucks :|
koitsu

Post by koitsu »

I too get this message. It's located at the top of the screen when clicking "Graphs". I'm testing straight out of the box, without cmd.php having been run yet.

pentarou# php -version
PHP 4.3.3RC1 (cli) (built: Jul 12 2003 20:31:20)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

FreeBSD pentarou.parodius.com 4.8-STABLE FreeBSD 4.8-STABLE #0: Thu May 15 11:28:23 PDT 2003 root@pentarou.parodius.com:/usr/obj/usr/src/sys/PARODIUS-SMP i386

Please advise.
grivat

Solution

Post by grivat »

'Hi,

i've made a little change in cacti/include/top_graph_header.php

Code: Select all

if (!isset($_SESSION["sess_user_id"])) {
        session_start();
        }
and now with FreeBSD no more error :-)
barzog
Posts: 8
Joined: Thu Jan 31, 2002 7:00 pm

Post by barzog »

Works perfectly. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests