Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#217 ERROR: $number_sensors_array is NOT an array!

open
nobody
Interface (166)
5
2009-06-29
2009-06-29
PoGo
No

Hello !
I'm using BASE with archive database (BASE 1.4.3.1 (zig))
When I try to look at Most frequent 15 Addresses source or destination, those error message show up :
/usr/share/base-1.4.3.1/includes/base_cache.inc.php:556: ERROR: $number_sensors_array is NOT an array!
/usr/share/base-1.4.3.1/includes/base_cache.inc.php:564: ERROR: $number_sensors_array is either NULL or empty!

When BASE is not using the Archive database, it works. And the other requests with archive database work too.
I looked at the code and tryied to submit the SQL request on the archive database and it works, I've got the good array.

Thanks in advance.

Discussion

  • PoGo
    PoGo
    2009-07-16

    Anyone ?

     
  • This happens here also. I switched the data base connection method "$db_connect_method = 2" to "$db_connect_method = 1" and the problem disapears

     
  • Kevin Branch
    Kevin Branch
    2010-02-25

    I have this same problem with BASE 1.4.4. Changing my $db_connect_method from 2 (persistent) to 1 (normal) does indeed make the source address, destination address, and unique IP links options work for the first time when in the Archive Database. However the side effect is that when I switch back to the Alert Database, all the numeric counters on the left side of the top level page starting with the "Sensors/Total" are blank (not zero). No errors appear but there is no data to be seen. Any ideas on how we might debug this issue? The only way to get my Alert Database data back is to undo the $db_connect_method fix.

     

  • Anonymous
    2011-02-18

    Solved by this :
    Change in file base/includes/base_state_citems.inc.php
    From:
    $this->criteria = array(0 => '', 1 => '');
    To:
    $this->criteria = array(0 => NULL, 1 => NULL);