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
When trying to access Piwik front-end you will get a fatal error: Fatal error: Maximum function nesting level of '100' reached, aborting! in [...]\piwik\vendor\monolog\monolog\src\Monolog\Logger.php on line 441
This seems to be due to the SQL statements being automatically logged at DEBUG level: when the logger of type DatabaseHandler uses its write method, it calls the standard Db::query method which itself will try to log the log insertion statement, hence calling again the logging method and triggering an infinite loop.
Not sure what the best way to fix it (implementing a specific non-logged query method in the Db class, adding an extra parameter in the existing methods to prevent logging, putting in place a switch to stop/start logging..)?
Regards.
Jonathan
The text was updated successfully, but these errors were encountered:
Hello,
Configure your logging setting to the below:
When trying to access Piwik front-end you will get a fatal error:
Fatal error: Maximum function nesting level of '100' reached, aborting! in [...]\piwik\vendor\monolog\monolog\src\Monolog\Logger.php on line 441
This seems to be due to the SQL statements being automatically logged at DEBUG level: when the logger of type DatabaseHandler uses its
write
method, it calls the standardDb::query
method which itself will try to log the log insertion statement, hence calling again the logging method and triggering an infinite loop.Not sure what the best way to fix it (implementing a specific non-logged query method in the Db class, adding an extra parameter in the existing methods to prevent logging, putting in place a switch to stop/start logging..)?
Regards.
Jonathan
The text was updated successfully, but these errors were encountered: