Fatal error: DateTime::__construct()

  • Betroffene App
    WoltLab Suite Forum

    Nach der Installation der Beta 1 zeigt es mir im ACP das hier an... 8|

    Fatal error: DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
    Information:
    id:
    WCF::handleException() Unhandled exception: PHP warning in file /var/www/vhosts/promicabana.de/httpdocs/wbb4/wcf/lib/system/exception/LoggedException.class.php (64): date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead

    #0 [internal function]: wcf\system\WCF::handleError(2, 'date(): It is n...', '/var/www/vhosts...', 64, Array)
    #1 /var/www/vhosts/..../.../.../wcf/lib/system/exception/LoggedException.class.php(64): date('Y-m-d', 1369843103)
    #2 /var/www/vhosts/.../.../.../wcf/lib/system/exception/LoggedException.class.php(50): wcf\system\exception\LoggedException->logError()
    #3 /var/www/vhosts/.../.../.../wcf/lib/system/exception/SystemException.class.php(157): wcf\system\exception\LoggedException->getExceptionID()
    #4 /var/www/vhosts/.../.../.../wcf/lib/system/WCF.class.php(251): wcf\system\exception\SystemException->show()
    #5 /var/www/vhosts/..../.../.../wcf/lib/system/WCF.class.php(256): wcf\system\WCF::handleException(Object(wcf\system\exception\SystemException))
    #6 [internal function]: wcf\system\WCF::handleException(Object(Exception))
    #7 {main}

    Miau.

    • Offizieller Beitrag

    Die PHP-Konfiguration des Servers ist fehlerhaft, es muss eine Zeitzone in der Konfigurationsdatei festgelegt werden. Füge einfach date.timezone = Europe/Berlin ans Ende der php.ini ein und starte den Webserver neu. Solltest du nur ein Hosting-Angebot warnehmen, so bitte den Anbieter seine Konfiguration zu korrigieren.

  • ich hab den selben fehler aber laut php.ini =) ist die zeitzone berlin europa und in der php info steht dies auch so

    Zu dem bekomm ich wenn ich dies übersehe diesen fehler

    Fatal error: PHP notice in file /homepages/htdocs/testcms/wcf/wcf/lib/acp/page/IndexPage.class.php (57): Use of undefined constant REGISTER_ACTIVATION_METHOD - assumed 'REGISTER_ACTIVATION_METHOD'

    Information:

    id: 4da8abc646cfe80915eff11bccc453f4ec74ae78
    error message: PHP notice in file /homepages/htdocs/testcms/wcf/wcf/lib/acp/page/IndexPage.class.php (57): Use of undefined constant REGISTER_ACTIVATION_METHOD - assumed 'REGISTER_ACTIVATION_METHOD'
    error code: 0
    file: /homepages/htdocs/testcms/wcf/wcf/lib/system/WCF.class.php (281)
    php version: 5.4.15
    wcf version: 2.0.0 Beta 1 (Maelstrom)
    date: Wed, 29 May 2013 18:47:40 +0000
    request: /wcf/acp/index.php/InstallPackage/?t=20927ed05ab3423558468cf091c933e8b8c03a0a&s=1c21b3ef03f86c20a4afbc830f65dcabfcbc799c
    referer: http://wcf.dunkleallianz.net/wcf/acp/index.php?s=1c21b3ef03f86c20a4afbc830f65dcabfcbc799c&action=WCFSetup
    Stacktrace:
    #0 /homepages/htdocs/testcms/wcf/wcf/lib/acp/page/IndexPage.class.php(57): wcf\system\WCF::handleError(8, 'Use of undefine...', '/homepages/...', 57, Array)
    #1 /homepages/htdocs/testcms/wcf/wcf/lib/page/AbstractPage.class.php(182): wcf\acp\page\IndexPage->assignVariables()
    #2 /homepages/htdocs/testcms/wcf/wcf/lib/acp/page/IndexPage.class.php(91): wcf\page\AbstractPage->show()
    #3 /homepages/htdocs/testcms/wcf/wcf/lib/page/AbstractPage.class.php(86): wcf\acp\page\IndexPage->show()
    #4 /homepages/htdocs/testcms/wcf/wcf/lib/system/request/Request.class.php(58): wcf\page\AbstractPage->__run()
    #5 /homepages/htdocs/testcms/wcf/wcf/lib/system/request/RequestHandler.class.php(93): wcf\system\request\Request->execute()
    #6 /homepages/htdocs/testcms/wcf/wcf/acp/index.php(10): wcf\system\request\RequestHandler->handle('wcf', true)
    #7 {main}

    was ich überhaupt nicht nachvollziehen kann

  • Man kann auch nach der Installation in der config.inc.php folgenden Code einfügen:

    PHP
    <?php
    date_default_timezone_set ("Europe/Vienna");

    m.f.g.
    dartgott

    Es ist eagl in wlehcer Reiehnfogle die Bchustebaen in Woeretrn vokrmomen. Es ist nur withcig, dsas der ertse und lettze Bchusatbe an der ricthgien Stlele setht . Der Rset knan total falcsh sein und man knan es onhe Porbelme leesn.
    .dart-board > .game { align-items: center;}

  • It resolves the problem with dates, but after that i get this error :

    Fatal error: PHP notice in file
    /homepages/40/d435826387/htdocs/GeGeek/WBB4/wcf/lib/system/WCFACP.class.php
    (70): Trying to get property of non-object

    Information:

    id: ac190ffd10ba7dad9becd548e27cbe245a177d48

    error message: PHP notice in file
    /homepages/40/d435826387/htdocs/GeGeek/WBB4/wcf/lib/system/WCFACP.class.php
    (70): Trying to get property of non-object

    error code: 0

    file: /homepages/40/d435826387/htdocs/GeGeek/WBB4/wcf/lib/system/WCF.class.php (281)

    php version: 5.4.15

    wcf version: 2.0.0 Beta 1 (Maelstrom)

    date: Thu, 30 May 2013 08:54:51 +0000

    request: /WBB4/wcf/acp/

    referer:



    Stacktrace:
    #0 /homepages/40/d435826387/htdocs/GeGeek/WBB4/wcf/lib/system/WCFACP.class.php(70): wcf\system\WCF->handleError(8, 'Trying to get p...', '/homepages/40/d...', 70, Array)
    #1 /homepages/40/d435826387/htdocs/GeGeek/WBB4/wcf/lib/system/WCFACP.class.php(54): wcf\system\WCFACP->initAuth()
    #2 /homepages/40/d435826387/htdocs/GeGeek/WBB4/wcf/acp/global.php(19): wcf\system\WCFACP->__construct()
    #3 /homepages/40/d435826387/htdocs/GeGeek/WBB4/wcf/acp/index.php(9): require_once('/homepages/40/d...')
    #4 {main}

    gegeek.net --> my french translation, my customisations and my plugins for WBB4..
    woltlab.net --> WoltLab French community, french translations, support..

    Einmal editiert, zuletzt von GeGeek (30. Mai 2013 um 11:29)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!