[TYPO3-core] RFC #11599: Bug: TYPO3 dies without an error message when the mysql-module for php is not loaded.
Oliver Hader
oliver at typo3.org
Wed Sep 2 00:05:37 CEST 2009
Hi Christian,
Christian Kuhn schrieb:
> Hey,
>
> Michael Knabe wrote:
>> Steffen Kamper wrote:
>>> I ask myself which provider does such mistakes?
>> Me (not as a provider but when installing on localhost).
>> "apt-get install apache2 libapache2-mod-php5 mysql-server" does NOT
>> install php5-mysql. It took me some time to figure that out.
>
> Something like that happened to me as well, a white page without any
> information is not convenient.
>
> Still we should set up a better script checking for dependencies at a
> later point like Masi suggested.
>
> I did some minor performance tests with this patch: I didn't see a big
> loss, my values where within usual testing variance.
>
> Attached patch uses a simple die(), this is used in this class at some
> other places, and imho t3lib_BEfunc::typo3PrintError is a bit of a
> misuse at this point.
typo3PrintError() was fine. Better would be throwing an exception - if
we already had a proper error and exception handling.
olly
--
Oliver Hader
TYPO3 Release Manager 4.3
More information about the TYPO3-team-core
mailing list