You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have php ini_set function disabled. How can I use Matomo without it?
Error in Matomo: Matomo and Zend_Session require the ini_set() function It appears your PHP has disabled this function. To enjoy Matomo, you need remove ini_set from your disable_functions directive in php.ini, and restart your webserver.
The text was updated successfully, but these errors were encountered:
I don't see why the use of the function can't be controlled with an option in config like: use_iniset=true|false with a note of the expected or needed values that should be set manually by the user in their ini if set to false.
I searched through the code and the use of the function is not very many. I simply commented out this block of code in: matomo/core/testMinimumPhpVersion.php
// if (!function_exists('ini_set')) {
// $piwik_errorMessage .= "<p><strong>Matomo and Zend_Session require the <code>ini_set()</code> function</strong></p>
// <p>It appears your PHP has disabled this function.
// To enjoy Matomo, you need remove <pre>ini_set</pre> from your <pre>disable_functions</pre> directive in php.ini, and restart your webserver.</p>";
// }
We are currently using ini_set in a lot of places and it's not just simply adding a config setting to prevent calling it, we would also need to test everything still works when ini_set is disabled, we would need to ensure nothing breaks, maintain it, etc. Plus we're using libraries that maybe do an ini_set etc. I can currently only recommend to enable the ini_set feature.
I have php ini_set function disabled. How can I use Matomo without it?
Error in Matomo: Matomo and Zend_Session require the ini_set() function It appears your PHP has disabled this function. To enjoy Matomo, you need remove ini_set from your disable_functions directive in php.ini, and restart your webserver.
The text was updated successfully, but these errors were encountered: