Apptha Price Countdown: «Non-static method Mage_Core_Model_Locale::date() should not be called statically in template/timer/list.phtml on line 162»

[10 ноября 2016 г.]    Российская сборка Magento 2.49.12
Magento 2: модули и услуги
#1 Антон Шепеленко
  • Группа: Клиент
  • Сообщений: 5
  • Регистрация: 25.10.2014

21.11.2014 13:25

Не работает поиск на сайте, любой запрос приводит к ошибке

Strict Notice: Non-static method Mage_Core_Model_Locale::date() should not be called statically, assuming $this from incompatible context  in /home/mirigrus/public_html/app/design/frontend/base/theme193/template/timer/list.phtml on line 162

#0 /home/mirigrus/public_html/app/design/frontend/base/theme193/template/timer/list.phtml(162): mageCoreErrorHandler(2048, 'Non-static meth...', '/home/mirigrus/...', 162, Array)
#1 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/mirigrus/...')
#2 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/t...')
#3 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#4 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#5 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#6 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('search_result_l...', true)
#7 /home/mirigrus/public_html/app/code/core/Mage/CatalogSearch/Block/Result.php(161): Mage_Core_Block_Abstract->getChildHtml('search_result_l...')
#8 /home/mirigrus/public_html/app/design/frontend/base/default/template/catalogsearch/result.phtml(42): Mage_CatalogSearch_Block_Result->getProductListHtml()
#9 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/mirigrus/...')
#10 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/d...')
#11 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#12 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#13 /home/mirigrus/public_html/app/code/local/Df/Core/Block/Text/List.php(20): Mage_Core_Block_Abstract->toHtml()
#14 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Df_Core_Block_Text_List->_toHtml()
#15 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#16 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#17 /home/mirigrus/public_html/app/design/frontend/base/theme193/template/page/2columns-left.phtml(104): Mage_Core_Block_Abstract->getChildHtml('content')
#18 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/mirigrus/...')
#19 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/t...')
#20 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#21 /home/mirigrus/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#22 /home/mirigrus/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#23 /home/mirigrus/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#24 /home/mirigrus/public_html/app/code/core/Mage/CatalogSearch/controllers/ResultController.php(80): Mage_Core_Controller_Varien_Action->renderLayout()
#25 /home/mirigrus/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_CatalogSearch_ResultController->indexAction()
#26 /home/mirigrus/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#27 /home/mirigrus/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#28 /home/mirigrus/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#29 /home/mirigrus/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#30 /home/mirigrus/public_html/index.php(91): Mage::run('', 'store')
#31 {main}

Прикрепленные изображения

  • Прикрепленное изображение: search error.png


#2 Дмитрий Федюк
  • Администратор
  • Иконка
  • Группа: Администратор
  • Сообщений: 8884
  • Регистрация: 20.02.2010

21.11.2014 18:55

Это дефект модуля Apptha Price Countdown: он вызывает нестатический метод класса как статический, что нарушает синтаксис языка PHP.
Способы устранения этого сбоя можно было найти поиском по форуму: на форуме уже дважды разобраны случаю устранения подобного сбоя в других шаблонах:
Apptha Price Countdown: «Non-static method Mage_Core_Model_Locale::date() should not be called statically in template/timer/view.phtml on line 65»
CatTheme se105: Non-static method Mage_Core_Model_Locale::date() should not be called statically
То есть, надо заменить статический вызов нестатическим.

Поделиться темой: