Plz can you try following:
Change line 26 from
public function onContentPrepare( $context, &$article, &$params, $limitstart)
to
public function onContentPrepare( $context, &$article, &$params, $limitstart=0)
This should fix the problem.
Does it work?