PHP client: filter limit

Comments

4 comments

  • Andreas Haugstrup Pedersen

    What is the error? "Some error" is not very descriptive :)

    0
    Comment actions Permalink
  • Jacob Arvidsson

    Sorry, Had to learn how to show php error messages first. I get the error: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 72 bytes) in /Applications/MAMP/htdocs/wordpress/wp-content/themes/arkad_2014/podio-php/lib/PodioObject.php on line 249

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    There's your answer. :)

    Your PHP memory limit is only 40 megabytes which is rather low. So PHP is running out of memory when it's trying to run both Wordpress and keep the Podio objects in memory. I would at least double your PHP memory limit.

    /Andreas

    0
    Comment actions Permalink
  • Coreigh Utegaard

    I have the exact same experience!
    My script is authenticated and returns results but not ALL the results. I can get as many as 50 using the array('limit'=>xx) option. My app has 110 items.

    ALSO, if I do 'print_r(PodioItem::filter($app_id))' the output DOES report '[total] => 110' But the array dump is only 20 items.

    My php memory limit is set at 512MB. And 'print_r(error_get_last());' is empty (error reporting is turned on).

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk