WordPress.org

Ready to get started?Download WordPress

Forums

EventPress
Extreme Use Case (3 posts)

  1. Micah Wood
    Member
    Posted 3 years ago #

    Kunalb,

    It appears that I may have encountered a limitation to the EventPress (and/or) BuddyPress Custom Posts plugin(s).

    I have implemented a CSV upload for EventPress on the site I have been working on. We uploaded just over 2,000 events. These events begin as 'pending' until an admin changes the status to 'publish'. Once I publish 630 events, the events directory crashes and I get Google Chrome's "Oops! This link appears to be broken!" message. I un-publish 10 events (reverting back to 620 published events, still all 2,000 events are in the database) and the page works just fine.

    I understand that the default directory does not have paging, which I figured was the issue. So I adapted the custom directory page I created to display only 20 at a time and made sure I wasn't returning more than 20 results from my MySQL query. Still, I can publish or un-publish those 10 events (going between 620 and 630 events) and toggle the crashing of the events directory.

    I have checked my error logs and found nothing. I have optimized and repaired the database with no result. We have well over 630 posts for a couple of other custom post types (not created using BuddyPress Custom Posts) that we have uploaded via CSV the same way and have not had any issues with those directory pages.

    Any ideas as to what might be going on?

    http://wordpress.org/extend/plugins/eventpress/

  2. kunalb
    Member
    Plugin Author

    Posted 3 years ago #

    Interesting—you seem to be taking EventPress way beyond what I had imagined! (Same site as before?)

    Anyways, I think the issue will be that the query for the posts is done in the controller.php file and then re-winded for displaying on the events page—

    so to modify this query, you'll have to use a filter called bpcp_ep_event_cookie_query, alternatively you can use bpcp_cookie_query and check the second argument that has been passed to it (it should be ep_event). This is part of the BPCP plugin and not eventpress.

    Add a filter to modify this query (the value passed to the filter will be the arguments for query_posts) and change 'nopaging' to false, and also use standard wordpress query parameters and you should be able to get it working.

    Hope that helps.

  3. Micah Wood
    Member
    Posted 3 years ago #

    Yep.. same site! I just used the filter to obliterate the query since I had to write my own query for the directory page to include some advanced search options plus paging. Works like a charm now...

    Thanks for a great plugin and having hooks in just the right places!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags