@anonymous-piwik-user opened this issue on November 28th 2008

After upgrading to Piwik 2.2.26, conserving the Piwik 2.2.25 config.ini.php, i've got this error on a white page:

Fatal error: Cannot redeclare class Zend_Config_Ini in /var/www/piwik/libs/Zend/Config/Ini.php on line 0

Not knowing the Zend framework, i can't help you more. Keywords: zend config fatal

@anonymous-piwik-user commented on November 28th 2008

Ok, my bad, i've done strange changes to my config.ini.php.

This error was due to theses lines in my config.ini.php:

[PluginsInstalled] PluginsInstalled[] = Login PluginsInstalled[] = AdminHome PluginsInstalled[] = UsersManager PluginsInstalled[] = SitesManager PluginsInstalled[] = Installation PluginsInstalled[] = PluginsAdmin PluginsInstalled[] = API PluginsInstalled[] = Widgetize PluginsInstalled[] = Home PluginsInstalled[] = Actions PluginsInstalled[] = Dashboard PluginsInstalled[] = Referers PluginsInstalled[] = UserSettings PluginsInstalled[] = UserCountry PluginsInstalled[] = VisitsSummary PluginsInstalled[] = VisitFrequency PluginsInstalled[] = VisitTime PluginsInstalled[] = VisitorInterest PluginsInstalled[] = ExamplePlugin PluginsInstalled[] = Provider PluginsInstalled[] = CorePluginsAdmin PluginsInstalled[] = CoreAdminHome PluginsInstalled[] = CoreHome PluginsInstalled[] = LanguagesManager PluginsInstalled[] = ExampleAPI PluginsInstalled[] = ExampleRssWidget PluginsInstalled[] = ExampleFeedburner PluginsInstalled[] = Feedback PluginsInstalled[] = CoreUpdater

[Plugins_LogStats] Plugins_LogStats[] = Provider

[Plugins_Tracker] Plugins_Tracker[] = Provider

So i guess this bug should be transformed in "make piwik give verbose errors on faulty config files."

@robocoder commented on December 11th 2008

Are you running Piwik on a Windows-based web server?

@anonymous-piwik-user commented on December 11th 2008

No, i'm running it on Debian GNU/Linux 4.0 Etch , and i use Lighttpd as server. PHP5 is run in fcgi.

Hope this help.

I've played with my configuration file config.ini.php to get the two lines that are change in default.ini.php in the auto archiving tutorial to be changed in config.ini.php. It was the source of the problem.

@mattab commented on December 11th 2008

this is actually the same as bug #26 this should be easy to fix and is to be fixed in this roadmap (next 2 months)

the problem happens in core/Config.php ; the implementation is faulty. Instead of reading both config files and merging sections, it should simply merge both files and read it once with zend_config. We should fix it.

@mattab commented on February 11th 2009

see #5446

This issue was closed on February 11th 2009
Powered by GitHub Issue Mirror