Hello
I am using piwik 3.1.1 with php 7.1.5 and Zend Engine 3.1.0. I have installed extensions mysqli, pdo_mysql, ctypes, simplexml and compiled with session
When i try to launch php console core:update (or visitorgenerator:generate-visits … for exemple), it fails directly with this message :
Piwik and Zend_Session require the session extension
It appears your PHP was compiled with --disable-session.
To enjoy Piwik, you need PHP compiled without that configure option.
Piwik requires the php5-json extension which provides the functions json_encode() and json_decode()
It appears your PHP has not yet installed the php5-json extension.
To use Piwik, please ask your web host to install php5-json or install it yourself, for example on debian system: sudo apt-get install php5-json.
Then restart your webserver and refresh this page.
Hi
Thanks for your reply. Json extension is installed (by default), I can see it in phpinfo(). The quoted error message seems not correspond to php installation… Ask for php5-json in 7.1.5 php version ?
You could try to hardcode your php 7.2 binary into the console file. By default it uses /usr/bin/env to guess the correct binary and it seems like, this does not work for you.
So run which php copy the given path and replace the /usr/bin/env php shebang in the first line of the console with the path.
Funny quote for this problem:
The advantage of #!/usr/bin/env python is that it will use whatever python executable appears first in the user’s $PATH .
The disadvantage of #!/usr/bin/env python is that it will use whatever python executable appears first in the user’s $PATH .
So Matomo is working on PHP7.2 in general? Or might it be some plugin which causes this error? If I look into the Matomo System requirements, I only see minimum values, no maximum values. And Matomo is working fine on PHP7.1 or 7.0 on the same server.