Что означает сбой «Strict Notice: Declaration should be compatible»?

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

02.11.2014 09:56

Создал поддомен тест, зашел в админку, проверил работу сайта на поддомене - всё работает, удалил лишние модули, оставил почти голую систему community, залил сборку, при входе на сайт выдает ошибку, на форуме не нашел подобного, в интернете - тоже.

Надеюсь на подсказку где что подправить чтобы заработало

http://test.mirigrushek.kz/


Exception Object
(
    [message:protected] => Strict Notice: Declaration of Mage_Core_Controller_Request_Http::getBaseUrl() should be compatible with Zend_Controller_Request_Http::getBaseUrl($raw = false)  in /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Controller/Request/Http.php on line 36
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/functions.php
    [line:protected] => 245
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Controller/Request/Http.php
                    [line] => 36
                    [function] => mageCoreErrorHandler
                    [args] => Array
                        (
                            [0] => 2048
                            [1] => Declaration of Mage_Core_Controller_Request_Http::getBaseUrl() should be compatible with Zend_Controller_Request_Http::getBaseUrl($raw = false)
                            [2] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Controller/Request/Http.php
                            [3] => 36
                            [4] => Array
                                (
                                    [class] => Mage_Core_Controller_Request_Http
                                    [classFile] => Mage/Core/Controller/Request/Http.php
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/lib/Varien/Autoload.php
                    [line] => 93
                    [args] => Array
                        (
                            [0] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Controller/Request/Http.php
                        )

                    [function] => include
                )

            [2] => Array
                (
                    [function] => autoload
                    [class] => Varien_Autoload
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Mage_Core_Controller_Request_Http
                        )

                )

            [3] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/App.php
                    [line] => 1219
                    [function] => spl_autoload_call
                    [args] => Array
                        (
                            [0] => Mage_Core_Controller_Request_Http
                        )

                )

            [4] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Cookie.php
                    [line] => 83
                    [function] => getRequest
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [5] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Cookie.php
                    [line] => 129
                    [function] => _getRequest
                    [class] => Mage_Core_Model_Cookie
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [6] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
                    [line] => 90
                    [function] => getPath
                    [class] => Mage_Core_Model_Cookie
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [7] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
                    [line] => 168
                    [function] => start
                    [class] => Mage_Core_Model_Session_Abstract_Varien
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                        )

                )

            [8] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Session/Abstract.php
                    [line] => 84
                    [function] => init
                    [class] => Mage_Core_Model_Session_Abstract_Varien
                    [type] => ->
                    [args] => Array
                        (
                            [0] => core
                            [1] => 
                        )

                )

            [9] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Session.php
                    [line] => 42
                    [function] => init
                    [class] => Mage_Core_Model_Session_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => core
                            [1] => 
                        )

                )

            [10] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Config.php
                    [line] => 1348
                    [function] => __construct
                    [class] => Mage_Core_Model_Session
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [11] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/Mage.php
                    [line] => 463
                    [function] => getModelInstance
                    [class] => Mage_Core_Model_Config
                    [type] => ->
                    [args] => Array
                        (
                            [0] => core/session
                            [1] => Array
                                (
                                )

                        )

                )

            [12] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/Mage.php
                    [line] => 477
                    [function] => getModel
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => core/session
                            [1] => Array
                                (
                                )

                        )

                )

            [13] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/local/Df/Core/lib/fp/domain.php
                    [line] => 56
                    [function] => getSingleton
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => core/session
                        )

                )

            [14] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/local/Df/Client/Model/Setup/1/0/0.php
                    [line] => 22
                    [function] => rm_session_core
                    [args] => Array
                        (
                        )

                )

            [15] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/local/Df/Client/sql/df_client_setup/mysql4-install-1.0.0.php
                    [line] => 4
                    [function] => process
                    [class] => Df_Client_Model_Setup_1_0_0
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [16] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 624
                    [args] => Array
                        (
                            [0] => /home2/mirigrus/public_html/test/app/code/local/Df/Client/sql/df_client_setup/mysql4-install-1.0.0.php
                        )

                    [function] => include
                )

            [17] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 421
                    [function] => _modifyResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => install
                            [1] => 
                            [2] => 1.0.0
                        )

                )

            [18] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 327
                    [function] => _installResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1.0.0
                        )

                )

            [19] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 235
                    [function] => applyUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [20] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/App.php
                    [line] => 417
                    [function] => applyAllUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [21] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/App.php
                    [line] => 343
                    [function] => _initModules
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [22] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/app/Mage.php
                    [line] => 684
                    [function] => run
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [scope_code] => 
                                    [scope_type] => store
                                    [options] => Array
                                        (
                                        )

                                )

                        )

                )

            [23] => Array
                (
                    [file] => /home2/mirigrus/public_html/test/index.php
                    [line] => 87
                    [function] => run
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 
                            [1] => store
                        )

                )

        )

    [previous:Exception:private] => 
)
Error in file: "/home2/mirigrus/public_html/test/app/code/local/Df/Client/sql/df_client_setup/mysql4-install-1.0.0.php" - Strict Notice: Declaration of Mage_Core_Controller_Request_Http::getBaseUrl() should be compatible with Zend_Controller_Request_Http::getBaseUrl($raw = false)  in /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Controller/Request/Http.php on line 36

#0 /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Resource/Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb('install', '', '1.0.0')
#2 /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Resource/Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('1.0.0')
#3 /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /home2/mirigrus/public_html/test/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /home2/mirigrus/public_html/test/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /home2/mirigrus/public_html/test/index.php(87): Mage::run('', 'store')
#8 {main}


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

02.11.2014 14:52

Диагностическое сообщение интерпретатора PHP «Strict Notice: Declaration should be compatible» означает, что заголовки одноимённых методов класса-родителя и класса-потомка не совпадают, а должны совпадать, согласно спецификации языка PHP.
В данном случае интерпретататор PHP указывает на несоответствие заголовков метода getBaseUrl в классе родителе Zend_Controller_Request_Http (системный класс Zend Framework) и классе-потомке Mage_Core_Controller_Request_Http (системный класс ядра Magento Community Edition).
Это свидетельствует о том, что низкокачественный специалист во-первых счёл нужным править системные файлы, а во-вторых счёл нужным править их неправильно.
Для устранения сбоя надо сравнить программный код Вашего сайта с эталонным программным кодом Magento Community Edition используемой Вашим сайтом версии и устранить все правки файлов ядра, внесённые низкокачественным специалистом.

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