Support » Plugins and Hacks » Events Manager » [Plugin: Events Manager] BuddyPress group events exceeds increased memory limit

  • I am using buddypress with the events managaer plugin, and when I go to see the events in a group (there are a LOT), it exceeeds the memory limit. I’ve even increased the limit to 128M. Does it display ALL the events at once, without pagination? Is there any way to make it so that it does paginate? Is there anything I can do to decrease the load?

    http://wordpress.org/extend/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 15 total)
  • I ended up increasing the memory limit to 256 in order to get it to show up, and it doesn’t even show up on a page with the site’s header/footer/sidebar/etc. It’s just outputted with no style whatsoever. Am I missing something here?

    Also it seems to show all events in the current month. Is there a way to make it week instead of month?

    Plugin Author Marcus

    (@netweblogic)


    NetWebLogic Support


    how many events are you talking about here? sites with lots of events do need to increase mem limits but 256 should be fine usually.

    that’s true, pagination isn’t possible atm (will add eventually), although you could add it if you modified the group events template file.

    Thank you for your response!

    Okay, understood. Though I’m not quite sure how to add pagination – it couldn’t be TOO hard though.

    Is it supposed to show up the way it’s showing up? It seems like it’s supposed to show up within the content area under the “events” link in the buddypress navigation. Instead it’s just outputting the information with no template at all.

    Plugin Author Marcus

    (@netweblogic)


    NetWebLogic Support


    i’ll look into this asap since i agree that pagination should be possible there.

    Thank you! I appreciate it.

    Is the fact that it’s also rendering outside of the them (header, sidebar, footer, nav, buddypress nav, etc.) something on my end or is that a generally odd thing with the Events Manager template too?

    Plugin Author Marcus

    (@netweblogic)


    NetWebLogic Support


    outside of them (not sure what you mean)? my guess is it’s a theme issue, but guessing as i didn’t get the question 🙂

    Sorry about that. If you go to this group page (forgive that I haven’t done any design work on this site yet so it’s sort of all over the place) and click on the “events” link, it shows this. You would expect the event listing to show up under the events tab in the group page just like the other tabs, but it just shows up with the info on the page and nothing else.

    Also, that page might not load at all and you might get a 500 error. There are a TON of events (multiple weekly recurring events per day) and it’s really screwing with the server.

    When there’s a 500 error, the error in my logs is “Premature end of script headers: index.php”

    Plugin Author Marcus

    (@netweblogic)


    NetWebLogic Support


    that’s probably why, 4000 on one page is a bit much 🙂 what you could do is try changing template to one that includes pagination, like

    EM_Events::output(array('group'=>'my','pagination'=>1));

    Ok thanks!

    Now I have:
    $events = EM_Events::get(array('group'=>'my', 'pagination'=>1));
    in my my-group-events.php, and:
    $events = EM_Events::get(array('group'=>$bp->groups->current_group->id,'scope'=>'future', 'pagination'=>1));
    in my group-events.php

    Should I change “get” to “output”?

    Plugin Author Marcus

    (@netweblogic)


    NetWebLogic Support


    yes, that should work (and then if you want to change the format i.e. placeholders, you need to pass that in as a format argument)

    It doesn’t seem to change anything… http://www.supermegabig.com/groups/standup/events/

    I have the templates in my theme /plugins/events-manager/, and deleted the ones in the plugins/ folder, but nothing’s seemed to change…

    Plugin Author Marcus

    (@netweblogic)


    NetWebLogic Support


    you shouldn’t delete anything in the plugins folder, but the above should work. we will probably do something similar when we change the tempaltes

    Ah okay, I think I misunderstood where it says “Bear in mind that once you’ve found what you want to modify you should delete the other files” on the documentation on your site. I’m guessing that actually means to keep all templates in the plugins folder but only the modified ones in the themes folder?

    Also so far I still just keep getting a 500 error. I doubt that it would trigger a 500 error if it’s actually paginating, but maybe it’s paginating and shows up correctly and there’s a 500 error for some other reason, which I guess just adds a problem to the situation that I’ll have to figure out.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Plugin: Events Manager] BuddyPress group events exceeds increased memory limit’ is closed to new replies.