Error on Poller : PHP Deprecated PHP Warning

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

Moderators: Developers, Moderators

Post Reply
featoff
Posts: 1
Joined: Thu Dec 10, 2009 11:11 am

Error on Poller : PHP Deprecated PHP Warning

Post by featoff »

Hello all,

(Sorry for my english i am french :-? )

My cacti was setup on fedora 12 with yum install cacti.
When i run /usr/bin/php /usr/share/cacti/poller.php i was many errors :

Code: Select all

# /usr/bin/php /usr/share/cacti/poller.php
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 866
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 872
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 1183
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 1961
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 3027
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 3592
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 3667
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 3687
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 156
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 156
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 157
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 157
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 158
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 158
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 159
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 159
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 160
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 160
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 161
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 161
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 162
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_constants.php on line 162
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 621
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 621
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 622
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 622
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 623
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 623
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 624
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 624
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 625
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 625
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 626
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 626
PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 627
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 627
PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/poller.php on line 77
This warning is important ?

Thank you for your help.

FeatoFF
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Windows also has a nasty bug right now in 5.2.x where it attempts to detect the timezone, but in some eastern asian countries GMT+8 specifically, it does not and therefore all the times are wrong.

Pretty big feature in PHP that is not fixed till 5.3.x. Problem is that they are not including php-snmp in Windows in that version. Lack of support I think.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
miono
Posts: 11
Joined: Mon Jan 11, 2010 9:20 am
Location: Romania
Contact:

blank page

Post by miono »

I edited my php.ini timezone and error_reporting variable, restarted apache and all I get is a blank page in my browser at http://localhost/cacti ...and the following log in /etc/httpd/logs/error_log:

[Tue Jan 12 17:03:48 2010] [error] [client 10.31.16.90] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 866
[Tue Jan 12 17:03:48 2010] [error] [client 10.31.16.90] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 872
[Tue Jan 12 17:03:48 2010] [error] [client 10.31.16.90] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 1183
[Tue Jan 12 17:03:48 2010] [error] [client 10.31.16.90] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 1961
[Tue Jan 12 17:03:48 2010] [error] [client 10.31.16.90] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 3027
[Tue Jan 12 17:03:48 2010] [error] [client 10.31.16.90] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 3592
[Tue Jan 12 17:03:48 2010] [error] [client 10.31.16.90] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 3667
[Tue Jan 12 17:03:48 2010] [error] [client 10.31.16.90] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/cacti/lib/adodb/adodb.inc.php on line 3687
[Tue Jan 12 17:03:51 2010] [error] [client 10.31.16.90] File does not exist: /var/www/html/favicon.ico

Does anyone know what is the problem here?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests