lesterchan / wp-polls

Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
https://wordpress.org/plugins/wp-polls/
91 stars 78 forks source link

Can't create poll with "Do NOT Expire This Poll" selection checked #122

Closed jmaekki closed 5 years ago

jmaekki commented 5 years ago

I can't create poll with Do NOT Expire This Poll selection checked, I get the following error: WordPress database error `Incorrect integer value: '' for column 'pollq_expiry' at row 1 for query INSERT INTO `wp_pollsq` (`pollq_question`, `pollq_timestamp`, `pollq_totalvotes`, `pollq_active`, `pollq_expiry`, `pollq_multiple`, `pollq_totalvoters`) VALUES ('This is test question', '1545316518', 0, 1, '', 0, 0)`.

Also, in plugins/wp-polls/polls-add.php at row 82, I get Undefined variable: text.

lesterchan commented 5 years ago

Fixed! try replacing polls-add.php with https://raw.githubusercontent.com/lesterchan/wp-polls/master/polls-add.php

jmaekki commented 5 years ago

Thanks, it works 👍

lesterchan commented 5 years ago

Thanks, I have release the update which fixes it already =)