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


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: http://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

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Josh 8 years, 3 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[gravityform id=80 title=false description=false ajax=false]
<div class='gf_browser_unknown gform_wrapper' id='gform_wrapper_80' ><form method='post' enctype='multipart/form-data' id='gform_80' action='/topic/event-posts-layout-conflict-with-theme/'> <div class='gform_body'><ul id='gform_fields_80' class='gform_fields top_label form_sublabel_below description_below'><li id='field_80_1' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_1' >First name<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_text'><input name='input_1' id='input_80_1' type='text' value='' class='medium' aria-required="true" aria-invalid="false" /></div></li><li id='field_80_2' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_2' >Email address<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_email'> <input name='input_2' id='input_80_2' type='email' value='' class='medium' aria-required="true" aria-invalid="false" /> </div></li><li id='field_80_3' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' >GDPR Agreement<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_checkbox'><ul class='gfield_checkbox' id='input_80_3'><li class='gchoice_80_3_1'> <input name='input_3.1' type='checkbox' value='I consent to have this website store my submitted information so they can respond to my inquiry.' id='choice_80_3_1' /> <label for='choice_80_3_1' id='label_80_3_1'>I consent to have this website store my submitted information so they can respond to my inquiry.</label> </li></ul></div></li><li id='field_80_4' class='gfield gform_validation_container field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_4' >Phone</label><div class='ginput_container'><input name='input_4' id='input_80_4' type='text' value='' autocomplete='off'/></div><div class='gfield_description' id='gfield_description_80_4'>This field is for validation purposes and should be left unchanged.</div></li> </ul></div> <div class='gform_footer top_label'> <input type='submit' id='gform_submit_button_80' class='gform_button button' value='Download Now' onclick='if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} ' onkeypress='if( event.keyCode == 13 ){ if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} jQuery("#gform_80").trigger("submit",[true]); }' /> <input type='hidden' class='gform_hidden' name='is_submit_80' value='1' /> <input type='hidden' class='gform_hidden' name='gform_submit' value='80' /> <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' /> <input type='hidden' class='gform_hidden' name='state_80' value='WyJbXSIsIjBiNjdjZjkyMDUzOWUxOWY5Y2NiZjIwMzM4YjA1Mjk4Il0=' /> <input type='hidden' class='gform_hidden' name='gform_target_page_number_80' id='gform_target_page_number_80' value='0' /> <input type='hidden' class='gform_hidden' name='gform_source_page_number_80' id='gform_source_page_number_80' value='1' /> <input type='hidden' name='gform_field_values' value='' /> </div> </form> </div><script type='text/javascript'> jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 80) {} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );</script><script type='text/javascript'> jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [80, 1]) } ); </script>
[i]
[i]