• Resolved roarkh

    (@roarkh)


    I have been testing the All-In-One Event Calendar plug-in and it works great for me with one exception. I have five calendar feeds configured, each one has its events assigned to a different category. When I added the feeds initially everything worked great.

    The problem is that I have set up the feeds to refresh automatically every hour but the feeds do not seem to refresh themselves. The only way I can get the feeds to refresh is to click on each one individually and manually click the “Refresh” button.

    I’m wondering if anyone can give me an idea as to why the automatic updating of calendar feeds is not working.

    Thanks in advance.

    https://wordpress.org/plugins/all-in-one-event-calendar/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    Please install “Advanced Cron Manager” plugin and check what processes are scheduled(Dashboard > Tools > Cron Manager). The task that updates the feeds in Ai1ec is called ai1ec_cron. Check what time Advanced Cron Manager says it will run it.

    Thread Starter roarkh

    (@roarkh)

    I installed the plug-in and found the job named ai1ec_cron, under the schedule column it says hourly, but under execution it says “At next page refresh”. Is that normal or is that in indication something is wrong? There are a number of other jobs listed there and all of them say “At next page refresh”.

    If it says “At next page refresh”, it means that it does not work. If you use cPanel, you can set up a scheduled task that spawns the wp-cron task. The following guide should help: https://support.hostgator.com/articles/specialized-help/technical/wordpress/how-to-replace-wordpress-cron-with-a-real-cron-job

    Thread Starter roarkh

    (@roarkh)

    Thanks for your help, I will take a look at the link. This site is running on a webserver running Gentoo Linux rather than cPanel so I’m not sure if the instructions will help but at least it’s a good place to start.

    Maybe this article can help with Linux cron: https://easyengine.io/tutorials/wordpress/wp-cron-crontab/

    Thread Starter roarkh

    (@roarkh)

    I really appreciate your help with this, you are going above and beyond the call of duty. I read over the article you posted and followed the instructions in there. Basically I added define(‘DISABLE_WP_CRON’, true); to wp_config.php and then created an executable file in /etc/cron.hourly to call wp-cron.php once per hour. I verified in my logs that the file is being run but the calendar still did not update, at least not when I expected it to.

    However something has changed because when I log into the site and go to tools->cron manager now all of the wp hooks (wp_version_check, wp_update_plugins, wp_update_themes, wp_scheduled_delete and wp_scheduled_auto_draft_delete) show when they are going to execute next where before they said “At next page refresh” but the hook, ai1ec_cron still says it’s scheduled Hourly but the next execution still says “At next page refresh”.

    I’m not quite sure what I’m missing here.

    Thread Starter roarkh

    (@roarkh)

    So, I did a bit more testing and now it looks like I just didn’t wait quite long enough for the calendar to refresh itself. I’ve added a couple more events and the calendar does now seem to be refreshing as it should be so all appears to be good. Thanks again for all your help and for providing such an excellent plug-in.

    No problem, glad I could help 😉

    If you’re enjoying your calendar can you please review us on WordPress.org to help others connect easier into your and our Time.ly network? Review form can be found here: https://wordpress.org/support/view/plugin-reviews/all-in-one-event-calendar?filter=5#postform

    Thank you for your time. We appreciate it!
    Ben

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Refreshing Calendar Feeds Automatically’ is closed to new replies.