Events Made Easy › Forums › Bug fixed or feature request implemented › Event Body Blank!
- This topic has 41 replies, 3 voices, and was last updated 11 years, 10 months ago by Franky.
-
AuthorPosts
-
Wed 7 Mar 2012 at 01:26 #43744AnonymousInactive
Reposted as requested from WP forums. Please help!
Hi. I’ve finally installed “EME” but something’s wrong. Nothing in the body of the event actually appears when viewing it. ONLY the event title appears, followed by the normal comments and/or Addthis toolbar. I’ve tried disabling AddThis and other plugins, but nothing changed.
So no body text, no event location, no seat booking. Nothing appears in the body of the event.
Am I doing something wrong? I’m using a 3 column theme with widgets. The “events” page was created automatically during EME installation. (I later renamed it but that didn’t seem to help.) I have another calendar program installed (The Event Calendar 1.x) but deactivating it doesn’t seem to help….
I would appreciate any advice you can give.
I don’t see any identical complaints in the forum here at e-dynamics either.
I tried changing to the default 2011 theme. Then the TEXT part of the event body showed up. But the registration/booking/location details were still nowhere to be found.
🙁
Advice please?
Franky wrote:
I approved (I think) your account on the official forum. But to help you along: when posting there, also post the EME format settings you use for a single event.
I’ve using these defaults as per the settings:
Single Event Page Title Format: #_EVENTNAME
Default Single Event Format: <p>#j #M #Y - #H:#i</p><p>#_TOWN</p><p>#_NOTES</p>But even when I tried adding the various fields to the default, it doesn’t seem to do anything. Are we expected to add the format fields manually like this, or should it have been generated when I selected the event settings?
Here’s what I tried:
`
<p>#j #M #Y – #H:#i</p><p>#_TOWN</p><p>#_NOTES</p>
<p>Map:
#_MAP</p><p>
Contact:
#_CONTACTNAME
</p><p>
E-Mail:
#_CONTACTEMAIL
</p><p>
Phone:
#_CONTACTPHONE
</p><p>
Booking:
#_ADDBOOKINGFORM
</p><p>
Remove Booking: #_REMOVEBOOKINGFORM
</p><p>
Directions: #_DIRECTIONS
</p><p>
Categories: #_CATEGORIES
</p><p>
Attendees: #_ATTENDEES
</p>
‘
If I change the Single Event Page Title Format the changes work, but nothing I do with the body seems to?
Again, all I’m getting is the title, followed by AddThis toolbar and comments. If I put text in the EventsMadeEasy page, that shows up too. Tried turning off comments on the page; no improvement.
Wed 7 Mar 2012 at 01:53 #49445AnonymousInactiveOkay, now I’m getting somewhere. Including all the above new format code in the settings, AND turning on the 2011 Theme results in visible EME fields on the event page display.
So it’s a theme conflict after all. What can I tweak in my theme? I tried the various templates for the page (including full width) but no help. Tried some brute force copypasta with “content” related code from the 2011 templates, but no go.
Wed 7 Mar 2012 at 08:39 #49446FrankyKeymasterIs your theme calling wp_head() as it should? If it works with 2011 but not your theme, you need to check if the theme is supported for WP 3.3 first …
Wed 7 Mar 2012 at 16:43 #49447AnonymousInactiveIf you mean in the header.php, yes, it’s in there. According to the 2011 theme comments, it needs to be before the /head keyword.
I’m only on WP 3.2.1.
I tried adding an extra call to wp_head() in the header.php, right before the /head, but no help. Tried removing all code after the /head; no change. Tried using both the header.php and page.php from 2011 theme; no good.
Fooey; it seems my theme provider was acquired (WPZoom bought out Proud Themes). I suppose I can try upgrading the theme, if I HAVE to. Any other ideas?
Below is the beginning of my header.php:
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?><?php bloginfo('name'); if(is_home()) { echo ' | '; bloginfo('description'); } ?></title>
<?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<meta name="description" content="<?php the_excerpt_rss(); ?>" />
<?php csv_tags(); ?>
<?php endwhile; endif; elseif(is_home()) : ?>
<meta name="description" content="<?php bloginfo('description'); ?>" />
<?php endif; ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url');?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_enqueue_script('jquery'); ?>
<?php wp_head(); ?>
<script type='text/javascript'>
jQuery(document).ready(function() {
jQuery("#menuhead ul").css({display: "none"}); // Opera Fix
jQuery("#menuhead li").hover(function(){
jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(268);
},function(){
jQuery(this).find('ul:first').css({visibility: "hidden"});
});
});
</script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/nivo.slider.pack.js" type="text/javascript"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/nivo.slider.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/js/nivo.css" />
</head>Wed 7 Mar 2012 at 19:08 #49448FrankyKeymasterI don’t do theme support, but in this case: weird that this line is in the header:
<?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
It doesn’t belong there … and might mess up all of your html. Please contact your theme supplier for this.
Wed 7 Mar 2012 at 19:58 #49449AnonymousInactiveThanks Franky. I tried taking out that whole if..endif section, but it didn’t improve my EME situation. I double checked and it’s in the original installer zip for the theme. I’m using a free theme so I’m not sure what support I will get; at the least I’ll probably have to upgrade it.
I guess my only other alternatives are paying someone to tweak this for me (a not-for-profit with no money) or taking the time to learn PHP and WP theming and figuring this out myself… Darn.
I’ve now tried clearing or swapping out the header, page.php, footer.php, AND the CSS file, and I still can’t get EME to appear properly.
Edit: Figured out how to rename the latest version of the theme and install it without conflict; EME behavior STILL unchanged. 🙁
Anyway, thanks for your time and for sharing EME. I still hope to get it to work.
Wed 7 Mar 2012 at 21:00 #49450FrankyKeymasterWhich free theme are you using? If it’s on the net, I can try it locally.
Wed 7 Mar 2012 at 21:40 #49451AnonymousInactiveIt’s Academica. Version I was using was from Proud Themes. The new version is from WPZoom. Only minor changes really.
Here’s something new. I find that if I explicitly enter [display_single_event id=xx] on the events PAGE in WordPress, I can get that event to display properly, even in my 3 column layout in this theme!
But I don’t see a way to really take advantage of that, to have the page pick up the ID it’s supposed to for that event, without hard coding just a single event ID…
Am I just making a basic mistake — is there supposed to be some EME code on the Events page? Up until now it’s been mostly blank for me; I thought EME was supposed to lay down everything over the blank WP page? (Of course this wasn’t necessary with the 2011 theme though.)
For right now, this hardcoded shortcode kludge is enough for me to work with, for our first EME event. But obviously it’s no long term solution!
Wed 7 Mar 2012 at 22:35 #49452FrankyKeymasterCheck your EME setting concerning “Events page”. It should point to a real existing page (that’s best not shown in your menu)
Wed 7 Mar 2012 at 22:45 #49453AnonymousInactiveYup; as I mentioned an “Events” page got created during EME installation. I later renamed it to “EventsMadeEasy”. (I wanted to avoid any possible conflict with The Events Calendar.) The EME settings still point to that. It’s that EventsMadeEasy page that I’ve added the above shortcode to.
What’s weird is that according to the EME settings screen, “The content of this page (including shortcodes of any kind) will be ignored completely and dynamically replaced by events data”. Obviously that’s not what’s going on for me!
Wed 7 Mar 2012 at 22:54 #49454FrankyKeymasterWhich means you might have 2 pages with the same title or so. Since EME can only work if indeed the events page content is replaced by event data.
Try creating a new page and change the EME settings to point to that page, then see what happens.
Wed 7 Mar 2012 at 23:14 #49455AnonymousInactiveOkay. It goes back to the original behavior — only the event title appears, and the body is blank again. (I created a new empty page called EMETest, and pointed to it via the pulldown “Events page” in the EME settings as you suggested.)
More minor issue: using the #_ATTENDEES code in the single event settings, the users are listed with “username(#_USER_RESERVEDSPACES)” — where that #_USER_RESERVEDSPACES appears just like that, without a numeric space count.
Wed 7 Mar 2012 at 23:29 #49456AnonymousInactiveOh, for the record, I’m reaching the event page through your Calendar widget for most of this testing.
Also, there seems to be some caching going on server-side in some way. After switching back from the EMETest page to the EventsMadeEasy page, the events continued to show “EMETest” in their title until I actually renamed the EMETest page. Only then did they start picking up their accurate event title again, via the shortcode on the EventsMadeEasy page to which they were already supposed to be repointed. Odd.
Wed 7 Mar 2012 at 23:50 #49457AnonymousInactiveNoticed another potential conflict. The Event Calendar plugin uses a CATEGORY called “events”, which of course uses the /events URL. So I tried changing the EME Events Permalink Prefix from “events” to “eme-events”, along with changing locations to eme-locations.
I had to deactivate/reactive EME, but it STILL doesn’t show event bodies unless I hard code the specific eventid shortcode on the Page.
Besides, the other calendar plugin wasn’t even an issue using the Twenty-Eleven theme; then EME just worked.
Other minor issue: the buttons and fields for booking on the event page are all borderless and shadeless, so it’s hard to know where they are. A CSS issue I’m sure.
Sorry for bombarding you with stuff; I’m sure you’re busy enough.
Thu 8 Mar 2012 at 09:07 #49458FrankyKeymasterCSS is in your theme and can be changed there. For the #_USER_RESERVEDSPACES issue: which EME version are you using? For caching: look at your plugins, some might interfere.
In general: disable all other plugins and see if EME then works ok. Then re-enable one by one until you find the conflicting plugin.
Thu 8 Mar 2012 at 16:42 #49459AnonymousInactiveThanks, Franky. The big issue is still of course the fact that I’m not getting event details on the event page unless I hard code the single event ID shortcode on the event page itself.
Re: USER_RESERVEDSPACES, I have EME 1.0.1, which I installed a few days ago via the regular automated WP plugin process. The Plugins page is now telling me that 1.0.2 is available…
Thu 8 Mar 2012 at 16:55 #49460FrankyKeymasterAs said: disable all other plugins and see if EME then works ok. Then re-enable one by one until you find the conflicting plugin.
If that doesn’t work: try disabling permalinks (if active) and see what happens then. You have something very weird going on here …
And indeed 1.0.2 is out, I don’t remember if it fixes the USER_RESERVEDSPACES issue though, but do update.
Thu 8 Mar 2012 at 18:29 #49461AnonymousInactiveToggling permalinks won’t break anything, right? I think I’ll try that first, because of the /events URL issue I mentioned. (Although now my EME events are using /eme-events instead.)
You do mention USER_RESERVEDSPACES in the release notes! So it’s certainly worth me trying the upgrade.
Thu 8 Mar 2012 at 18:37 #49462AnonymousInactiveNope, setting permalinks to default (numeric) didn’t change the behavior. I’m putting them back to Day and Name. My site really doesn’t want to let EME overlay the page the way it’s supposed to. It’s pulling up the right page, but not overlaying properly unless I insert a specific shortcode.
Thu 8 Mar 2012 at 22:23 #49463FrankyKeymasterDid you try disabling other plugings? If your theme is the issue, try another 3-column theme first …
Thu 8 Mar 2012 at 23:16 #49464AnonymousInactiveI tried deactivating every plugin and reactivating EME. No difference!
I will update this after trying another 3-column theme.
Edit: Tried a couple, and they mostly work (booking fields don’t appear very well, but at least some of it is there). So yeah, there’s something specific about this Academica theme and/or framework (that we’ve naturally put a lot of time into tweaking for our purposes). Sigh.
Is there something in a theme that would limit the kind of overlay EME does? (I’ve already tried replacing or disabling just about all the theme’s php and CSS. Just tried emptying widgets.php too; no change. Trying to selectively omit sections of functions.php; no improvement. I don’t see anything else in the theme!)
Fri 9 Mar 2012 at 08:32 #49465FrankyKeymasterMy guess is the theme is doing something weird for displaying a page … when I find the time next week, I’ll try the theme as well.
Tue 13 Mar 2012 at 21:47 #49466AnonymousInactiveGreat, please let me know if you get a chance to look at it this week. I’ve purposely wiped the EME data during a plugin upgrade to your latest version, and started mostly fresh, but the blank event body has not improved for me.
Thanks in advance.
Tue 13 Mar 2012 at 22:27 #49467FrankyKeymasterCan you check if this fixes it for you:
http://plugins.trac.wordpress.org/changeset/518773/events-made-easy
Wed 14 Mar 2012 at 15:31 #49468AnonymousInactiveBingo! That made all the difference. Thank you so much! (I also had to reapply the PayPal fix.)
However, perhaps in keeping with what you feared, it has also messed up my other columns — the widgets there listing “recent posts” and posts by WP categories now shows the summaries for THIS TEST EVENT for EVERY listing, repeated over and over in the various widget sections, for every recent post and category post.
Thankfully I think this affects only the Events page display, so I can go to a single column view for that if I have to.
UPDATE: I see you’ve already changed your post, from pointing at a previous discussion to an actual bugfix? I wrote the above based on commenting out the relevant $eme_event_parsed=1 line. Does that accomplish the same thing?
Wed 14 Mar 2012 at 15:36 #49469FrankyKeymasterIt should work better 🙂 Please do try the bugfix.
And … what is the paypal fix?
Wed 14 Mar 2012 at 15:42 #49470AnonymousInactive(The require_once thing that you helped me with already.)
Wed 14 Mar 2012 at 15:55 #49471FrankyKeymasterI see, that has been added to the code. Please do give feedback about the bugfix if you have the time.
Wed 14 Mar 2012 at 16:05 #49472AnonymousInactiveOkay, newb time here — I can’t find the right way to download only that new piece of the trunk. All the Trac links display the code in a numbered view I can’t copy/paste from, the Repository URL link just goes to the WP plugins page, and it doesn’t appear that http://plugins.svn.wordpress.org/events-made-easy/trunk/eme_events.php is using the newest code.
Also, even on Trac it shows an age of 16 hours?
Wed 14 Mar 2012 at 16:09 #49473FrankyKeymaster16 hours because I fixed it last night. And http://plugins.svn.wordpress.org/events-made-easy/trunk/eme_events.php is correct (search for e.g. “wp_current_filter” there).
The trac can be downloaded as a unified diff and then applied by using the patch command on linux. But you can just copy over those lines, or for the easiest method: download the file http://plugins.svn.wordpress.org/events-made-easy/trunk/eme_events.php
Wed 14 Mar 2012 at 16:48 #49474AnonymousInactiveOkay, cool, thank you. The new eme_events.php code works and my event body displays, but my surrounding column sidebar widgets for recent post and category post summaries are still messed up as I described above (every “post” summary shows text for the currently shown event, again and again).
I guess I will have to use a different template for my Events page. 🙁
Wed 14 Mar 2012 at 17:19 #49475FrankyKeymasterthat should not happen. I’ll try here as well, using the standard widgets for recent posts
Wed 14 Mar 2012 at 17:37 #49476AnonymousInactiveThank you very much (though I wouldn’t be at all surprised if this were due to my Academica theme again)…
Update: Yeah, it’s Proud’s Featured Post widget (that displays posts in a particular WP category) that’s getting broken here. The stock Recent Posts widget works okay.
Wed 14 Mar 2012 at 17:42 #49477AnonymousInactivePlease note that the post titles (and featured images too) ARE being pulled correctly into the sidebar widgets; it’s the content summaries that are getting pulled from the event instead.
As best I can tell, from their widgets.php, the relevant content-pulling code might be:
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p><?php the_content_limit('160'); ?></p>So I’m guessing that while you’ve covered “the_content”, it’s “the_content_limit” that is still an issue.
Wed 14 Mar 2012 at 19:23 #49478FrankyKeymasterhmmm … instead of using the_content in their function the_content_limit, it would be better to use the_excerpt(), that would not interfere with the_content() being used. Maybe you can ask them how to do that, or try it yourseld based on this:
Wed 14 Mar 2012 at 20:30 #49479AnonymousInactiveBeautiful. I hacked the_excerpt in myself in widgets.php, including the tweaks for functions.php listed at the codex, and EME is now working properly in my 3 column layout!
Thank you so much for all your effort helping me out.
Now to figure out how I’m going to maintain these hacks going forward…
What’s weird to me is that the widgets purportedly pull content from “posts” and yet EME really uses neither posts nor pages. Maybe it’s all really the same thing in WordPress…
Wed 14 Mar 2012 at 22:15 #49480FrankyKeymasterin fact wordpress uses something they call “the loop” and if in the loop and using the_content(), all filters for the_content are executed. In fact the problem is that you can’t indicate when not wanting to execute the filters (like e.g. when in a widget)
Wed 14 Mar 2012 at 23:17 #49481AnonymousInactiveHey thanks, that actually makes sense to me.
🙂
I’ve tweaked things a bit more, set up a dedicated Calendar page with shortcodes (because apparently I can’t do both a calendar grid and events list at the same time at /events) and have been exploring the other features. I am REALLY liking this project and recommending it my organization, thanks in large part to your great support.
Tue 15 Jan 2013 at 23:30 #49482AnonymousInactiveHi Franky, thank you for activating my account here.
The plugin is working fine on the default theme, but on my own theme the body is empty.
Also i tried to deactivate every other plugin.
Tried to rename the event page.
This is the website : http://www.lebanesechessfederation.com
Tue 15 Jan 2013 at 23:39 #49483FrankyKeymasterThen your theme is doing something fishy. What theme are you using? And again: please open a new thread for future issues, it is not very handy to re-open old threads.
Never mind: I see that you’re using a commercial theme called Guesthouse, so you should turn to them for support on this matter, since I can’t support commercial themes.
Wed 16 Jan 2013 at 00:01 #49484AnonymousInactive“Probably the plugin need some work on themes compatibility”, pretty sure this will be the response from my theme dev support.
anw, if you had a chance to refile my case, i would be thankful.
sry for re-opening old thread. just to avoid topic duplication.
Best regards,
Ludwig Arcache
Wed 16 Jan 2013 at 08:59 #49485FrankyKeymasterI test the plugin using several different themes (some which had problems in the past) and they all seem to work fine, but I can’t test commercial plugins since I would need to pay for them. And since you pay them support already …
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.