Gravity Forms API exits the page when fetching more than 2000 entries

I have this weird behaviour when trying to fetch more than 2000 records via the Gravity Forms api, the methods used for fetching the records is as follows:

$search_criteria["field_filters"]["mode"] = "all";

$all_entries_submitted = GFAPI::get_entries(2,$search_criteria,null,array('offset' => 0, 'page_size' => 3000 ));

Any ideas why could this be?

Read More

Thanks!

Related posts

1 comment

  1. Found the answer to my problem:

    When I increased the allowed memory size in php to a huge number (1gb) the script eventually returned the records (after a few minutes)

    ini_set('memory_limit','1000M');
    $search_criteria["field_filters"]["mode"] = "all";
    
    $all_entries_submitted = GFAPI::get_entries(2,$search_criteria,null,array('offset' => 0, 'page_size' => 3000 ));
    

Comments are closed.