Piotr Wat

Piotr Wat żadne, zsd

Temat: Problem z przeniesieniem strony na hosting.

Przeniosłem stronę na hosting i pokazuje mi błędy.
Zend framework 1
Proszę o pomoc.

Application error
Exception information:
Message: Declaration of Menu_Model_DbTable_Menu::getAll() should be compatible with Extend_Db_Table_Abstract::getAll($params = NULL)
Stack trace:
#0 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Loader/Autoloader/Resource.php(201): exceptions_error_handler(2048, 'Declaration of ...', '/var/www/vhosts...', 121, Array)
#1 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Loader/Autoloader/Resource.php(201): Zend_Loader_Autoloader_Resource::autoload()
#2 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Loader/Autoloader.php(120): Zend_Loader_Autoloader_Resource->autoload('Menu_Model_DbTa...')
#3 [internal function]: Zend_Loader_Autoloader::autoload('Menu_Model_DbTa...')
#4 /var/www/vhosts/zstia.idhosting.pl/zstia1/application/modules/menu/controllers/IndexController.php(13): spl_autoload_call('Menu_Model_DbTa...')
#5 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Controller/Action.php(516): Menu_IndexController->showAction()
#6 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('showAction')
#7 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/View/Helper/Action.php(135): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#8 [internal function]: Zend_View_Helper_Action->action('show', 'index', 'menu', Array)
#9 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/View/Abstract.php(350): call_user_func_array(Array, Array)
#10 /var/www/vhosts/zstia.idhosting.pl/zstia1/application/layouts/scripts/partial/_header.phtml(6): Zend_View_Abstract->__call('action', Array)
#11 /var/www/vhosts/zstia.idhosting.pl/zstia1/application/layouts/scripts/partial/_header.phtml(6): Zend_View->action('show', 'index', 'menu', Array)
#12 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/View.php(157): include('/var/www/vhosts...')
#13 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/View/Abstract.php(888): Zend_View->_run('/var/www/vhosts...')
#14 /var/www/vhosts/zstia.idhosting.pl/zstia1/application/layouts/scripts/mainpage.phtml(14): Zend_View_Abstract->render('/partial/_heade...')
#15 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/View.php(157): include('/var/www/vhosts...')
#16 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/View/Abstract.php(888): Zend_View->_run('/var/www/vhosts...')
#17 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Layout.php(796): Zend_View_Abstract->render('mainpage.phtml')
#18 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Layout/Controller/Plugin/Layout.php(143): Zend_Layout->render()
#19 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Controller/Plugin/Broker.php(333): Zend_Layout_Controller_Plugin_Layout->postDispatch(Object(Zend_Controller_Request_Http))
#20 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Controller/Front.php(965): Zend_Controller_Plugin_Broker->postDispatch(Object(Zend_Controller_Request_Http))
#21 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#22 /var/www/vhosts/zstia.idhosting.pl/zstia1/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#23 /var/www/vhosts/zstia.idhosting.pl/zstia1/public/index.php(45): Zend_Application->run()
#24 {main}
Request Parameters:
array(6) {
["lang"]=>
string(2) "pl"
["controller"]=>
string(5) "index"
["action"]=>
string(5) "index"
["module"]=>
string(7) "default"
["layoutFullContent"]=>
string(1399) "
Adam Omelak

Adam Omelak Starszy Programista
JS i PHP

Temat: Problem z przeniesieniem strony na hosting.

Twoja metoda, którą nadpisujesz, musi mieć taką samą sygnaturę jak i rodzica, czyli dodaj parametr $params = NULL

Menu_Model_DbTable_Menu::getAll($params = NULL)

Następna dyskusja:

Problem po przeniesieniu pr...




Wyślij zaproszenie do