Home › Forums › Calendar Products › Events Calendar PRO › Event Organizer Not Saving
- This topic has 18 replies, 3 voices, and was last updated 8 years, 7 months ago by
Mathew.
-
AuthorPosts
-
December 29, 2016 at 7:22 pm #1211583
Mathew
ParticipantI am reporting possibly the same issue as this customer. However, I am seeing the issue on Organizers, but the root cause may be the same as the Venues.
December 29, 2016 at 7:22 pm #1211584Mathew
ParticipantThis reply is private.
January 3, 2017 at 9:23 am #1212701Cliff
MemberHappy New Year, Mathew.
Thanks for all that detailed information. I really appreciate all your effort on this issue.
I reviewed the thread you linked to and noticed this Private Reply that may be relevant (and that you wouldn’t have been able to see). If you don’t think it’s relevant, just disregard.
I’ve heard of other users reporting this or something similar but, as you tried too, we haven’t been able to replicate it either.
Searching through the core plugin’s current code base, I didn’t find any suspicious code, which makes sense if it can’t replicate the issue in the current version.
Referring to the current version, the _EventOrganinzerID and _EventVenueID meta keys do not exist for the Event’s postmeta if an Organizer or Venue is not assigned so having a post ID of zero isn’t the expected value. I know this isn’t new information to you, but I thought I’d share in case it helps in some way.
If you do find some way that we can replicate the issue, we’ll definitely try to help in any way we can.
One idea might be to find all Events with an Organizer or Venue ID as zero and delete those meta keys.
January 3, 2017 at 3:21 pm #1212859Mathew
ParticipantThis reply is private.
January 3, 2017 at 9:13 pm #1212999Cliff
MemberThis reply is private.
January 3, 2017 at 10:23 pm #1213007Mathew
ParticipantThis reply is private.
January 4, 2017 at 10:08 pm #1213620Cliff
MemberThis reply is private.
January 4, 2017 at 11:04 pm #1213636Mathew
ParticipantThis reply is private.
January 5, 2017 at 8:18 am #1213768Cliff
MemberAre any of these incorrect?
- Events that have _EventOrganizerID set to zero ALSO ALWAYS have a second “correct” _EventOrganizerID set to a non-zero post ID (i.e. _EventOrganizerID is never zero if there’s only one _EventOrganizerID)
- If you change _EventOrganizerID = zero row to _EventOrganizerID = non-zero valid Organizer post ID, it does NOT work (sounds odd — do you have two _EventOrganizerID set or do you delete the existing non-zero _EventOrganizerID?)
- If you delete _EventOrganizerID = zero row, seemingly leaving the existing non-zero _EventOrganizerID, it DOES work fine
January 5, 2017 at 11:14 am #1213934Mathew
ParticipantThis reply is private.
January 6, 2017 at 8:21 pm #1214589Cliff
MemberI was able to replicate that… I thought it might be an issue with update_post_meta() possibly thinking it doesn’t exist because the value is zero (PHP may think it’s false) — however, digging into WP’s core functions, I saw it uses count(), not empty() on the value so that probably isn’t it.
So I changed the value from 0 to ‘abcd’ and got this: https://cl.ly/3G131y023J3z
And even if I delete both Organizers (trash icon) via wp-admin, that ‘abcd’ row in the database won’t go away.
So that tells me it’s likely a bug in our code — that whatever is getting/setting isn’t handling things well if there’s unexpected values (Organizer Post ID of zero or non-numerical).
I’ve filed an internal bug for this, but I’m unsure where in our plugin’s code this is happening.
Also, the bigger issue in my opinion is how did your _EventOrganizerID get set to zero in the first place?! If you do find a way to replicate that, do let us know.
I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release.
I apologize for this issue and appreciate your understanding and patience.
January 6, 2017 at 8:40 pm #1214592Mathew
ParticipantCliff,
I am glad you were able to reproduce the issue. I hope it helps with the other cases where something similar has been reported. Perhaps they can check their DB’s for 0 values.
I found one more here, but it went stale.
Double Entry of _EventVenueID and _EventOrganizerID with value 0
And more recent –
As to the bigger issue, I think I may have stumbled upon the root cause. I am going to run some tests locally to prove or disprove my findings before I share them.
January 9, 2017 at 1:14 pm #1215301Cliff
MemberThanks so much, Mathew.
January 9, 2017 at 9:17 pm #1215585Nico
MemberHi there!
Just wanted to share with you that a major release of our plugins is out, which includes a fix for this issue 🙂
Find out more about the release → https://theeventscalendar.com/things-to-be-aware-of-in-version-4-4-of-the-events-calendar-event-tickets-and-premium-add-ons/
Please let us know if this works for your site now,
Best,
NicoJanuary 12, 2017 at 10:12 pm #1217887Mathew
ParticipantI updated to 4.4.0.1 and 4.4 TECPro in my dev environment. The update does not resolve the issue. Events with _EventOrganizerID set to 0 remain in the DB.
As for the root cause, I was venturing down an XML export/import path, but my tests did not pan out.
-
AuthorPosts
- The topic ‘Event Organizer Not Saving’ is closed to new replies.
