P
P
Petr Volkhanov2015-04-24 20:28:06
Zend Framework
Petr Volkhanov, 2015-04-24 20:28:06

How to fix an error in PHP if there is only such information?

How to fix an error in PHP if there is only such information?

Error Code: b51d22
exception 'Engine_Exception' with message 'Method "getViewer" not supported' in /var/www/html/ne/application/modules/Core/Api/Abstract.php:41
Stack trace:
#0 /var/www/html/ne/application/modules/Store/controllers/CartController.php(756): Core_Api_Abstract->__call('getViewer', Array)
#1 /var/www/html/ne/application/modules/Store/controllers/CartController.php(756): Core_Api_Core->getViewer()
#2 /var/www/html/ne/application/libraries/Zend/Controller/Action.php(516): Store_CartController->seeDetailsAction()
#3 /var/www/html/ne/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('seeDetailsActio...')
#4 /var/www/html/ne/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#5 /var/www/html/ne/application/modules/Core/Bootstrap.php(83): Zend_Controller_Front->dispatch()
#6 /var/www/html/ne/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#7 /var/www/html/ne/application/index.php(211): Engine_Application->run()
#8 /var/www/html/ne/index.php(76): include('/var/www/html/n...')
#9 {main}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fortop, 2015-04-30
@Fortop

What does it mean how to fix it?
Find out why this method is not supported.
There is everything you need to search (the file name and line number where the error occurs, plus the call stacktrace)
Either you under-initialized something in the engine, or you are trying to access the wrong object.

N
Natalia Andriets, 2015-04-30
@tashik

The API version you are using does not support the method you are trying to call. Options: 1) you have a dock from one version of the API, and the code from another 2) you pull the object inside the CartController on line 756, which does not have such a method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question