Cannot redeclare class MultilingualPackage
Permalink Browser Info Environment
First, thanks for the great add-on.
We have a concrete5 5.5 installation with internationalization 1.0.3 and Designer Content 3.0 installed. When i start the Zend debugger to verify code, then i get the following error:
Cannot redeclare class MultilingualPackage
When i remove the Designer Content Add-on, the error disappears.
We have a concrete5 5.5 installation with internationalization 1.0.3 and Designer Content 3.0 installed. When i start the Zend debugger to verify code, then i get the following error:
Cannot redeclare class MultilingualPackage
When i remove the Designer Content Add-on, the error disappears.
Type: | Discussion |
---|---|
Status: | New |
I have installed the add-on via the marketplace. I don't have made any modification to the code on the module.
I think it's a problem with auto-loading of class files. In a free second, I'll give it a try to resolve the problem.
Thanks for your help.
I think it's a problem with auto-loading of class files. In a free second, I'll give it a try to resolve the problem.
Thanks for your help.
i had the same issue with the Mobile_Detect plugin. problem was that i was including the class manually via
though it was already loaded via the autoloader. After removing the require_once all was fine :)
require_once 'Mobile_Detect.php';
though it was already loaded via the autoloader. After removing the require_once all was fine :)
I'm not sure what could possibly be causing this error -- there is absolutely nothing having to do with MultilingualPackage in teh Designer Content code. Did you get the Designer Content addon from the C5 marketplace, or from somewhere else (perhaps a translated package -- I think @taos in Japan had that once)? Did you modify the addon code at all?
Unfortunately I don't know what I could do to help -- I would try asking the author of the Multilingual package about the issue.
Sorry :(