WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls not opening/closing polls at set time (22 posts)

  1. tripleX2k7
    Member
    Posted 6 years ago #

    Hi
    I use WP-Polls to run a weekly poll on my website http://www.bwfcuk.com and I set it to open the polls at midnight on Sunday and close them at midnight on Friday, but after working for a couple of weeks, it is now requiring me to manually open/close the polls, and won't open them itself.

    I am using WordPress 2.2.1 and WP-Polls 2.20 . Also, does anyone know if I have to change everything again if I upgrade the plugin version or does it keep my settings (including css)?

  2. Lester Chan
    Member
    Posted 6 years ago #

    I think I remember this problem before but apparently there is nothing wrong with the script as it works fine without any problem on my localhost. It maybe that your server is blocking any cron request by WordPress and that is what happen to me.

  3. tripleX2k7
    Member
    Posted 6 years ago #

    Ok, do you know how to unblock the cron request? Also, scheduled posts work fine, I don't know if that is related or not. Thanks.

  4. Lester Chan
    Member
    Posted 6 years ago #

    Hmm, I tested and it works fine for me but I am using WP 2.3 and WP-Polls 2.21

  5. tripleX2k7
    Member
    Posted 6 years ago #

    Ooh, just noticed that my WP-Polls time is 1 hour fast, but my WordPress time is correct. Weird - how can I change it?

  6. Lester Chan
    Member
    Posted 6 years ago #

    huh?

  7. tripleX2k7
    Member
    Posted 6 years ago #

    The time zone in my WordPress settings is correct (GMT) but when testing I realised that WP-Polls time was GMT+1. This may have been causing my earlier problem, or it may be another effect of the same problem.

    Any idea how to fix it?

  8. Lester Chan
    Member
    Posted 6 years ago #

    that is weird, but wp-polls get the date from your wordpress settings. Can you check if your server settings is on GMT+1?

  9. ajg
    Member
    Posted 6 years ago #

    BTW, this problem is still not resolved.
    Like tripleX2k7 mentioned, scheduled posts work fine but WP-Polls is absolutely clueless abut the time and date.

    WP version 2.3.3
    WP-Polls 2.21

  10. Lester Chan
    Member
    Posted 6 years ago #

    I can't reproduce it on my local server and my developement server. I am on GMT+8.

  11. tripleX2k7
    Member
    Posted 6 years ago #

    I still haven't solved this problem!

  12. Lester Chan
    Member
    Posted 6 years ago #

    No idea whether does it work. But do give it a try.

    Open up polls.php:

    Find:
    wp_schedule_event(time(), 'daily', 'polls_cron');

    Replace:
    wp_schedule_event(current_time('timestamp'), 'daily', 'polls_cron');

    In this way it will be based on your WP timing. Let me know if it works.

  13. riger99
    Member
    Posted 6 years ago #

    Hello!
    I have the same issue with the poll timing (so will try you solution). I have a more serious (I think) issue. Poll archives are not displaying! They just show an empty directory. Anyone know how to fix this?
    Thanks!

  14. riger99
    Member
    Posted 6 years ago #

    Update for anyone! DO NOT create a "pollsarchive" directory or the polls archives will display a blank directory. ;)

  15. Lester Chan
    Member
    Posted 6 years ago #

    huh? Why you create the directory? Did you read the readme.html under Usage Tab?

    It say create a page with the slug "pollsarchive" not a directory

  16. Thisisguernsey
    Member
    Posted 6 years ago #

    I've got the same issue with an old poll not expiring and a new one not being activated - I set the old one to expire at 10.59am and the new one to start at 11am. Currently its three hours later and the new poll has not been made active.

    I can't even expire the old poll manually, now - clicking the 'close' button on the edit screen does nothing.

    Another problem - I've got an old poll sitting around that didn't go live that I want to delete - but, again, clicking the 'delete' button has no effect.

    And on top of all that, I've just created a Poll archive page, as per the instructions, and it's not showing any old polls at all, just the 'live' one!

  17. Lester Chan
    Member
    Posted 6 years ago #

    The cron issue maybe a generic wordpress cron issue as I have been looking around this forum and some user cannot get the cron to work to publish future post. You need to check your server log to see if any cron is called to wp-cron.php.

    If you are unable to delete a poll, it is due to a bug in 2.21, it should be fixed in 2.30

  18. tripleX2k7
    Member
    Posted 6 years ago #

    Hi
    I posted this problem originally about 6 months ago and since then I have moved hosts and upgraded to WordPress 2.5.1 but I still have the same problem.

    Anyone know a solution?
    Thanks :)

  19. Lester Chan
    Member
    Posted 6 years ago #

    This is the reply from one of my users

    > Lester,
    >
    > You may remember I contacted you a few weeks ago to report a problem
    > with your WP Polls plugin. To refresh you memory, I'm using your plugin
    > for a "Weekly Poll" on my website at cnyradio.com. The polls are
    > supposed to change out (old one expires and new one begins) at midnight
    > on Sunday night/Monday morning. For several weeks, the change wasn't
    > happening like it was supposed to -- and as a result, I would have to
    > login to manually close the old poll, and open the new one. You had
    > suggested it might be a problem with wp-cron, even though all of my
    > pre-dated posts were appearing right on time as scheduled.
    >
    > Well, I think I've got it solved. Last week, I forgot to keep an eye on
    > this until well after midnight. It was a little after 1:00am Monday
    > when I got online, and realized -- the old poll had closed itself down.
    > Since I had forgotten to set up a new poll, the widget said there were
    > no polls available at this time. I started thinking -- WordPress never
    > updated itself automatically for daylight savings time. I had to
    > manually set it an hour ahead when the time changed in March. Even
    > though WordPress has the right time, I wondered if the Polls plugin was
    > still running on "standard" time.
    >
    > So this week, I set the polls to open/close at 11pm Sunday, instead of
    > 12:00am Monday. And sure enough, they changed at midnight! So for some
    > reason, the WP Polls plugin seems to have stayed on "Standard" time,
    > even though WordPress was adjusted for "Daylight Savings" time. I'm not
    > sure if this is an error in WP Polls, or in the WordPress core files
    > (ie. wp-cron) -- as this all just happened a short time ago, and haven't
    > had a chance to investigate further. Maybe WP-Polls is getting the
    > times from the server, and not WordPress? Either way, I thought you'd
    > be interested in knowing. There's "something" going on with time zones
    > and daylight savings, but I'm not quite sure where the root of the
    > problem lies. I hope that helps!

  20. kernow
    Member
    Posted 6 years ago #

    Remaining with the polls, which is a great plugin by the way. I've had a problem where if I select the multiple choice option on a poll, is still only allows the selection of one. Is there a setting I can change to remedy this?

  21. Lester Chan
    Member
    Posted 6 years ago #

    Hi kernow, did you try restoring all the templates to default in wp-admin -> polls -> polls templates

  22. kernow
    Member
    Posted 6 years ago #

    That has worked thanks. Have recently moved my site to a new server so hoping things will run better still. A few additions planned so see how it works out.

Topic Closed

This topic has been closed to new replies.

About this Topic