Can't install Piwik: 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


#1

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:

  1. Piwik + default hosting settings http://piwik.ivserv2.tmweb.ru/piwik/ (work)
  2. Piwik + necessary hosting settngs (.htacces above) http://piwik.ivserv2.tmweb.ru/piwik-mb/ (doesn’t work)
  3. Twig sample + default hosting settings http://piwik.ivserv2.tmweb.ru/twig_demo-mb/ (work)
  4. Twig sample + necessary hosting settings (.htacces above) http://piwik.ivserv2.tmweb.ru/twig_demo/ (work)

(Matthieu Aubry) #2

can you remove this htaccess file and try again?


#3

Matt, se links above.

Look at http://piwik.ivserv2.tmweb.ru/piwik/ - this is demo without .htaccess
But in real project i can’t remove .htaccess