set_exception_handler() expects the argument (Piwik_ExceptionHandler)

Hi Piwik people.

I am using piwik since few months, and to install the latest update. i followd the on-browser instruction as the appeared.

Then it asked to do the following:

It appears the composer tool is not yet installed. You can install Composer in a few easy steps:
In the piwik directory, run in the command line the following (eg. via ssh):

 curl -sS | php 

 php composer.phar install

This will initialize composer for Piwik and download libraries we use in vendor/* directory.

Then reload this page to access your analytics reports.

Note: if for some reasons you cannot installer composer, instead install the latest Piwik release from

After doing as per instructions, no i am getting the follwoing error.

set_exception_handler() expects the argument (Piwik_ExceptionHandler) to be a valid callback 
in '/srv/www/VHOSTDIR/public_html/piwik/index.php' at the line 41

#0  Piwik_ErrorHandler(...) called at [:]
#1  set_exception_handler(...) called at [/srv/www/VHOSTDIR/public_html/piwik/index.php:41]

I need help to fix this error.


try to reupload all files from piwik 2.0.2 on top of your files, it looks like some files were not uploaded properly