[TYPO3-UG Dutch] Redirect naar statische pagina bij Database Error

Joost van Berckel vanberckel at ict.eur.nl
Fri Jan 25 16:48:33 CET 2013


Beste Arjen, Jigal en Gerrit,

Bedankt voor de reacties. Ik ga ermee aan de slag.

Mvg,

Joost

Op 25-1-2013 13:09, Gerrit Vijlbrief - Typohosting schreef:> Hoi Joost,
 > De exception komt uit typo3/init.php:
 >
 > if (!TYPO3_db_host && !TYPO3_db) {
 > t3lib_utility_Http::redirect('install/index.php?mode=123&step=1&password
 > =joh316');
 > } elseif ($TYPO3_DB->sql_pconnect(TYPO3_db_host, TYPO3_db_username,
 > TYPO3_db_password)) {
 >          if (!TYPO3_db)  {
 >                  throw new RuntimeException('Database Error: No database
 > selected', time());
 >          } elseif (!$TYPO3_DB->sql_select_db(TYPO3_db))  {
 >                  throw new RuntimeException('Database Error: Cannot
 > connect to the current database, "' . TYPO3_db . '"', time());
 >          }
 > } else {
 >          throw new RuntimeException('Database Error: The current
 > username, password or host was not accepted when the connection to the
 > database was attempted to be established!', time());
 > }
 >
 > Daar zou je volgens mij wel wat kunnen wijzingen waardoor je in plaats
 > van de throw new RuntimeException een t3lib_utility_Http::redirect naar
 > een statische html pagina redirect.
 >
 > Met vriendelijke groeten,
 > Gerrit Vijlbrief
 >
 > -----Oorspronkelijk bericht-----
 > Van: typo3-ug-dutch-bounces at lists.typo3.org
 > [mailto:typo3-ug-dutch-bounces at lists.typo3.org] Namens Joost van Berckel
 > Verzonden: vrijdag 25 januari 2013 12:33
 > Aan: typo3-ug-dutch at lists.typo3.org
 > Onderwerp: [TYPO3-UG Dutch] Redirect naar statische pagina bij Database
 > Error
 >
 > Beste lijst,
 >
 > Is het mogelijk om in TYPO3 bij het niet kunnen connecten naar de
 > database (db error) een tijdelijke pagina te tonen met hierop een nette
 > melding? (statisch)
 >
 > Ik kwam dit verzoek ook tegen in een post uit 2006, toen gaf Dmitry
 > Dulepov aan dat het nog niet kon.
 >
 > Graag jullie input.
 > Alvast bedankt.
 >
 > Mvg
 >
 > Joost
 > _______________________________________________
 > TYPO3-UG-Dutch mailing list
 > TYPO3-UG-Dutch at lists.typo3.org
 > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch
 >



More information about the TYPO3-UG-Dutch mailing list