Error : Uninitialized string offset

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
bio777
Posts: 16
Joined: Fri Mar 17, 2006 6:16 am

Error : Uninitialized string offset

Post by bio777 »

I get this message when trying to view the graph under the Thold lpugin tab

Code: Select all

[b]Uninitialized string offset: 1 in /var/www/cacti/lib/functions.php on line 1754[/b]
Any idea's ?

Running cacti v0.8.7e + Spine v0.8.7e + PA v2.6 + Thold v0.4.1 + Settings v0.5 + Discovery v0.8.5 + Update v0.4 + Monitor v0.8.2

regarsd
bio..
khm
Posts: 25
Joined: Fri Jul 14, 2006 3:57 am

Post by khm »

I have got the same problem!
Does anybody knows an answer for this problem?

Best regards
[quote][b]Cacti Version[/b] - 0.8.7e
[b]Plugin Architecture[/b] - 2.6
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.31-14-server
[b]Web Server[/b] - Apache/2.2.12 (Ubuntu)
[b]PHP[/b] - 5.2.10-2ubuntu6.4
[b]MySQL[/b] - 5.1.37-1ubuntu5.1
[b]RRDTool[/b] - 1.3.1
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.6)
Thresholds (thold - v0.4.1)
PHP Network Weathermap (weathermap - v0.97)
Device Tracking (mactrack - v1.1)
Network Discovery (discovery - v0.9)
Host Info (hostinfo - v0.2)
SuperLinks (superlinks - v0.8)
Documents (docs - v0.2)
Cycle Graphs (Cycle Graphs - v0.7)[/list][/quote]
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to post those lines from lib/functions.php. Thanks.

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?
khm
Posts: 25
Joined: Fri Jul 14, 2006 3:57 am

Post by khm »

}elseif (!empty($nav_level_cache{$i}["url"])) {
[quote][b]Cacti Version[/b] - 0.8.7e
[b]Plugin Architecture[/b] - 2.6
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.31-14-server
[b]Web Server[/b] - Apache/2.2.12 (Ubuntu)
[b]PHP[/b] - 5.2.10-2ubuntu6.4
[b]MySQL[/b] - 5.1.37-1ubuntu5.1
[b]RRDTool[/b] - 1.3.1
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.6)
Thresholds (thold - v0.4.1)
PHP Network Weathermap (weathermap - v0.97)
Device Tracking (mactrack - v1.1)
Network Discovery (discovery - v0.9)
Host Info (hostinfo - v0.2)
SuperLinks (superlinks - v0.8)
Documents (docs - v0.2)
Cycle Graphs (Cycle Graphs - v0.7)[/list][/quote]
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you change from empty to isset. Let me know if that fixes it. Also open a bug report when done.

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?
khm
Posts: 25
Joined: Fri Jul 14, 2006 3:57 am

Post by khm »

I changed empty to isset.

Now following errors appear:

Notice: Uninitialized string offset: 1 in /var/www/cacti/lib/functions.php on line 1754

Notice: Uninitialized string offset: 1 in /var/www/cacti/lib/functions.php on line 1756

Fatal error: Cannot use string offset as an array in /var/www/cacti/lib/functions.php on line 1756
[quote][b]Cacti Version[/b] - 0.8.7e
[b]Plugin Architecture[/b] - 2.6
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.31-14-server
[b]Web Server[/b] - Apache/2.2.12 (Ubuntu)
[b]PHP[/b] - 5.2.10-2ubuntu6.4
[b]MySQL[/b] - 5.1.37-1ubuntu5.1
[b]RRDTool[/b] - 1.3.1
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.6)
Thresholds (thold - v0.4.1)
PHP Network Weathermap (weathermap - v0.97)
Device Tracking (mactrack - v1.1)
Network Discovery (discovery - v0.9)
Host Info (hostinfo - v0.2)
SuperLinks (superlinks - v0.8)
Documents (docs - v0.2)
Cycle Graphs (Cycle Graphs - v0.7)[/list][/quote]
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Has to be a plugin issue.

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?
crazy_90
Posts: 3
Joined: Sun May 30, 2010 11:54 am

Post by crazy_90 »

Thank you so much for your understanding, and I apologies if I disturbed you :[


______________
dvd replication
contract warehousing
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests