Support

Home Forums Event Espresso Premium EE4 migration – Multiple issues!

EE4 migration – Multiple issues!

Posted: July 21, 2015 at 3:07 pm


MR DECLAN J MAIR

July 21, 2015 at 3:07 pm

Please refer to adambrowntennisacademy.com.

I have migrated to EE4 today.
1. Under booking shown all my events – in that tab are pages that show the categories… when clicked showing the pages don’t exist??? They definitely do!
2. When you just click booking – the page doesnt show the sidebar with the various widgets.
3. Click any event – what the hell is going on?!?!?!?!?!? cant click any info, showing on a grey background?!?!?!?!

Thanks!


MR DECLAN J MAIR

July 21, 2015 at 4:14 pm

similar issue on the venues page, it has overwitten all content on those pages, and has a grey background?


Lorenzo Orlando Caum

  • Support Staff

July 21, 2015 at 6:04 pm

Hi Declan, it looks like the single event pages are using a single.php template that is in your theme folder. Single.php is usually for blog posts.

This page on your site has a similar layout with a dark background:

http://www.adambrowntennisacademy.com/news/

Could you try following this tutorial to get a set of starter templates running?

https://gist.github.com/lorenzocaum/16aac08f099d7c154f04

One of the steps will be to duplicate a page.php theme template which should change the design that you are seeing.

Thanks


Lorenzo


MR DECLAN J MAIR

July 22, 2015 at 3:02 am

Thanks, that resolved part of it.

The (http://www.adambrowntennisacademy.com/news/) page you mentioned shouldn’t have the dark background, again it only happened when EE4 got installed?

If you look to the http://www.adambrowntennisacademy.com/booking/ . There are no sidebars showing or headers ect??? (same with the “news” page…) Am i right in thinking they’re behaving as a blog? Although not keeping the settings they should?

In the booking process, no sidebars ect, looks like its not being contained properly… ie, the left side text is at the very edge of the browser.

Do you know when the my-events shortcode will work on EE4?

Thanks


Lorenzo Orlando Caum

  • Support Staff

July 22, 2015 at 10:59 am

Hi Declan,

When you followed the steps, did you select a page.php file that had an existing sidebar?

It might be called something like page-right-sidebar.php.


Lorenzo


MR DECLAN J MAIR

July 22, 2015 at 11:24 am

Hi, there was only 1 “page.php” file… It has virtually nothing in it?


MR DECLAN J MAIR

July 23, 2015 at 2:50 am

Hi… I’m a little further forward but not really…
In the archive-espresso_events.php and single-espresso_events.php I added the following code on line 2
<?php get_sidebar( “Booking” ); ?>

I have the sidebar, It’s showing the “default” sidebar, not one I’ve created for the booking page but can figure that out. It’s showing on the left that appears to be part of the page, not in its own sidebar.
It’s also only showing one event?

This issue is causing huge headaches… the instillation of EE4 has done something to the “news” (blog) section to as is happening on the events. I need this sorted asap. besides the support can you point me in the direction of a good guide also whilst awaiting responses.

Thanks!


Dean

July 23, 2015 at 3:34 am

Hi,

Is the Booking page an actual page?

According to the theme author Demo page, there should be an option for a sidebar. This could be in the theme settings or it could be in the Page Attributes section of the Page editor (screenshot http://take.ms/guv3T)


MR DECLAN J MAIR

July 23, 2015 at 6:34 am

Hi Dean,
Yes the booking is an actual page with the shortcode on there. I changed it from default to some others (events list) with no changes seen…


Tony

  • Support Staff

July 23, 2015 at 7:03 am

Could you send me a copy of the theme please? I’d like to take a look at how this is loading.

If so please use support[at]eventespresso.com

It looks like you have changed the /events/ slug to /booking/ which means the booking ‘page’ is not being used.

The /events/ ‘page’ (which in your case is now /booking/) is actually an archive of Event Espresso events, so your theme should be loading up the archive template for that output. The page slug may be the same, but the archive is taking priority, so changes being made to the booking ‘page’ are not shown on the front end (because its not the page that is loading)


MR DECLAN J MAIR

July 23, 2015 at 7:23 am

Hi Tony, sent the email with the theme and created a login should you need it.

I’ve been looking through the templates and from what I can gather they should be showing the sidebar… They should really look like any other page on the site!

Thanks


Tony

  • Support Staff

July 23, 2015 at 3:31 pm

Hi Declan,

I’ve been looking over this and the reason the /booking/ page has no containers is the template files don’t have any.

For example, currently the archive-espresso_events.php template file (which is used for /booking/) contains:



        
class="slider-margin">

Which is what is being displayed on the page currently, the site header, the slider header, a sidebar and the EE event content.

So to fix the booking page I copied your page.php template, slightly modified it to always load the ‘Booking’ sidebar and removed some irrelevant details. I’ve uploaded that here:

I then made a similar change to the single-espresso_events.php template.

I’ve uploaded the files here – http://take.ms/qk2Yo

Please remove ALL of the previous template files from the guide posted by Lorenzo.

So create a backup of the current theme, then remove all of the template files that contain ‘espresso’ in the name from within the root directory.

Then copy the 3 template files from above into the theme directory and retest your events page, does it now work as expected?


MR DECLAN J MAIR

July 23, 2015 at 4:24 pm

Hi Tony, without sounding thick… “then remove all of the template files that contain ‘espresso’ in the name from within the root directory.”
I’ve done this withing the themes folder… also delete all template files from the event espresso folder in the plugin section?


MR DECLAN J MAIR

July 23, 2015 at 4:26 pm

also, no link to download the “page.php” template?


MR DECLAN J MAIR

July 23, 2015 at 4:27 pm

so far, we’re off to a good start


Tony

  • Support Staff

July 23, 2015 at 4:57 pm

I’ve done this withing the themes folder… also delete all template files from the event espresso folder in the plugin section?

No, only the files within the theme.

also, no link to download the “page.php” template?

Apologies I didn’t explain that well, I copied your page.php into the template specifically for the EE events which archive-espresso_events.php.

Also similar with single-espresso_events.php

There’s no download for page.php as that’s already part of your theme that I based the new files on.

so far, we’re off to a good start

Great 🙂


MR DECLAN J MAIR

July 23, 2015 at 5:01 pm

I really cant thank you enough!… I was pulling my hair out!
Can you explain what you’ve done… I need to carry this across to the blog section (news page) as when EE4 was installed it did the same here.

Out of interest, do you know when to expect the my events shortcode for EE4?
Few other questions to, should I create the relevant post? ( thankfully the biggie is fixed!)


Lorenzo Orlando Caum

  • Support Staff

July 23, 2015 at 6:00 pm

Hi Declan, Tony used some existing templates on your site and created new versions for Event Espresso 4 to use.

Event Espresso should not affect the layout or styling for other pages or posts. If you temporarily deactivate Event Espresso 4, does the layout change for the blog posts?

Please go ahead and create a new support post with any new questions and we’ll get those answered for you:

https://eventespresso.com/support/forums/


Lorenzo


MR DECLAN J MAIR

July 23, 2015 at 6:15 pm

Deactivated it… EE4 does effect it. Before I migrated to EE4, the page sat as it should have with sidebars, and on a cream background.
With EE4 active the page has a grey background and none of the text or links are clickable.
With EE4 deactivated, it has reverted to the cream background but no sidebar?

Cheers.


Tony

  • Support Staff

July 24, 2015 at 4:07 am

To explain a little, the problem with the EE event listing is due to how your theme handles archive pages.

You initially mentioned the /booking/ page not showing any sidebar, that’s because your theme loaded an archive.php template that only included a ‘Archive/Search’ sidebar that only used the global settings within your theme.

Usually we require users to purchase a support token (or more if required) to work through theme conflicts such as these as it isn’t an issue with Event Espresso itself, but the strange ways themes come up with displaying data. However installing the starter templates mentioned above actually caused a couple of further problems with how your theme would be displayed EE data, so on this occasion it investigated further.

Because the EE event listing is an archive, ‘pages’ with the same slug are ignored, the archive is loaded before the page. This means that editing your ‘booking page’ actually has no effect at all on that display.

Usually the fix is to create custom templates based on your sites archive.php and single.php files, but your theme is doing some strange things with those and you want the output to be similar to page.php….

So what I did was create ‘archive-espresso_events.php’ base on page.php (which calls a template part within ‘\templates\parts’ called content-page.php

This contains all of the containers used to display the data as you wanted, but also expects to setup a page, meaning the sidebar is set using post_meta (which doesn’t exist) so I hardcoded the page to load the ‘booking’ sidebar and swapped out the loop to use the loop-espresso_events.php file to display the events.

The bet way to see this is by comparing archive-espresso_events.php and content-page.php to see what has changed.

I then did almost the exact same with single-espresso_events.php to ensure single events displayed as expected.

Now for the News page, unfortunately I don’t any reason for this at all, I’m assuming that again the theme is doing something very strange to get that page to load. So when EE4 is activated the theme is ‘doing its thing’ but actually including EE events within its search which could be causing problems.

The first thing I would check is what template that page is using to display. You can do this using the ‘What the file‘ plugin (it add output to the WP Admin bar when you load the page so you can view which template is in use)

Which templates are in use?


MR DECLAN J MAIR

July 24, 2015 at 7:24 am

Hi, the templates in use are templates

I’ve just gone into the .index file and added the sidebar (copying your code from archive-espresso_events.php) Do i almost want to copy the pages you’ve sorted but remove the evnentespresso info and replace to show the bog bit?

All help is greatly appreciated.

Thanks, Declan


Tony

  • Support Staff

July 24, 2015 at 7:38 am

I’ve just gone into the .index file and added the sidebar (copying your code from archive-espresso_events.php) Do i almost want to copy the pages you’ve sorted but remove the evnentespresso info and replace to show the bog bit?

You don’t want to edit the template files like that.

index.php will be used to output multiple different sections of your site. I just wanted to check which template was being used to load the page.

Was /news/ a standard page create by yourself?


MR DECLAN J MAIR

July 24, 2015 at 8:14 am

Oki dokes, yes the news page created by myself.


Tony

  • Support Staff

July 27, 2015 at 10:04 am

Hi Declan,

Apologies for the delay getting back to you.

Looking at your news page it looks like you’ve fixed the view, can I ask what you did to fix it?


MR DECLAN J MAIR

July 27, 2015 at 11:34 am

not set it as a “posts” page… its not ideal as its a basic list… I’ve set it up as a page and using the “recent posts” widget. It wont show the “featured” image though.

… similarly I’ve done this on the categorised versions of my events pages (being dealt with on seperate post)

If you like I can revert it so try and solve?


MR DECLAN J MAIR

July 27, 2015 at 3:33 pm

pretty much resolved…. I copied most of the code from “single-esspresso-events” (up til <?php espresso_get_template_part( ‘loop’, ‘espresso_events’ ); ?> ) into the single-events and template part for the single post. I’ve done the same for the “archive” but edited the “index” as it used that. It works! Slowly learning code!


Tony

  • Support Staff

July 28, 2015 at 5:42 am

I’m glad you got this working 🙂

Most of the issues mentioned here seem to be caused by the theme doing things in odd ways or template files setup in unexpected ways.

Be careful when editing the index.php file of a theme, that file is used as a sort of ‘catch all’ template file, if your theme does not have a template file for the data is it trying to output, it uses index.php

The support post ‘EE4 migration – Multiple issues!’ 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