Support

Home Forums Event Espresso Premium Nothing works as it should

Nothing works as it should

Posted: July 18, 2013 at 12:14 pm


Kevin Bossons

July 18, 2013 at 12:14 pm

We are trying to use the plugin(s) and nothing works. In the admin nothing shows up in the event overview unless we set the filter for All active.inactive. Using shortcodes on pages nothing or just one event shows up using [EVENT_LIST]. If i use
[EVENT_LIST show_expired=true] – then everything shows up (but none of the events are actually expired – Using [EVENT_ESPRESSO_CATEGORY event_category_id=”luncheon”] returns nothing – any ideas whats wrong – we have deleted every plugin and re-installed – no change. Side bar widgets return one or zero events – page:http://67.227.142.97/~atlantac/events/


Josh

  • Support Staff

July 18, 2013 at 12:39 pm

Hi Kevin,

I’m sorry for the trouble. I checked the page you linked to and it looks to me that event dates, and along with that, the event registration start dates are not getting formatted correctly when they are entered into the event editor. The other issues you are reporting could be caused by the same issue.

Normally when the event editor loads up there’s a handy jQuery UI calendar that pops up after you click on a date input field. The calendar will consistent format the date correctly. Is that happening when you go to enter a date? If not, there may be a conflicting script getting loaded where it ought not (the event editor in this case).

If this is a case where the calendar isn’t loading up, this can be fixed and we can work with you on troubleshooting this.

While you’re checking, the dates input for start/end and registration start/end should all be formatted like this:
2013-07-18

If they are in a different format, you’ll see all the issues you’re reporting here.


Kevin Bossons

July 18, 2013 at 12:44 pm

yes the pop-up calendars work on the backend and the dates are formatted as you mentioned – still unresolved…


Kevin Bossons

July 18, 2013 at 1:13 pm

I just tried setting my Active events to Status Ongoing and they seem to work ok – Thats not what the instructions say – All events when created default to status Open – but they dont work unless I go back in and set them to Ongoing – Is that working as it should?


Josh

  • Support Staff

July 18, 2013 at 1:22 pm

Setting the events to an ongoing status should not be necessary. What do some of these events have for registration start and end dates?


Kevin Bossons

July 18, 2013 at 1:25 pm

They all have today’s or a few days ago as the start registration date and they all have the day before the event as the end date – which are all at least a few days from now


Josh

  • Support Staff

July 18, 2013 at 2:35 pm

It sounds like they’re all set up correctly. I’m not sure what should be checked next. If you can send temporary WP admin credentials via our contact form someone from our support staff can take a closer look:

https://eventespresso.com/send-login-details/


Josh

  • Support Staff

July 18, 2013 at 4:40 pm

Hi there,

I’ve narrowed down the issue to the theme. It appears that it’s hijacking the date fields and adding its own datepicker, which is formatting the dates incorrectly.

If you look at all the dates entered in the event editor, they are all formatted like this:

07/18/2013

they need to be formatted like this:

2013-07-18

I edited the dates in the Test Event so you can see an example of how the dates are formatted.

What really should be done here is the theme should only be loading its scripts on its own admin pages where it needs them. Instead, it’s loading them on *every* page in the admin. Here’s an example from the theme’s functions.php file:

add_action('admin_head','add_custom_scripts');

Instead of making its own action hook for its own admin screens and adding the scripts only where it needs them to run, the theme here is loading its custom scripts everywhere! So what happens when another plugin has its own scripts that do similar things (like Event Espresso does)? They break.

Ideally the theme author should fix their theme, but we realize this isn’t always something they are willing to do.

You might be able to fix the issue by adding a script like this to the end of the theme’s functions.php file:

// if this is an Event Espresso event editor screen in the admin
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'add_new_event' || $_REQUEST['action'] == 'edit')) {
	// then remove the theme's scripts
	remove_action('admin_head','add_custom_scripts');
}

This will remove one of the theme’s custom scripts from Event Espresso editor. There might be another script that will affect this, but I looked through the theme and the add_custom_scripts looked to be the one that was doing it.

I can suggest that you contact the theme author and ask them to add their scripts only when needed instead of across every screen in the admin. Please let them know that we are more than happy to work with them on this if they have any questions and wish to contact us.

Since this a theme being sold in the ThemeForest marketplace, they may need to do this sooner than later:

http://notes.envato.com/news/update-wordpress-theme-submission-requirements/

  • This reply was modified 10 years, 9 months ago by  Josh. Reason: code formatting
  • This reply was modified 10 years, 9 months ago by  Josh. Reason: code formatting


Kevin Bossons

July 19, 2013 at 7:05 am

Awesome! Thanks a lot! – I used your script and all is working great. I guess this theme was chosen because it has it’s own event system built in. It just wasn’t robust enough for their use.


Josh

  • Support Staff

July 19, 2013 at 12:11 pm

You’re welcome.

I left a note on the theme’s forum at the Themeforest website letting the theme author know how they can fix this issue in their theme.

The support post ‘Nothing works as it should’ 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.

Event Espresso