Posted: July 6, 2015 at 4:58 pm
|
My site is using the latest version of EE3. We had previously opened a trouble ticket and were told these extra times and prices appeared because we had not updated EE3 before a WPEngine security patch was applied. We successfully deleted times and prices with event_id of zero, and the extra times and prices no longer appeared. However, more start-end times have returned recently. We can supply examples of the start-end times and prices, but they do not appear to be very informative. What is causing these additional start/end times to appear and how can they be prevented? |
Hi Jennifer, are you experiencing this issue with the latest version of WordPress (e.g. WP 4.2.2)? The reason I ask is when we noticed this issue some time ago, there were a series of WP releases that were going out. — |
|
|
Hi Lorenzo, Yes, the site is on the latest version of WordPress 4.2.2. Jennifer |
Hi Jennifer, members that have experienced this issue have resolved it by removing the errant data and then upgrading to the current software. I don’t think we have seen this reappear as you described. Can you recall making any specific changes that we could test out on our end? — |
|
|
We’re using: We are monitoring our server and will know if another zero event appears, though we won’t know what caused it. I can provide the actual event start-stop and pricing lines from the database, if that would help. Jen |
Hi Jen, The issue that you’re reporting will happen if an event is created but is not saved due to more characters being input past a limit for a field. |
|
|
Hi Josh, This could be the scenario triggering the issue we’re experiencing! Can you further clarify which field(s) and the character limits that cause this issue? Jen |
The fields that could most likely go over a limit are Event Title (200) It’d be good to check your database to make sure that the columns in the _events_details table match the above limits. If they have lower limits, you can deactivate EE3, change the espresso_version value in espresso.php to something like 3.1.37.4.p.007, save, then reactivate EE3. This will force the database update script to run. |
|
|
Hi Josh, In our database: Because the front-end event entry screen doesn’t limit characters but the database does, this is a bug. I have many different people creating events in our system, and they could easily trigger this bug without realizing it (and pretty frequently). Do you have any other suggestions to avoid the bug? Jen |
Hi Jennifer, It may help to explain this isn’t a bug, it’s a security feature that WordPress added a few versions back to prevent malicious scripts from getting written to your database. Before this was added you could input character past a limit and WordPress would still allow saving. It doesn’t allow saving anymore, even if you go past a limit by one character. So with that in mind, you can avoid the issues you’re seeing by setting the frontend event manager input fields to also limit the number of characters. For example, if your frontend event manager template has an Event Title field, you add You open up your frontend event manager template and add
to the Event title |
|
|
We are using standard EE3 interactions and do not have our own template for event editing. It’s standard EE3. I checked and the places where an event can be added or edited have maximum length 199 specified. We have code in place that will catch the event_id==0 when it happens, and maybe we can pin it down more precisely. Yes, we were surprised too because we thought it was all fixed, but somehow a bunch of zero entries got into our system. Next time we will know more precisely when, if not why. THIS URL (we replaced our site name with example.com) HAS THIS HTML THIS URL HAS THIS HTML At this point, I don’t think we need anything else from your team, until we see the problem happen again. |
Since you mentioned the Front end editor, did you check the Front end event editor event name inputs? There’s an update to the Front End Event Manager beta add-on that has the same maxlength limits set. |
|
|
Hi Josh, Can you explain what you mean? My developer and I aren’t clear on what you are referring to. I thought gave you the inputs to the event editor forms. Do they appear somewhere else? I think 199 is exactly what they are in our system, and what you’re telling us to use. Jen |
Hi Jen, You mentioned earlier:
By front-end entry, do you mean on the front end of the site, or the WordPress admin? The links you posted are for the WordPress admin, but if you are using the Event Espresso Front End Event Manager plugin to display an event creator form on the front-end, you’ll need to update that plugin. |
|
|
Hi Josh, We’re not using the Event Espresso Front End Event Manager plugin. Our users create new events in Event Espresso by going to WP Admin -> Event Espresso -> Event Overview -> Add New Event. That is what I was referring to. Jen |
Thanks for the clarification. The WordPress admin isn’t generally referred to as the front end, so that’s why I mentioned the EE Front End Event Manager plugin. |
|
The support post ‘Additional start/end times automatically appearing in Create Event screen in EE3’ 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.