am working with a Zend framework project fine in localhost, but when I put it in a public web server
the folowing error comes:
Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'DocType' was not found in the registry; used paths: Zend_View_Helper_: Zend/View/Helper/:../application/views/helpers/' in /path/to/my/appli/application/library/Zend/Loader/PluginLoader.php:412
Stack trace:
#0 /path/to/my/appli/application/library/Zend/View/Abstract.php(1182): Zend_Loader_PluginLoader->load('DocType')
#1 /path/to/my/appli/application/library/Zend/View/Abstract.php(618): Zend_View_Abstract->_getPlugin('helper', 'docType')
#2 /path/to/my/appli/application/library/Zend/View/Abstract.php(344): Zend_View_Abstract->getHelper('docType')
#3 [internal function]: Zend_View_Abstract->__call('docType', Array)
#4 /path/to/my/appli/appli in /path/to/my/appli/application/library/Zend/Loader/PluginLoader.php on line 412
thanks for your help
doctype is case sensitive you should write $view->doctype not $view->docType
problem solved
i just removed the folowing lines from my bootstrap:
protected function _initDoctype() {
$this->bootstrap('view');
$view = $this->getResource('view');
$view->docType('XHTML1_TRANSITIONAL');
}
and i dont know why that works fine when i delete it :/
(this function cause no problem in my localhost, but not in the remote server)
Related
when I try to run my website I get error
Fatal error: Uncaught Zend_Controller_Dispatcher_Exception: Invalid controller specified (error) in
C:\xampp\htdocs\dms\library\Zend\Controller\Dispatcher\Standard.php:248 Stack trace: #0
C:\xampp\htdocs\dms\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1
C:\xampp\htdocs\dms\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch() #2
C:\xampp\htdocs\dms\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #3
C:\xampp\htdocs\dms\index.php(93): Zend_Application->run() #4 {main} thrown in
C:\xampp\htdocs\dms\library\Zend\Controller\Dispatcher\Standard.php on line 248
From the doc
https://framework.zend.com/manual/1.12/en/zend.controller.plugins.html
By default, Zend_Controller_Plugin_ErrorHandler will forward to ErrorController::errorAction() in the default module. You may set alternate values for these by using the various accessors available to the plugin:
So it is possible that your application generates an error and then try to dispatch the error controller but it is not present. Check if you have the ErrorController in your application.
I'm getting this error in a new Magento 2 installation when I click on a category link
1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Magento\Catalog\Block\Navigation::canShowBlock
Activate the Anchor option for category
I have one website develop in zend framework, I have just transfered it to new host server,I am getting this error in my website
"Fatal error: Uncaught exception 'PDOException' with message
'SQLSTATE[HY000] [2002] No such file or directory' in
/home/mi229844/solway.ge/library/Zend/Db/Adapter/Pdo/Abstract.php:129
Stack trace: #0
/home/mi229844/solway.ge/library/Zend/Db/Adapter/Pdo/Abstract.php(129):
PDO->__construct('mysql:host=loca...', 'mi229844_sol', 'hxjz58pm',
Array) #1 "
Thankyou.
I have setup the Nuget.Server and the SymbolSource Server Basic in one solution when I run the "self diagnostics tool" I get the following exception, anyone have a clue what this is?
The URL I am accessing is
http://localhost/Home/NuGetPushTest
Method not found: 'Void NuGet.PackageServer.PushPackage(System.String,
System.IO.Stream, Int32)'.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found:
'Void NuGet.PackageServer.PushPackage(System.String, System.IO.Stream,
Int32)'.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
I'm getting the following error migrating my code across from my Windows dev machine to my linxu production machine. I'm aware there are always separator and case sensitivity issues (which I have fixed), however this one seems to be coming from the Framework itself.
My controllers are all following the convention (Uppercase first camel).
I'm using the bootstrap provided by Zend_App and this is all working (well with no errors) on my dev box.
Its parsing Plugins, however can't seem to get to controllers.
Any ideas would be great. :-)
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in /****mywebroot***/library/Zend/Controller/Dispatcher/Standard.php:242 Stack trace: #0 //****mywebroot***/library/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 /****mywebroot***/library/Zend/Application/Bootstrap/Bootstrap.php(77): Zend_Controller_Front->dispatch() #2 /****mywebroot***/public/index.php(26): Zend_Application->run() #4 {main} thrown in /****mywebroot***/library/Zend/Controller/Dispatcher/Standard.php on line 242
I'm hoping this is a basic error
Triple check the case the name of files and directories your controllers are in.
This specific exception could also be caused by not having a default controller available.