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

Detect faulty config files #447

Closed
anonymous-matomo-user opened this issue Nov 28, 2008 · 5 comments
Closed

Detect faulty config files #447

anonymous-matomo-user opened this issue Nov 28, 2008 · 5 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. duplicate For issues that already existed in our issue tracker and were reported previously.
Milestone

Comments

@anonymous-matomo-user
Copy link

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

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

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

@anonymous-matomo-user
Copy link
Author

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

mattab commented Dec 11, 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](https://github.com/piwik/piwik/blob/master/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
Copy link
Member

mattab commented Feb 11, 2009

see #5446

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. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

3 participants