Announcement

Collapse
No announcement yet.

cannot search hostlist

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cannot search hostlist

    hi, when i try to search hosts, i get the following error.

    Code:
    Fatal error: Call to a member function query() on a non-object in /usr/local/oreon/www/include/configuration/configObject/host/listHost.php on line 33
    php-5.1.6-r6 running on gentoo

    Any idea whats going on ?

  • #2
    Cannot search hostlist

    If you're using oreon 1.3.3, there is a small bug in the php file.


    /usr/local/oreon/www/include/configuration/configObject/host/listHost.php

    in the given line. ($$DBRESULTDB in stead of $pearD

    Change this line into:
    $DBRESULT =& $pearDB->query("SELECT COUNT(*) FROM host WHERE host_name LIKE '%".htmlentities($search, ENT_QUOTES)."%' AND host_register = '1'");


    Best regards.

    Comment


    • #3
      Fixed, thnx

      Comment

      Working...
      X