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

    This sounds like the built in wp-cron process that WordPress provides to run scheduled jobs isn’t working properly. You can see what processes are scheduled using a plugin like Advanced Cron Manager: https://www.ads-software.com/support/plugin/advanced-cron-manager

    Advanced Cron Manager will get you “under the hood” with regards to wp-cron, to see what’s going on, while still being fairly easy to use.

    Once you load it, you should see a lot of events scheduled, and one of them should be ai1ec_cron. In the “Execution Time” column, you should see a specific time. If it says something like “On next page load” then wp-cron may not be running properly.

    Thread Starter Early Bird in PA

    (@early-bird-in-pa)

    Benjamin, thank you so much for getting back to me so quickly.

    I just was working on the issue overnight. I found a comment in one of the blogs, where a gentleman describes that the All-in-One-Calendar doesn’t deal well with reoccurring events that are fed into the calendar.
    I can verify this.
    I was able to initially import my outlook.com calendar (Windows live) into All-in-One Calendar, but every refresh would fail. Based on the blog I’ve found, I just gave it a try.
    Yes, as soon as I took out the reoccurring events in outlook (copied them into each day as a single all-event) the ics feed with refresh worked just perfectly.

    Ok, half of my problem (refresh button circles forever) is solved by this workaround. Although, I would say this is a bug in 2.2.1.

    The other half of my problem is still there: not automatically updating with the specified interval. I will look into the Cron Manager and will post what I find out.

    Thanks, Benjamin.

    Thread Starter Early Bird in PA

    (@early-bird-in-pa)

    Benjamin, it is how you already suspected:
    Next execution for a1ec_cron says “At next page refresh”.

    What do I do now? Could you please advice?
    Thank you.

    My guess is this is an issue specific to Outlook. We don’t always get along with them. Can you try routing it through a Google Calendar?

    Did you try manually triggering the cron to see if they import?

    Thread Starter Early Bird in PA

    (@early-bird-in-pa)

    Thanks, Jeffrey, for your support.

    Answer to your first question: this is what I came from. Google Calendar doesn’t sync with my Outlook.com Calendar anymore. I had this running for years…. not working anymore. So I was searching for another way to do it and came across this plugin. I like it and I would like to use it.

    Second question: Yes, I am able to manually trigger the hook with “execute”. It works fine. Can you help me to set up the cron manager the way, it does do the job by itself?

    Thanks.

    It seems that WP’s inbuilt cron system isn’t spawning tasks for your setup. Please ask your host support to set up a scheduled task that spawns the wp-cron task for you using whatever method is suitable for their hosting setup (some may have options in their control panel, some may need to do it via the shell).

    Thread Starter Early Bird in PA

    (@early-bird-in-pa)

    Thanks again. I feel we are getting closer.

    I did set up a scheduled task myself on my host. I disabled wp-cron.php in wp-config.php and then added a cron job to crontab that way:
    */1 * * * * /usr/local/bin/php5 /kunden/homepages/36/xxxxxxxxx/xxx/xxxxx/STESchoolCalendar/wp-cron.php

    I have set it to every minute for testing purposes.

    This is the output (emailed to me):
    All-in-One Event Calendar: Undefined index: SCRIPT_NAME @ /homepages/36/xxxxxxxxx/xxx/xxxxx/STESchoolCalendar/wp-content/plugins/all-in-one-event-calendar/app/controller/front.php:500 #8
    X-Powered-By: PHP/5.2.17
    Content-type: text/html

    Now I am stuck again, but I might be close to getting this running. Can you help me again? I very much appreciate it.
    Thank you.

    Thread Starter Early Bird in PA

    (@early-bird-in-pa)

    Well, even with above error message in the cron message, everything is working now.

    Summary:
    1) I am not able to sync reoccurring events from Outlook.com calendar – had to change them into single events

    2) wp_cron.php needed to be disabled and the cron job needed to be initiated via crontab on the web server (outside of wordpress).

    Thanks for everyone’s help.

    No problem, I am glad your problem is solved.

    Take care,
    Ben

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘refresh doesn't work’ is closed to new replies.