[TYPO3-core] RFC: another enhancement to the DB connect method and error display in the FE
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Tue Sep 11 23:34:04 CEST 2007
Hi!
Patch request for trunk.
Problem 1: t3lib_db::sql_pconnect() logs errors, but doesn't report them
to the caller. UI driven scripts cannot display detailed errors.
Problem 2: While logging is nice, novice users/admins are probably not
aware of the logging feature (see other post for a remedy). They would
need a direct information in the UI.
Solution: Add an optional message parameter that returns any Mysql
errors. Luckily this can be done with PHP 5.x. Show the error message in
class.tslib_fe.php, but ONLY if the IP is within the devIPmask-Range.
Maybe devIPmask ist not appropriate. We could add a adminIPmask then.
Masi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: db_connect_message.diff
Type: text/x-diff
Size: 4949 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070911/83377f2d/attachment.diff
More information about the TYPO3-team-core
mailing list