cacti adodb.inc.pho deprecated messages..

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

Moderators: Developers, Moderators

Post Reply
2beone
Posts: 6
Joined: Wed Aug 12, 2009 8:52 am

cacti adodb.inc.pho deprecated messages..

Post by 2beone »

After compiling and installing cacti with apache 2 net-snmp and the latest php
configured the database.. so far everything went fine without an error..
but when I say http://cacti/cacti on my local network I get lots of
deprecated adodb.inc.php messages at line
866, 872, 1183 and so on.

Anyone knows the solution/fix for this.
cert-eh-fiable
Cacti User
Posts: 51
Joined: Thu Aug 06, 2009 9:18 pm

Post by cert-eh-fiable »

What do your cacti logs and system logs say?
2beone
Posts: 6
Joined: Wed Aug 12, 2009 8:52 am

Post by 2beone »

cert-eh-fiable wrote:What do your cacti logs and system logs say?
That is indeed the first place I started but no logs..

After some search I think that the real problem is this:

Warning: Cannot modify header informatio - headers already sent by
(output started at /var/apache2/htdocs/cacti/lib/adodb/adodb.inc.php:866)
in /var/apache2/htdocs/cacti/include/auth.php on line 29.

What I could find is something about session support.. I am still looking for the
solution...

os: solaris 10 sparc
packages: compiled php5, net-snmp etc

everything installed and in place..
cert-eh-fiable
Cacti User
Posts: 51
Joined: Thu Aug 06, 2009 9:18 pm

Post by cert-eh-fiable »

make sure local and global php.ini is safe_mode=off

modify php.ini to log errors

check the php logs

have you checked your cacti logs?
2beone
Posts: 6
Joined: Wed Aug 12, 2009 8:52 am

Post by 2beone »

cert-eh-fiable wrote:make sure local and global php.ini is safe_mode=off

modify php.ini to log errors

check the php logs

have you checked your cacti logs?
That is exactly what is making this particular challenge a problem for I have 0 logs to work with.. system logs tell me nothing, cacti logs neither (size 0) and now I am loggin php errors also and php too is really quite (size 0)...
This is why I am lost here... I will think and think.. see if I can come with some creative idea..

The only piece of information I have now is this:

Warning: Cannot modify header information - headers already sent by (output at /var/apache2/htdocs/cacti/lib/adodb/adodb.inc.php:866) in /var/apache2/htdocs/cacti/include/auth.php n line 29

Thank you for being here with me
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

PHP 5.3 will cause a lot of notices about depreciated function calls.
In that case you've to configure your PHP not beeing so chatty or use PHP 5.2.10 instead.

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
2beone
Posts: 6
Joined: Wed Aug 12, 2009 8:52 am

Post by 2beone »

browniebraun wrote:PHP 5.3 will cause a lot of notices about depreciated function calls.
In that case you've to configure your PHP not beeing so chatty or use PHP 5.2.10 instead.

Best regards
-Andreas-
I don't mind the warnings but the problem is that I will not get the cacti screen and only the deprecated messages and 1 warning. And nothing in the logs
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

If there has been any output sent to the browser before a redirect command (header function) will always fail.
The warning is a consequence of the depreciated messages sent to the browser before.
Which version of PHP are you using?

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
2beone
Posts: 6
Joined: Wed Aug 12, 2009 8:52 am

Post by 2beone »

browniebraun wrote:If there has been any output sent to the browser before a redirect command (header function) will always fail.
The warning is a consequence of the depreciated messages sent to the browser before.
Which version of PHP are you using?

Best regards
-Andreas-
My php version is 5.3.0
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

As I wrote it in my first comment modify your php.ini to suppress messages from type E_DEPRECATED or downgrade to PHP 5.2.10.

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
2beone
Posts: 6
Joined: Wed Aug 12, 2009 8:52 am

Post by 2beone »

browniebraun wrote:As I wrote it in my first comment modify your php.ini to suppress messages from type E_DEPRECATED or downgrade to PHP 5.2.10.

Best regards
-Andreas-
Yes, I downgraded and everything is working fine.
Thank you very much!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests