PDA

View Full Version : PHP Warning when updating an Action


joe
02-02-2005, 22:59
Alexei,

I get the following warning whenever I update an existing action:

[Action updated]

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/localhost/htdocs/zabbix/include/db.inc.php on line 140
maker.netacaddev.net TEST


The action is updated successfully, and it doesn't seem to break anything, but I wanted to let you know anyway.

joe

Alexei
03-02-2005, 19:59
I cannot reproduce it. Are you sure you have the latest database schema and the latest frontend files installed? Just a thought, perhaps you're missing table AUDIT...

joe
14-02-2005, 23:17
Alexei,

Yes, I am sure I am running the most current schema & frontend (I ran the update from 1.1a4 to 1.1a5, and there were no errors).

And yes, I do have an audit table..... there are currently 30 rows in it.

Here's an excerpt:

| 27 | 1 | 1107377948 | 1 | 5 | User [] when [1] subject [DN6509-1 Ping Check]

I also saw that this warning was confirmed by another user as well....
http://www.zabbix.com/forum/showthread.php?t=323 (3rd post, 3rd paragraph).

joe

Alexei
26-02-2005, 20:27
Fixed. Thanks for your report! ZABBIX 1.1alpha6 will report failed SQL statements in similar situtations for better debuging.