Support » Plugin: 301 Redirects - Easy Redirect Manager » Admin does not work on sites with a lot of posts

  • Resolved athlonHarley


    I have a couple of sites that I am upgrading the eps plugin on and am running into an issue in the admin. Both sites contain a lot of content, as a result the admin crashes because it is querying for the post to list in the select box but simply cannot handle the amount of memory required to load that many posts. If I put a limit on your get_posts query args the plugin works as expected. I was also getting the white screen error when I did not have the limit in place and tried to use the clear cache button on the import/export tab.

Viewing 3 replies - 1 through 3 (of 3 total)
  • eggplantstudios



    I will add an option to disable the Page/Post selector boxes. Hopefully that helps with big, content heavy websites.

    Until then, I hope this solution can work for you!




    Can you please post your modification on the get_posts with the limit. I’m having the same issue and can’t seem to find the right place to put the limit on the query.



    Never mind I found it.

    For those who are wondering:

    Change line 17 of class.drop-down-pages.php to limit the query to something more manageable. My example below (changed from -1 to 25)

     * Drop Down Pages
     * Will return a heirarchical list of pages in a key->value pair.
     * @since 2.1.0
     * @param array|string $args Optional. Override default arguments.
     * @return string or HTML content, if not displaying.
    if( !function_exists('eps_dropdown_pages')) {
    function eps_dropdown_pages($args = '') {
        $defaults = array(
            'posts_per_page'   => 25,
            'offset'           => 0,
            'category'         => '',
            'orderby'          => 'post_title',
            'order'            => 'DESC',
            'include'          => '',
            'exclude'          => '',
            'meta_key'         => '',
            'meta_value'       => '',
            'post_type'        => 'post',
            'post_mime_type'   => '',
            'post_parent'      => '',
            'post_status'      => 'publish',
            'suppress_filters' => true,
            'depth'            => 5
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Admin does not work on sites with a lot of posts’ is closed to new replies.