Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API problem: Fatal error: Cannot redeclare class MagicObject (0.2.22) #427

Closed
anonymous-matomo-user opened this issue Nov 21, 2008 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

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-matomo-user
Copy link
Author

OK, fixed. Went into that file and removed:

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

API now functions.

@mattab
Copy link
Member

mattab commented Nov 24, 2008

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
Copy link
Member

mattab commented Nov 3, 2013

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants