Bug #35794

1-2-3 install tool triggers writing logs to db before sys_log is table is created

Added by Steffen Müller about 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
-
Start date:
2012-04-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:

Description

When setting up a fresh installation, 1-2-3 install tool calls t3lib_div::sysLog(). Then t3lib_db gets trapped in a recursion, trying to log that it could not write to log table.

  1. We need to handle logging differently until logging tables are created and logging is configured. Maybe we ship a default logging configuration.
  2. t3lib_db should not use syslog/db writer, because chances are high that it runs into a chicken-egg problem.
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP Fatal error:  Maximum function nesting level of '100' reached, aborting! in /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/class.t3lib_log_level.php on line 135
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP Stack trace:
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP   1. {main}() /var/www/typo3/core-dev/typo3_src-incubator/typo3/install/index.php:0
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP   2. require() /var/www/typo3/core-dev/typo3_src-incubator/typo3/install/index.php:147
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP   3. tx_install->init() /var/www/typo3/core-dev/typo3_src-incubator/typo3/init.php:347
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP   4. tx_install->stepOutput() /var/www/typo3/core-dev/typo3_src-incubator/typo3/sysext/install/mod/class.tx_install.php:489
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP   5. tx_install->checkTheConfig() /var/www/typo3/core-dev/typo3_src-incubator/typo3/sysext/install/mod/class.tx_install.php:867
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP   6. tx_install->checkDatabase() /var/www/typo3/core-dev/typo3_src-incubator/typo3/sysext/install/mod/class.tx_install.php:1265
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP   7. t3lib_DB->sql_pconnect() /var/www/typo3/core-dev/typo3_src-incubator/typo3/sysext/install/mod/class.tx_install.php:3121
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP   8. t3lib_div::sysLog() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/class.t3lib_db.php:1106
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP   9. t3lib_log_Logger->log() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/class.t3lib_div.php:5465
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  10. t3lib_log_Logger->notifyWriters() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/class.t3lib_log_logger.php:150
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  11. t3lib_log_writer_Database->writeLog() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/class.t3lib_log_logger.php:164
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  12. t3lib_DB->exec_INSERTquery() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/writer/class.t3lib_log_writer_database.php:76

[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  13. t3lib_DB->debug() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/class.t3lib_db.php:115
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  14. t3lib_log_Logger->error() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/class.t3lib_db.php:1388
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  15. t3lib_log_Logger->log() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/class.t3lib_log_logger.php:216
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  16. t3lib_log_Logger->notifyWriters() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/class.t3lib_log_logger.php:150
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  17. t3lib_log_writer_Database->writeLog() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/class.t3lib_log_logger.php:164
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  18. t3lib_DB->exec_INSERTquery() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/writer/class.t3lib_log_writer_database.php:76

[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  19. t3lib_DB->debug() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/class.t3lib_db.php:115
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  20. t3lib_log_Logger->error() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/class.t3lib_db.php:1388
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  21. t3lib_log_Logger->log() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/class.t3lib_log_logger.php:216
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  22. t3lib_log_Logger->notifyWriters() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/class.t3lib_log_logger.php:150
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  23. t3lib_log_writer_Database->writeLog() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/class.t3lib_log_logger.php:164
[Mon Apr 09 16:55:01 2012] [error] [client 127.0.0.1] PHP  24. t3lib_DB->exec_INSERTquery() /var/www/typo3/core-dev/typo3_src-incubator/t3lib/log/writer/class.t3lib_log_writer_database.php:76

[repeat...]

Also available in: Atom PDF