Posted: March 26, 2015 at 10:44 am
|
Hi, I’m using EE4 and we’re trying to understand why sold out events are automatically unpublishing once they sell out. I understand that I can go back in and re-publish the event to get it to show back up on the website, but then after a couple of minutes, the re-published event just reverts back to its unpublished status, no matter how many times I re-publish it. This is a problem for my client, and I have searched the forums for help, but I can’t seem to find anyone else experiencing the same exact problem. Any help is greatly appreciated! |
Hi, I’m having some trouble duplicating this issue. It should change to a status of Sold Out once no more tickets / pricing options are available but it should not unpublish on its own: http://cl.ly/image/2n0T1k0v0R3M What version of Event Espresso 4 are you running? — |
|
|
I’m running Event Espresso 4.6.17, and using the following add ons: |
|
Hi, I took a look at your site and saw that the 28th March event for Craig Childs is sold out. It is showing on the /events/ page and also on the /cortez-events/ page. Is this the event that is having the issue or is it intermittent i.e. only some of the sold out events are disappearing? We have not seen any issues with sold out events being removed form the event list, unless the event itself has expired (end date is in the past). |
|
Thanks for checking; that is the sold out event. What’s happening is that the sold out event disappears from the slider on the home page, and from the upcoming events widget in the sidebar. From the sold out event edit screen, the blue WordPress button in the upper right corner says ‘Publish’ instead of ‘Update’, as if it were changed to a draft. Re-publishing the event by hitting ‘Publish’ fixes it temporarily, but only for a few minutes. After 3-5 minutes it reverts back and appears to be unpublished again. It was the same case with the last event that sold out. Otherwise, we are having no problems with the way events are functioning and being displayed. I’m also not sure why the sold out event shows up in some parts of the site and not others. |
Hi, unfortunately we have not seen other reports of this issue so we aren’t sure why this is happening. We rolled out a maintenance release last week. Could you backup your WordPress and update to the new version? Then could you check to see if it still occurs? — |
|
|
I have updated to the newest version, but the end date of the event has now passed. I set the site up in a development area to test it, and so far it has not happened. We will keep an eye on the live site and see if it happens again when the next event sells out. Thanks. |
|
Our live site is still reverting to being unpublished. |
Hi, we have not seen other reports so I suspect this is a conflict on the site. What other plugins are running on your site? — |
|
|
Akismet 3.1.1 |
Ok, this is just an idea but this plugin looks like it could change post dates based on certain conditions: Post Expirator 2.1.3 Events in Event Espresso aren’t blog posts but some information for them are stored as custom post types in wp_posts (dbprefix_posts). Could you try temporarily turning that plugin off for a few days? — |
|
|
Sure thing. Thanks. |
|
It’s still happening. Is there a reason you say to have it turned off for a few days? |
Alright, I was thinking it occurred once an event switched to sold out automatically. Does the same thing happen with only Event Espresso running? — |
|
|
It’s hard for me to check that as the problem is only occurring on a live site. This problem doesn’t occur on our test site, and the only difference between the two is that the live site has SSL. |
From within your event editor, can you scroll down and double check that the ‘Post Expirator’ has not been enabled on the event please? |
|
Hi, that is a good point. Could you schedule a brief window (e.g. 5 mintes) to test during off-hours? Post Expirator stood out since it can change post dates but it doesn’t look like that is the cause. Sorry about that. — |
|
|
Checked post expirator – I have it disabled for the EE post type. Reenabled just to check if it was checked before and it hadn’t changed since it was disabled. No luck. But I have a new clue… When I republish the event, it shows up correctly for a while and then disappears. It seems that what triggers the disappearance is visiting this page. I can click on all kinds of other pages, but once I click on https://sunflowertheatre.org/cortez-events/ the event disappears (you can tell by the Upcoming Events widget because it disappears in there as well). |
|
This is the shortcode on that ‘cortez-events’ page: |
There’s a couple of ways for an event to be sold out, so can you clarify how your event is set up please? Single datetime, single ticket? Is the limit on the datetime(s) or the ticket(s)? I’ve tested limits on both, then used the above shortcode on a new page, with no effect. Can you load this page: https://sunflowertheatre.org/cortez-events/ In another tab open up the event editor for that event and publish the event. Refresh the event table page straight after. Now refresh the event editor page, is the event still published? |
|
|
I’m not sure how to answer some of this, but I will do my best. Here is what happened when I followed the instructions you shared… Also tried this… |
Thank you. What I wanted to confirm with the above is that visiting the page is actually what forces the status change and that it was not previously a coincidence. (Which have done :))
So is it the Ticket or Datetime limit that has been reached to make the event Sold Out (or again both?) It’s a very odd issue and not something we have been able to re-produce so far. Could I take a look over the event and see if I can see anything that stands out? If so could you send temporary log in details using this form please: |
|
|
Done |
After looking over your event, I think there’s some confusion on the issue here. A ‘Sold Out’ is effectively a ‘draft’ post , although EE knows the event is sold out and displayed the event. So when you see the event status like this – http://take.ms/insTY That is a draft ‘post’, but a Sold out event, EE identifies this and displays the events on the front end. These events should always be displayed within the standard event list, NOT the ‘Draft’ section. If you notice now when you go here: https://sunflowertheatre.org/cortez-events/ The sold out events are displayed. Would they normally just disappear randomly? Or would you do something differently? I still suspect this is due to the Post Expirator plugin, as it sets cron jobs to do it bidding. Meaning you could set the event as it is now, working fine. Then the cron runs and removes the event. It could also be another cron set to remove Draft posts (without checking the post_type), have you set anything like this manually? |
|
The support post ‘Problem getting 'Sold Out' events to stay published’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.