Fatal Error in archiver with Turkish locale
|Reported by:||jnmbk||Owned by:||vipsoft|
I'm using Piwik on a system with tr_TR.UTF-8 locale and this error shows up when running archiver:
Fatal error: Class 'Piwik_Db_Adapter_MysqlI' not found in /my_path_to_piwik/piwik/core/Db/Adapter.php on line 41
And that line is:
return 'Piwik_Db_Adapter_' . str_replace(' ', '_', ucwords(str_replace('_', ' ', strtolower($adapterName))));
Problem is strtolower doesn't lower MysqlI properly, it should lower to "mysqli" but in Turkish locale lower letter for "I" is "ı" so that makes "mysqlı". I think you should use a locale independent (or working only in latin1 locale) strtolower here, but I don't know what is the proper way to do that in php.
I run archiver with LC_ALL=C for a workaround and it works fine that way.
Change History (4)
comment:1 Changed 4 years ago by vipsoft (robocoder)
- Milestone set to 0 - Piwik 0.6.3
- Owner set to vipsoft