Ad Widget

Collapse

upgrade to 2.2 - php error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aigars
    Member
    • Apr 2010
    • 55

    #1

    upgrade to 2.2 - php error

    Hi,

    I'm upgrading from 2.0.9 to 2.2. Source code compilation was successful however I can't connect to new web interface. In apache logs I see error:" PHP Fatal error: Call to undefined function andDbNode() in /var/www/api/classes/CUser.php on line 989".

    Zabbix is running on Debian 6 with PHP v5.3.X.
    Do I miss some packages?

    Thanks!
  • uweiss
    Junior Member
    • Jun 2006
    • 27

    #2
    Looks like it can't find a function.

    Sure you have updated the frontend correctly?

    I normally move the current one away, copy the new one, and copy back the config file.
    F.ex. with this one-liner on my CentOS box, executed within uncompressed zabbix package:
    Code:
    mv /var/www/html /var/www/html_$(date +"%Y%m%d") && mkdir /var/www/html && cp -r frontends/php/* /var/www/html/ && cp /var/www/html_$(date +"%Y%m%d")/conf/zabbix.conf.php /var/www/html/conf/

    Comment

    • aigars
      Member
      • Apr 2010
      • 55

      #3
      I fixed already with clean frontend copy.
      You are right and best is delete or move to different folder old frontend files only then copy new stuff.

      Comment

      Working...