Support

Home Forums Event Espresso Premium Event posts layout conflict with theme

Event posts layout conflict with theme

Posted: July 10, 2012 at 4:27 am

Viewing 10 reply threads


mcote

July 10, 2012 at 4:27 am

For some reason, the “event posts” pages do not come out correctly once published. Here is an example, notice how the sidebar layout (calendar and twitter) appears at the bottom and the the bottom section (Dojo Kun) appears at the top compared to what it should be.

enter image description here

Here is what it should look like. I have used the registration template as an example.
enter image description here


Josh

  • Support Staff

July 10, 2012 at 9:38 am

Did you copy over the sample event post templates from the /post-type-samples directory of the plugin to the active theme directory?

Note that for the post-type page that lists all the event posts, you can create a page and set it to use page-event_list.php as its template.


mcote

July 10, 2012 at 1:40 pm

Yes the sample event post templates where copied into the active themes directory. I have recopied them to be sure I had the latest versions, but now when I tried to verify the post I got this error:

Fatal error: Internal Zend error – Missing class information for in C:\inetpub\wwwroot\mysite.com\wp-content\plugins\event-espresso.3.1.24.1.P\class\pue\pue-client.php on line 41

I couldn’t get back into my WP dashboard so what I needed to do is change the name of the espresso.php file (Using FTP) so I could get back into the WP dashboard. I have rechanged the espresso.php file to its original name, reactivated the event espresso plugin and now I can’t get back into the Event Posts anymore to edit them. I systematically make the WP dashboard crash with the same previous Fatal Error message.


Josh

  • Support Staff

July 10, 2012 at 3:19 pm

Try downloading a fresh copy of EE and manually uploading to the plugins directory via FTP.


mcote

July 10, 2012 at 3:41 pm

The crashing issue is solved, I deleted the existing event post and now the Event Posts doesn’t crash anymore. I previously had Fatal Error problems so I had to manually upload EE via FTP so on that aspect I’m am now OK.

Regarding using page-event_list.php as its template, I can’t seem to get around this point. How to I specifically do this? I read the, wordpress manual to create templatesbut I don’t see how to set this up. Do you have a step by step guide?


Josh

  • Support Staff

July 10, 2012 at 5:12 pm

It’s an example template meant for developers to be built on, so we don’t really have a step by step guide for it.

How it works is you’d make a copy of this template and drop it into the same directory as the active WordPress theme.
Then create a page and use the built in WordPress template selector to select this template.

cpt-templates

Then save. Then all the custom post type posts should be listed on this page.


mcote

July 13, 2012 at 9:21 am

After fiddling around with this, I understand how it works but one thing has been annoying me alot is that I keep on having the “Fatal error: Internal Zend error – Missing class information for in C:\inetpub\wwwroot\mysite.com\wp-content\plugins\event-espresso.3.1.24.3.P\class\pue\pue-client.php on line 41” messages.

I’ve updated and removed all previous versions of EE, including the add-ons, to correct this problem as per what I have read on this forum. The problem persists everytime I play with the single-espresso_event.php file (trying to have a proper layout and visualizing my modifications) uploaded via FTP in my current theme folder. I am presently on version 3.1.24.3.P.
I have the impression this is like the groundhog day 🙁
Is there something I’m doing wrong? Once again I will change the espresso.php file to another name so I can be able to log back into the WP dashboard. I just hope I will not have to once again manually upload a fresh version of EE. Do I need to delete the existing Event Post and create a new one in order to view the layout of the modified single-espresso_event.php file? Am I the only one having this issue?


Josh

  • Support Staff

July 13, 2012 at 1:19 pm

We recommend installing Event Espresso on a LAMP-stack type server, not on a windows based server, the file path suggests this site is on a Windows server. Try downloading and running the Event Espresso requirements check plugin to see if this server passes the requirements check: https://eventespresso.com/requirements/

You could try setting the value on line 41 of espresso.php to false. You’d lose the ability to get the auto-updates, though.


Josh

  • Support Staff

July 13, 2012 at 1:33 pm

Can you post the contents of the single-espresso_event.php file on pastebin so we can see if there’s a function that could be breaking things?


mcote

July 14, 2012 at 3:46 am

My web host uses Windows/IIS which is what seems to be causing the problem. It’s something I had not looked into when selecting a web host….

As you recommended, I have set line 41 to FALSE hoping this will stop my dashboard crashing.

I have placed my modified single-espresso_event.php file here. I have basically removed all the unwanted information and done the following changes:

  • Original line 80 from ( ‘Pages:’, ‘twentyten’ ) to on line 68 ( ‘Pages:’, MYSITE_TEXTDOMAIN ‘ )
  • Original line 109 from ( ‘Edit’, ‘twentyten’ ) to on line 76 ( ‘Edit’, MYSITE_TEXTDOMAIN )
  • Original lines from 110 up to 130 are replaced by 77 up to 96. I beleive this is where the layout was not working. With this code, the themes layout is respected.

PS: do not consider the Hello world code in the file, it was for me to see where it would appear on the page.


Josh

  • Support Staff

July 16, 2012 at 8:55 am

The example templates were based on the twentyten theme, so try copying the functions you’d like to use from twentyten into your current theme’s functions.php file, and renaming them accordingly in the templates.

I checked with the PUE developer with the other error, and he said the errors you are getting are most likely a bug with the Zend/PHP setup, so it’s not an event espresso problem, but unique to this server’s setup. More information here:
https://bugs.php.net/bug.php?id=59298
http://wordpress.org/support/topic/supercache-internal-zend-error-wtf

Viewing 10 reply threads

The support post ‘Event posts layout conflict with theme’ 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