Не зайти на сайт после обновления фреймворка

После обновления фреймворка получаю в админке такую ошибку:

exception 'Exception' with message 'DateTime::__construct() [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 'UTC' for 'UTC/0,0/no DST' instead' in /var/www/apaky/data/www/apaky.ru/wa-system/datetime/waDateTime.class.php:219 Stack trace: #0 /var/www/apaky/data/www/apaky.ru/wa-system/datetime/waDateTime.class.php(219): DateTime->__construct('2015-07-22 09:3...') #1 /var/www/apaky/data/www/apaky.ru/wa-cache/apps/webasyst/templates/compiled/webasyst_ru_RU/d0/d4/e4/d0d4e488fb0165a45d7a3b70c304213c3044436d.file.BackendDashboard.html.php(259): waDateTime::format('humandatetime', '2015-07-22 09:3...') #2 /var/www/apaky/data/www/apaky.ru/wa-cache/apps/webasyst/templates/compiled/webasyst_ru_RU/d0/d4/e4/d0d4e488fb0165a45d7a3b70c304213c3044436d.file.BackendDashboard.html.php(138): content_55ba5ff26d6b72_95831451(Object(Smarty_Internal_Template)) #3 /var/www/apaky/data/www/apaky.ru/wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_55ba5ff29b1745_48443921(Object(Smarty_Internal_Template)) #4 /var/www/apaky/data/www/apaky.ru/wa-system/view/waSmarty3View.class.php(116): Smarty_Internal_TemplateBase->fetch('templates/actio...', NULL) #5 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waViewActions.class.php(150): waSmarty3View->fetch('templates/actio...') #6 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waViewActions.class.php(94): waViewActions->display() #7 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waFrontController.class.php(167): waViewActions->run(NULL) #8 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waFrontController.class.php(55): waFrontController->execute('', 'backend', NULL) #9 /var/www/apaky/data/www/apaky.ru/wa-system/waSystem.class.php(577): waFrontController->dispatch() #10 /var/www/apaky/data/www/apaky.ru/index.php(35): waSystem->dispatch() #11 {main}

При попытке зайти на сайт вот такую:

exception 'Exception' with message 'DateTime::__construct() [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 'UTC' for 'UTC/0,0/no DST' instead' in /var/www/apaky/data/www/apaky.ru/wa-system/datetime/waDateTime.class.php:219 Stack trace: #0 /var/www/apaky/data/www/apaky.ru/wa-system/datetime/waDateTime.class.php(219): DateTime->__construct('2015-07-21 22:1...') #1 /var/www/apaky/data/www/apaky.ru/wa-system/helper/datetime.php(5): waDateTime::format('humandatetime', '2015-07-21 22:1...', NULL, 'ru_RU') #2 /var/www/apaky/data/www/apaky.ru/wa-system/vendors/smarty-plugins/modifier.wa_datetime.php(24): wa_date('humandatetime', '2015-07-21 22:1...', NULL, 'ru_RU') #3 /var/www/apaky/data/www/apaky.ru/wa-cache/apps/shop/templates/compiled/shop_ru_RU/79/98/3e/79983e843d158eb5c4df3de29540f0443eeed84e.file.home.html.php(124): smarty_modifier_wa_datetime('2015-07-21 22:1...', 'humandatetime') #4 /var/www/apaky/data/www/apaky.ru/wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_55bc5210db3007_39166197(Object(Smarty_Internal_Template)) #5 /var/www/apaky/data/www/apaky.ru/wa-system/view/waSmarty3View.class.php(116): Smarty_Internal_TemplateBase->fetch('file:home.html', NULL) #6 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waViewAction.class.php(170): waSmarty3View->fetch('file:home.html', NULL) #7 /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/actions/frontend/shopFrontend.action.php(117): waViewAction->display(false) #8 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waViewController.class.php(86): shopFrontendAction->display() #9 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waDefaultViewController.class.php(44): waViewController->executeAction(Object(shopFrontendAction)) #10 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waController.class.php(21): waDefaultViewController->execute() #11 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waViewController.class.php(46): waController->run(NULL) #12 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waFrontController.class.php(155): waViewController->run() #13 /var/www/apaky/data/www/apaky.ru/wa-system/controller/waFrontController.class.php(58): waFrontController->execute('', 'frontend', NULL) #14 /var/www/apaky/data/www/apaky.ru/wa-system/waSystem.class.php(577): waFrontController->dispatch() #15 /var/www/apaky/data/www/apaky.ru/index.php(35): waSystem->dispatch() #16 {main}

Как сие лечить?

1 ответ

  • 1
    Markus 1 августа 2015 01:29 #

    Эту ошибку вылечил, установив на сервере временную зону по умолчанию. В админку теперь заходит, а вот при попыке зайти на сайт получаю ошибку

    Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: currency in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopRounding.class.php on line 92 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236 Notice: Undefined index: compare_price in /var/www/apaky/data/www/apaky.ru/wa-apps/shop/lib/classes/shopProductsCollection.class.php on line 1236

    хоть сайт и открывается. что делать?

Добавить ответ

Чтобы добавить комментарий, зарегистрируйтесь или войдите