I’ve got a project made in UTF-8 and want to install Piwik within it.
Hosting which i use is configured for sites in CP-1251. All my projects except Piwik works wonderful when i put such lines in .htaccess:
php_value display_errors 1
php_value mbstring.func_overload 2
php_value mbstring.internal_encoding UTF-8
But with such settings Piwik installation throws an error:
An exception has been thrown during the rendering of a template (“parse error: failed at content: '· ';
line: 3682”) in “@Installation/layout.twig” at line 40.
I thought this is Twig error, but simple Twig test works great with any mbstring settings.
Right now piwik downloaded from stable git branch.
Here are examples:
- Piwik + default hosting settings http://piwik.ivserv2.tmweb.ru/piwik/ (work)
- Piwik + necessary hosting settngs (.htacces above) http://piwik.ivserv2.tmweb.ru/piwik-mb/ (doesn’t work)
- Twig sample + default hosting settings http://piwik.ivserv2.tmweb.ru/twig_demo-mb/ (work)
- Twig sample + necessary hosting settings (.htacces above) http://piwik.ivserv2.tmweb.ru/twig_demo/ (work)