[TYPO3-core] RFC #16172: Accessing FE in fresh install fails with RuntimeException "No database selected"
Steffen Gebert
steffen at steffen-gebert.de
Wed Dec 29 11:23:59 CET 2010
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=16172
>
> Problem:
> In 0015576 a new Exception-Handler was implemented. In the current trunk
> it will used for the the errors on connecting to the database in the
> Frontend. In the past there was a error message without the php-methode
> "exit". The error-message was shown a part of second and then typo3
> redirected to the install tool in a fresh install. And now there is no
> redirect after the RuntimeException.
Sorry Lars for not reviewing your pretty important patch!
This one fixes the Introduction Package (-> important!), as it's
currently not possible to enter the 1-2-3(-4) mode, when hitting the FE
website of the IP (it redirects only, when you try to access the BE).
Attached is an updated version.
One comment:
The removed try/catch was added by #14254 (Fresh install does not
redirect to Install Tool when mysql is not available). As we before
check that DB host and database are configured, we don't have to repeat
this in the catch block now and pass the exception through. Instead, the
exception now goes it way downwards in the stack.
The only point, when sql_pconnect() throws an exception is currently,
when no mysql is available. The behavior after this patch is still the
same: Redirect to Install Tool (before the connect), if no DB (and host)
configured or an error message, if connection failed due to lack of MySQL.
Kind regards
Steffen
--
Steffen Gebert
TYPO3 Core Team Member
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16172_v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101229/428f37a2/attachment.txt>
More information about the TYPO3-team-core
mailing list