Support » Plugin: YOP Poll » BAD REQUEST ERROR

Viewing 3 replies - 1 through 3 (of 3 total)
  • The fix: edit yop-poll/inc/yop_poll_model.php:

    Line 2415 (register_vote function) is:
    if($location!="page" && $location="widget"){
    but should be
    if($location!="page" && $location!="widget"){
    (notice the != instead of = in $location="widget")

    You can also put “request” in line 2416 instead of “reguest” while you’re in there.

    I just had the same problem: “bad reguest” when voting from the widget, while voting from a poll page worked fine, and I took a look at the source code and the revision history. 21 hours ago they released Version 4.9.3 (https://plugins.trac.wordpress.org/changeset/990106/) and that introduced the bug. They’ll probably fix it very soon themselves.

    Thread Starter hsr

    (@hsr)

    AMAZING!
    Thank you so much!!!

    Now it works!

    Just a missing “!” to spread panic! 😉

    Thread Starter hsr

    (@hsr)

    Resolved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BAD REQUEST ERROR’ is closed to new replies.