Gargaj / wuhu

Lightweight Party Management System

Home Page:http://wuhu.function.hu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Votekey generation fails on insertion to database

argasek opened this issue · comments

Hi,

After clicking 'Generate new!' I get:

Fatal error: Uncaught exception 'Exception' with message '<pre> MySQL ERROR: Query: insert votekeys (`votekey`) values ('RWXTTLYBPL')
Error: Field 'userid' doesn't have a default value' in /Users/argasek/Sites/www_admin/sqllib.inc.php:23
Stack trace:
#0 /Users/argasek/Sites/www_admin/sqllib.inc.php(61): SQLLib::Query('insert votekeys...')
#1 /Users/argasek/Sites/www_admin/votekeys.php(16): SQLLib::InsertRow('votekeys', Array)
#2 {main} thrown in /Users/argasek/Sites/www_admin/sqllib.inc.php on line 23

Odd, I'll look into it.

Out of curiousity, what DB are you using?
Because here it works, even though I can see now that it shouldn't :D
img

Thanks. Will provide details as soon as I get home. :)

argasek@lorelai ~ $ mysql --version
mysql  Ver 14.14 Distrib 5.6.22, for osx10.9 (x86_64) using  EditLine wrapper
argasek@lorelai ~ $ php --version
PHP 5.4.40 (cli) (built: May  3 2015 22:07:42) 

Hm, might be the 5.6-ness. I'll fix it in a second.

(You might need to manually update your database.)

Awesome. Will test in the evening. Thank you! :)