@anonymous-piwik-user opened this Issue on November 21st 2008

Just installed 0.2.22 clean as couldn't install over much older version. When I clicked on the API link in the upper left, I receive this error:

Fatal error: Cannot redeclare class MagicObject in /var/www/html/mydirectory/plugins/ExamplePlugin/API.php on line 24.
Keywords: API

@anonymous-piwik-user commented on November 22nd 2008

OK, fixed. Went into that file and removed:

class MagicObject
{
function Incredible(){ return 'Incroyable'; }
protected $wonderful = 'magnifique';
public $great = 'formidable';
}

API now functions.

@mattab commented on November 24th 2008 Owner

Hello,

If you still experience the problem
Fatal error: Cannot redeclare class MagicObject in /home/www/piwik/plugins/ExamplePlugin/API.php on line 24

This bug happens for a small number of users that were using old versions of Piwik.

Please do the following:

  • download your config/config.ini.php on your computer
  • delete all your piwik files
  • download the last piwik version, and upload it on your webserver
  • upload your old config/config.ini.php in the new piwik directory
  • go with your web browser to Piwik this should trigger the update process

Please let us know if you still experience any problem.

@mattab commented on November 3rd 2013 Owner

In 0b950893c09062cb4b1fb8396a1d68e2938a1d0b: Refs #427 Adding fixture of an event without URL defined

This Issue was closed on November 3rd 2013
Powered by GitHub Issue Mirror