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/
93 stars 78 forks source link

Voting on iPhones does not work #75

Closed albi closed 8 years ago

albi commented 8 years ago

Hi there,

got a poll running. Everything is working fine, but not on iPhones. If I try to vote there, nothing is counted, the page reloads and the poll is shown again (logging is set to username).

Had a look at the action that is performed when the form is submitted. It says “/index.php”, but my homepage template is set to page-home.php. Maybe this could be the problem, but why is it working on desktop browsers (Safari, Chrome, Firefox etc.).

Kind regards Alex

lesterchan commented 8 years ago

I am not sure, there can be many things Themes, plugins conflict. I don't think you will get any answer here. Maybe you can try posting on the WP Support Forums.

Check your site for JS errors. If it does not work on one browser, but work on the rest, most likely it is an JS issue.

If that is done, I would suggest changing to the default theme and deactivate all other plugins to see if it works in the first place.

Good luck.

albi commented 8 years ago

Lester you were right! I've setup a test scenario with a fresh Wordpress without any other plugins. Since I did not have any Javascript errors on the iPhone with the poll that was not working. After setting up a fresh Wordpress install, I've installed WP-Polls and made the same settings one by one like they are set in the problem-poll. That led me to the templates part of WP-Polls. Some tests later I've seen that my submit button was a normal input type="submit" instead of type="button". I did not know that this could be a problem, because the onclick was the same. But for now I've reverted the type of the input field to button and everything is working as expected.