Look lke some where in item_db.conf you have bonus command with unknown constant. All unknown constants works as player var, and because this var was never set, it return 0.
How quickly detect this command with wrong constant? Try use each item with your modifications, and see in server console if it show error. If you get error, script for this item is wrong.
Also your bad script like look like this:
bonus SOMECONSTANT, 10;
where SOMECONSTANT your wrong constant name