Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

polls are not working #25

Closed
matimalsub opened this Issue Jan 23, 2011 · 4 comments

Comments

Projects
None yet
2 participants
Contributor

matimalsub commented Jan 23, 2011

fresh 4.7.1 installation (and in demo.saurus.ee too) - votes cannot be saved, poll archive not visible

Owner

sauruscms commented Jan 24, 2011

This is because the template definitions are missing from database. Run these queries:
INSERT INTO templ_tyyp (ttyyp_id, op, nimi, templ_fail, on_nahtav, on_auto_avanev, sst_id, on_page_templ, is_readonly, is_default) VALUES (30, 'vote', 'Poll', 'templ_poll.php', '0', 1, 0, '0', 1, 0);
INSERT INTO templ_tyyp (ttyyp_id, op, nimi, templ_fail, on_nahtav, on_auto_avanev, sst_id, on_page_templ, is_readonly, is_default) VALUES (38, 'gallup_arhiiv', 'Poll archive', 'templ_pollarchive.php', '0', 1, 0, '0', 1, 0);

Contributor

matimalsub commented Jan 25, 2011

ran the queries - polls are now working, but incorrectly - votes are saved after second submit (using GET), and by refreshing the long url that appears after the first save it is possible to vote indefinitely.
Configuration setting "Prevent multiple votes" is set to "based on cookies"

Polls archive doesn't display bars, because files px/gallup_bar1.gif etc are missing in the installation package.

PS polls in demo.saurus.ee are not working also

Contributor

matimalsub commented Jan 28, 2011

got it working - steps required in addition to the SQL queries above are:

Owner

sauruscms commented Feb 1, 2011

Code fix in: 9adda7d

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment