Home › Forums › Calendar Products › Events Calendar PRO › Deleting events and importing events
- This topic has 10 replies, 2 voices, and was last updated 8 years, 7 months ago by
James Powell.
-
AuthorPosts
-
August 6, 2017 at 10:26 am #1331400
James Powell
ParticipantI’m importing events from an ical link with the events aggregator. There were some issues with how the data was being output so I decided to start again. I deleted all the events and moved them to the trash but when I come to re-import the data it insists they’re all still there and only updates rather than putting them back in.
What can I do to solve this?
August 8, 2017 at 3:31 am #1331999James Powell
ParticipantAnybody?
August 8, 2017 at 1:59 pm #1332445Patricia
MemberHey James,
Thank you for reaching out to us! Please accept our sincere apologies for the delayed response.
Can you please share with us in a private reply the ical link you are using to import your events? This way I can try to replicate the issue you are experiencing from here and help you to solve this problem.
Thanks!
Patricia
August 11, 2017 at 9:46 am #1334161James Powell
ParticipantThis reply is private.
August 11, 2017 at 4:26 pm #1334290Patricia
MemberThis reply is private.
August 13, 2017 at 4:11 am #1334667James Powell
ParticipantHi,
Thanks for the reply but I don’t see any of those options?
I’d previously been in and cleared out the database would this have impacted on this?
Would it be easier to just double check the database is clear – could you let me know exactly what files need to be deleted and I’ll remove the plugins and start again 🙂
August 14, 2017 at 8:30 am #1334989Patricia
MemberHi James,
That is a strange behavior: if you deleted all of your events, they should have disappeared from trash (Ignored) as well (so in that case your initial problem would be solved at this point).
Regarding your question, you can remove your events directly from the database, but please, bear in mind that you’ll have to backup your database before you do this. Also, please understand that you are doing this at your own risk, we don’t usually encourage users to manipulate the database directly and can’t provide support for doing this. But we’ll happily provide guidance.
Events are a custom post type within WordPress, which means that they are stored in the posts table along with all other posts, pages and other custom post types. The way to differentiate them from other posts, is with the ‘post_type’ column. Events registered with The Events Calendar will have ‘tribe_events’ as their post type. So your goal here is to delete all entries from the posts table with the ‘tribe_events’ ‘post_type’. So here’s the SQL you can run directly from phpMyAdmin:
DELETE FROM wp_posts WHERE post_type = 'tribe_events'Note: you may need to change wp_posts to customprefix_posts if your table prefix is different (as defined when you installed WordPress).
Again, we advise you to act with caution and backup first.
Hope this helps! Let us know if you need anything else in the mean time.
Regards,
Patricia
August 14, 2017 at 8:55 am #1335000James Powell
ParticipantHi Patricia,
Still not working – I manually added some events in this afternoon as I still couldn’t resolve the issue.
I’ve just tried the SQL query and it’s not removed anything in either variation.
August 14, 2017 at 9:11 am #1335004Patricia
MemberHi James,
I’m sorry to know that this query didn’t solve the issue you are experiencing.
Can you please access your Dashboard and head over to Events -> Settings -> Imports -> Event Update Authority and make sure that the selected option there is the first one “Overwrite my event with any changes from the original source”? Please note that after making any changes to these settings you have to press the “Save Changes” button in the end of the page. We have an article about EA import settings: it is a little bit outdated but might be helpful to better understand some of the available options:
If the first “Overwrite event” option is selected and the issue persists, can you please send us a copy of your database in a private reply so I can import it to my local site and verify what is possibly causing the problem?
Thanks!
Patricia
September 5, 2017 at 9:35 am #1344914Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Deleting events and importing events’ is closed to new replies.
