WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
BuddyPress group events exceeds increased memory limit (16 posts)

  1. dsdmdesign
    Member
    Posted 2 years ago #

    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/

  2. dsdmdesign
    Member
    Posted 2 years ago #

    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?

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    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.

  4. dsdmdesign
    Member
    Posted 2 years ago #

    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.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

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

  6. dsdmdesign
    Member
    Posted 2 years ago #

    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?

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    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 :)

  8. dsdmdesign
    Member
    Posted 2 years ago #

    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.

  9. dsdmdesign
    Member
    Posted 2 years ago #

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

  10. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    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));

  11. dsdmdesign
    Member
    Posted 2 years ago #

    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"?

  12. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    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)

  13. dsdmdesign
    Member
    Posted 2 years ago #

    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...

  14. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    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

  15. dsdmdesign
    Member
    Posted 2 years ago #

    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?

  16. dsdmdesign
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic