diff options
author | Martin Keckeis <martin.keckeis1@gmail.com> | 2014-08-28 18:01:02 +0400 |
---|---|---|
committer | Martin Keckeis <martin.keckeis1@gmail.com> | 2014-08-28 18:01:02 +0400 |
commit | 4201dcfb9e7903c37dddb257e02952c6d9eb82cc (patch) | |
tree | 86aa09ba281a856478c0a391e64360c580f94b14 /core | |
parent | a9c30c67102b2d9f25bb7c30678aa97a34ab0914 (diff) |
Update testMinimumPhpVersion.php
Diffstat (limited to 'core')
-rw-r--r-- | core/testMinimumPhpVersion.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/testMinimumPhpVersion.php b/core/testMinimumPhpVersion.php index 06fd498a0e..18ccc2c369 100644 --- a/core/testMinimumPhpVersion.php +++ b/core/testMinimumPhpVersion.php @@ -30,6 +30,13 @@ if ($minimumPhpInvalid) { <p>It appears your PHP was compiled with <pre>--disable-session</pre>. To enjoy Piwik, you need PHP compiled without that configure option.</p>"; } + + if (!function_exists('json_encode')) { + $piwik_errorMessage .= "<p><strong>Piwik requires the php5-json extension which provides the functions <code>json_encode()</code> and <code>json_decode()</code></strong></p> + <p>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: <code>sudo apt-get install php5-json</code>. <br/>Then restart your webserver and refresh this page.</p>"; + } + if (!function_exists('ini_set')) { $piwik_errorMessage .= "<p><strong>Piwik and Zend_Session require the <code>ini_set()</code> function</strong></p> |