Event-Organiser icon indicating copy to clipboard operation
Event-Organiser copied to clipboard

Events missing after deinstalling / reinstalling plugin

Open rvlak opened this issue 5 years ago • 2 comments

Dear Stephen,

I am developing a new website and added a few dozen events yesterday. This morning, I wanted to install the Pro plugin, and I was under the impression that I had to uninstall the free plugin first. When I did that and reinstalled it after finding out about my mistake, I discovered that all events, locations, and categories were gone, except one event.

Strangely enough, in the list of events, I still see the original count: All (22), Published (19) Drafts (3) but not the events I added yesterday. Besides, the event that has 'survived' can not be booked anymore, it says that 'This event ended on 29 December 2020' (which is a future date...)

Unfortunately Murphy's Law applies again, as I just found out that my website backups were not running as they were supposed to, so I am hoping you might know some other solution to resolve this.

Thanks in advance for your help!

Event list missing events

Event ended in the future

rvlak avatar Jul 21 '20 08:07 rvlak

Hi @rvlak ,

Uninstalling the plug-in will delete the dates table used by the plug-in, but it won't delete anything from the posts table. This is why you can still see the events, but the dates mean they don't appear. (Although I would have expected to see them in the admin table).

One way of fixing this is to edit the event and update it - that should "regenerate" the event dates. You could script that (just query all events, and 'update' them without changing anything) - and that should fix the missing dates.

stephenharris avatar Aug 01 '20 18:08 stephenharris

Hi @stephenharris Thanks for the advice, I have used your approach and got things back to work :-)

rvlak avatar Aug 18 '20 08:08 rvlak