Home › Forums › Calendar Products › Event Aggregator › Events Aggregator only pulls dates older than today. No future events
- This topic has 16 replies, 2 voices, and was last updated 8 years, 5 months ago by
Stephen Hoffer.
-
AuthorPosts
-
October 26, 2017 at 10:16 am #1369430
Stephen Hoffer
ParticipantAs of today, our events aggregator only pulls in old dates.
We are using other URL to pull form our Multi-site. It used to work, but now it does not.We did a test by creating a new event in the future on a different site within our multi site…but it does not pull it in.
It is as if there is a >= to today’s date that has been reversed.
Please help us figure this out, or it is worthless.
October 26, 2017 at 10:18 am #1369433Stephen Hoffer
ParticipantQuick addition:
We have tried on demand and scheduled.When you do a preview…even the preview shows older than today events.
October 27, 2017 at 10:29 am #1370268Andras
KeymasterHey Stephen,
Thanks for reaching out!
I’m really sorry about the import issues. Let me try to help you with this.
If I understand correctly you are trying to import data from another website that has The Events Calendar.
Could you please share:
- the url of the source website
- the url of the feed that you are trying to import
- 2-3 sample events that get pulled and 2-3 that do not get pulled
I would like to run some tests to see what’s happening.
Thanks,
AndrasOctober 28, 2017 at 11:47 am #1370800Stephen Hoffer
ParticipantSee in blue below
October 28, 2017 at 6:43 pm #1370881Stephen Hoffer
ParticipantI replied via email with information, but do not see the details in my reply post above.
Did it actually come through? But it is not showing?-
This reply was modified 8 years, 6 months ago by
Stephen Hoffer.
October 30, 2017 at 4:05 am #1371268Andras
KeymasterHi Stephen,
Thanks for your reply.
Unfortunately some things, like screenshots are lost in the matrix when they come via the email train. Sorry about that.
To share screenshots, please log in to our forums and upload them there.
Sorry about this inconvenience and thanks,
AndrasOctober 30, 2017 at 5:04 am #1371287Stephen Hoffer
Participantthe url of the source website
the url of the feed that you are trying to import
https://rinkfinder.net/burnsvilleicecenter/events/
This is the pull of data from burnsville. Every date is old
2017-09-20
7:00 AM
2017-09-20
Ice for Sale2017-10-14
6:10 PM
2017-10-14
Ice For Sale2017-10-14
7:20 PM
2017-10-14
Ice For Sale2017-10-14
8:30 PM
2017-10-14
Ice For Sale2017-10-15
10:40 AM
2017-10-15
Ice For Sale2017-10-16
6:00 PM
2017-10-16
Ice For Sale2017-10-17
7:10 PM
2017-10-17
Ice For Sale2017-10-18
7:40 PM
2017-10-18
Ice For SaleHere are the events that actually exist on the URL source:
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
Burnsville Ice Center — — November 20 7:40 pm November 20 7:40 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
Burnsville Ice Center — — November 19 7:10 pm November 19 7:10 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
Burnsville Ice Center — — November 18 6:00 pm November 18 6:00 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
Burnsville Ice Center — — November 17 10:40 am November 17 10:40 am
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
Burnsville Ice Center — — November 16 8:30 pm November 16 8:30 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
Burnsville Ice Center — — November 15 7:20 pm November 15 7:20 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
Burnsville Ice Center — — November 14 6:10 pm November 14 6:10 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
Burnsville Ice Center — — October 18 7:40 pm October 18 7:40 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
— — October 17 7:10 pm October 17 7:10 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
— — October 16 6:00 pm October 16 6:00 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
— — October 15 10:40 am October 15 10:40 am
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
— — October 14 8:30 pm October 14 8:30 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
— — October 14 7:20 pm October 14 7:20 pm
Select Ice For Sale
“Ice For Sale” is locked
Ice For Sale
Edit | Quick Edit | Hide & Ignore | View
— — October 14 6:10 pm October 14 6:10 pm
Select Ice for Sale
“Ice for Sale” is locked
Ice for Sale
Edit | Quick Edit | Trash | View
ITF Arena Burnsville Ice Center — — September 20 7:00 am September 20 8:00 amOctober 31, 2017 at 3:54 am #1371988Andras
KeymasterHi Stepphen,
I did a test import of the url and it imported future events for me.
I’d like to ask you to check 2 things and send me a screenshot:
1) How is the import set up? Go to Events > Imports > Scheduled imports and click on edit.
I just checked mine and a starting date was filled in. (screenshot) I also checked, the date cannot be removed, but can be changed to a new date. I will check whether it is intentional that you cannot leave it empty.
2) Go to Events > Settings > Imports tab and check your import limitation settings. (screenshot)
This is a new option we recently have introduced. You might need to adjust this.
Let me know what you find.
Cheers,
AndrasNovember 1, 2017 at 11:32 am #1373106Stephen Hoffer
ParticipantThanks Andras,
We did have a date listed and date range Three Months.
We are doing tests, but think there have been conflicts around the source URL having events in the Trash or tribe-ignored.
We are using the tribe_get_events() in a script to delete everything off of our main site on a multisite.
This appears to work,but only after we run the script multiple times. If we only run it once, it leaves some of the tribe events as Published. This SEEMS to take care of whatever caused the old dates to be loading.
This does not make sense, but so far it seems to eliminate old events from being aggregated to the main site.
From a source URL, we have seen loads that correctly import most, except for some duplication. We have 8 line items and end up with 9 [ 1 duplicate].
This is where we think the trash or tribe-ignored is the issue. We tried to set the site at wp-config,php to bypass trash, but this appears to not affect the tribe-ignored post-types.
We are running more tests as we speak. I can post updates later today or tomorrow on what worked or didn’t
November 2, 2017 at 9:16 am #1373819Stephen Hoffer
ParticipantOK…we have to run the script including the tribe_get_events() to delete all events and it works. For some reason running it once does not clear all in one run.)
Is there a tribe function that we can use to run a scheduled import on demand?
November 2, 2017 at 2:56 pm #1374167Andras
KeymasterHi Stephen,
Thanks for sharing all the info. I’m happy to hear you managed to find a solution for this.
Not sure why some events are left there after a run.
We tried to set the site at wp-config,php to bypass trash, but this appears to not affect the tribe-ignored post-types.
The ‘tribe-ignored’ is not a trash item but rather a custom post type status, so that is why it was not affected.
Is there a tribe function that we can use to run a scheduled import on demand?
No, we don’t have a function for that. Sorry for saying, but I find it funny running a ‘scheduled’ import ‘on demand’.
You can have a scheduled import which will then try to automatically run hourly, daily, weekly, etc. whatever your setting is.
One of the settings for a scheduled import is ‘on demand’. (screenshot)
If you set up the schedule import like that it will only run if you click on ‘Run import’ on the Scheduled Imports page. (screenshot) By the way, you can manually trigger every scheduled import like that, not only the ‘on demand’ ones.
Does this help?
Cheers,
AndrasNovember 2, 2017 at 8:50 pm #1374370Stephen Hoffer
ParticipantYes, that is funny. I Mistyped…I meant to say “is there a function to run an import, for example, we set up an on demand import, then use a cron job to trigger it.”
We found the way to correctly set code to delete all events.
But we are
Now struggling with scheduling very specific times when we want to run the imports.Any hints to code would be helpful.
November 3, 2017 at 1:49 am #1374464Andras
KeymasterThanks for the clarification Stephen.
I will need to check if that is possible.
Please don’t mind me asking, why do you need very specific times to run the import? Wouldn’t the hourly, daily or weekly work out for you?
Would love to get some insight on this to see if this would be something to implement.
Thanks and cheers,
AndrasNovember 3, 2017 at 8:53 am #1374689Stephen Hoffer
ParticipantThanks Andras,
We have many changes, or adds and deletes, on subsites on our multi-site, to events. This means we have to delete all events that have been aggregated, and reimport/aggegate events at least daily.
This is driven by the various habits of each user on the multisite.
We need to ensure that the job runs at the most opportune time on a strict schedule. This schedule may have to be modified as the usage grows.
We cannot rely on a user coming in to trigger the wp-cron or Modern_tribe cron. This is why we are exploring using a OS cron job to trigger actions.
We are struggling with standardizing this schedule and having successful import.
We do have a daily schedule and change the time it does not seem to run. Is there some delay before a scheduled import runs?
We can close the delete issue. Would you like to transfer this reply to a new thread and consider the “delete” issue closed?
November 6, 2017 at 2:14 pm #1376465Andras
KeymasterHello Stephen,
I had discussions with some of our EA gurus. Unfortunately it is not possible to do with the current codebase.
If you would like to have a feature like this, e.x. being able to set up an ‘advanced schedule’ for when an import is run (5am on Monday, 2pm on Tuesday etc. ), then I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.
We cannot rely on a user coming in to trigger the wp-cron
Setting up a real cron can help with this. Your hosting provider should be able to give you info on or help with this, as this is outside WordPress.
Hope this helps. Let me know if you have any further questions.
Cheers,
Andras -
AuthorPosts
- The topic ‘Events Aggregator only pulls dates older than today. No future events’ is closed to new replies.
