我正在嘗試將PHP zend文件從服務器運行到本地主機(遷移)。我改變了我所知道的配置,但是當我嘗試運行它時,下面的錯誤顯示在瀏覽器中;嘗試將zend文件遷移到本地主機時發生異常
Array ([0] => Zend_Controller_Dispatcher_Exception Object
(
[message:protected] => Invalid controller specified (www)
[string:Exception:private] => [code:protected] => 0
[file:protected] => C:\xampp\htdocs\www\html\library\Zend\Controller\Dispatcher\Standard.php
[line:protected] => 241
[trace:Exception:private] => Array (
[0] => Array (
[file] => C:\xampp\htdocs\www\html\library\Zend\Controller\Front.php
[line] => 936
[function] => dispatch
[class] => Zend_Controller_Dispatcher_Standard
[type] => -> [args] => Array (
[0] => Zend_Controller_Request_Http Object (
[_paramSources:protected] => Array (
[0] => _GET [1] => _POST)
[_requestUri:protected] => /www/html/web/
[_baseUrl:protected] =>
[_basePath:protected] =>
[_pathInfo:protected] => /www/html/web/
[_params:protected] => Array (
[controller] => www
[action] => html
[module] => default
)
[_aliases:protected] => Array ()
[_dispatched:protected] => 1
[_module:protected] => default
[_moduleKey:protected] => module
[_controller:protected] => www
[_controllerKey:protected] => controller
[_action:protected] => html
[_actionKey:protected] => action
)
[1] => Zend_Controller_Response_Http Object (
[_body:protected] => Array ()
[_exceptions:protected] => Array RECURSION
[_headers:protected] => Array ()
[_headersRaw:protected] => Array ()
[_httpResponseCode:protected] => 200
[_isRedirect:protected] =>
[_renderExceptions:protected] =>
[headersSentThrowsException] => 1
)
)
)
[1] => Array (
[file] => C:\xampp\htdocs\www\html\index.php
[line] => 5
[function] => dispatch
[class] => Zend_Controller_Front
[type] => ->
[args] => Array ()
)
)
[previous:Exception:private] =>
)
)
你們能幫我解決這個錯誤嗎?在此先感謝
如果你從windows遷移到linux系統的話可能是個問題。確保您使用與其定義的相同大小來調用控制器。 – DevZer0
您是否檢查過php錯誤日誌。這可能會更有用。 – RiggsFolly
@RiggsFolly這個例外幾乎說明了錯誤日誌在這種情況下必須說的 – DevZer0