Log entry error

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Bombe
Posts: 15
Joined: Wed Apr 25, 2007 9:16 pm

Log entry error

Post by Bombe »

I found this in the log. You probably already know about it, but...

cacti beta installer, rolled back to php 5.2.0.

This showed when I rolled php back and still had cmd.php as the poller.


04/28/2007 03:15:01 AM - CMDPHP: Poller[0] ERROR: The PHP Script: CMD.PHP Must be started using the full path to the file and in lower case. This is a PHP Bug!!!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yea, its a logic bug in cmd.php. Need to edit line 49 and change it to (version_compare("5.2.0", PHP_VERSION, "<"))
csst01
Posts: 7
Joined: Tue May 01, 2007 9:04 am

Post by csst01 »

I cheated through it. In cmd.php AND script_server.php (PHP versions before 5) I changed line 51 from

if ($guess == strtoupper($guess)) {

to

if (strtolower($guess) == strtoupper($guess)) {

Basicly, when it compares the 2 strings, it'll put one in upper case and the other in lower case, so they'll never be the same, and you'll stop getting that error. I suppose you could just remove the whole "if". Line 49 was just like BSOD2600 said and still, I got the errors.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests