And the WebLogin snippet is positioned after the polls in the page? Can you give me the full WebLogin call?
-
MODX Staff
- 1,535 Posts
I’m looking into this - I’m not really sure why there should be a conflict at the moment. Seems that the POST values are crossing somewhere along the line ... strange!
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
Hello While using polls I am getting following error
Fatal error: Cannot redeclare userip() (previously declared in e:\AppServ\www\modx9\manager\includes\document.parser.class.inc.php(748) : eval()’d code:176) in
Why this is happending?
THanks
Jinendra
-
MODX Staff
- 1,535 Posts
Hi brutemoon,
Looks like you either have two polls being called on the same page or another snippet that uses a function called ’userip’. Anyway, I’ve patched the poll voting snippet and attached to this thread (until I get the main package updated) - it should solve the issue for you.
Cheers,
Garry
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
Hello Gary,
Thanks for your great suport.
Script is working great.
Thanks
Jinendra
Any chance someone can explain how to install this poll snippet, I installed the two snippets that come with the zip but I’ve never installed a module before and got an error when I tried to install it
« Execution of a query to the database failed - You have an error in your SQL syntax near ’; ’ at line 8 »
SQL: CREATE TABLE IF NOT EXISTS `modx_polls` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) default NULL, `question` varchar(255) default NULL, `votes` int(11) default ’0’, PRIMARY KEY (`id`) );