newInstanceArgs in 5.1.3 $piwik_minimumPHPVersion = '5.1.3RC'; $piwik_currentPHPVersion = PHP_VERSION; $minimumPhpInvalid = version_compare($piwik_minimumPHPVersion , $piwik_currentPHPVersion ) > 0; if( $minimumPhpInvalid ) { $piwik_errorMessage .= "
To run Piwik you need at least PHP version $piwik_minimumPHPVersion
Unfortunately it seems your webserver is using PHP version $piwik_currentPHPVersion.
Please try to update your PHP version, Piwik is really worth it! Nowadays most web hosts support PHP $piwik_minimumPHPVersion.
Also see the FAQ: My Web host supports PHP4 by default. How can I enable PHP5?
"; } else { $piwik_zend_compatibility_mode = ini_get("zend.ze1_compatibility_mode"); if($piwik_zend_compatibility_mode == 1) { $piwik_errorMessage .= "Piwik is not compatible with the directive zend.ze1_compatibility_mode = On
It seems your php.ini file has
zend.ze1_compatibility_mode = OnIt makes PHP5 behave like PHP4. If you want to use Piwik you need to set
zend.ze1_compatibility_mode = Offin your php.ini configuration file, and restart your web server. You may have to ask your system administrator."; } if(!class_exists('ArrayObject')) { $piwik_errorMessage .= "
Piwik and Zend Framework require the SPL extension
It appears your PHP was compiled with
--disable-spl. To enjoy Piwik, you need PHP compiled without that configure option."; } if(!extension_loaded('session')) { $piwik_errorMessage .= "
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."; } if(!function_exists('ini_set')) { $piwik_errorMessage .= "
Piwik and Zend_Session require the ini_set()
function
It appears your PHP has disabled this function. To enjoy Piwik, you need remove
ini_setfrom your
disable_functionsdirective in php.ini, and restart your webserver."; } } /** * Displays info/warning/error message in a friendly UI and exits. * * @param string $message Main message, must be html encoded before calling * @param bool|string $optionalTrace Backtrace; will be displayed in lighter color * @param bool $optionalLinks If true, will show links to the Piwik website for help */ function Piwik_ExitWithMessage($message, $optionalTrace = false, $optionalLinks = false) { @header('Content-Type: text/html; charset=utf-8'); if($optionalTrace) { $optionalTrace = 'Backtrace:
'.$optionalTrace.''; } if($optionalLinks) { $optionalLinks = '
'.$message.'
'. $optionalTrace .' '. $optionalLinks; echo $headerPage . $content . $footerPage; exit; } if(!empty($piwik_errorMessage)) { Piwik_ExitWithMessage($piwik_errorMessage, false, true); }