Item pagination - fatal error: allowed memory exhausted
I'm not sure what theme_activit_item_list_block() is but I suspect you want this:

theme('pager', array('quantity' =&gt; count($items)));


instead of this:

theme('pager', array('quantity', count($items)));