Getting Error in web application developed in zend framework - zend-framework

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.

Related

1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Magento\Catalog\Block\Navigation::canShowBlock

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

Can't log into workbench

I deployed kie-drools-wb-distribution-wars-6.1.0.Final-jboss-as7.0.war into a JBoss 6.3 AS, and added an admin user in the application realm using the add-user.sh command. The login page of KIE Workbench can display, but when I click the login button, the following error occurs:
BWEB000065: HTTP Status 400 - JBWEB000006: Invalid direct reference to
form login page
JBWEB000309: type JBWEB000067: Status report
JBWEB000068: message JBWEB000006: Invalid direct reference to form
login page
JBWEB000069: description JBWEB000120: The request sent by the client
was syntactically incorrect.
JBoss Web/7.4.8.Final-redhat-4
I also deployed the Tomcat version, the login page failed to authenticate the user login with the following errors:
HTTP Status 500 - Filter execution threw an exception type
Exception report message
Filter execution threw an exception description
The server encountered an internal error that prevented it from fulfilling this request.
exception javax.servlet.ServletException: Filter execution threw an exception
root cause java.lang.NoClassDefFoundError: javax/security/jacc/PolicyContext
org.uberfire.security.server.auth.source.JACCAuthenticationSource.getSubjectFrom‌​Container(JACCAuthenticationSource.java:155)
org.uberfire.security.server.auth.source.JACCAuthenticationSource.loadRoles(JACC‌​AuthenticationSource.java:88)
org.uberfire.security.server.auth.HttpAuthenticationManager.authenticate(HttpAut‌​henticationManager.java:178)
org.uberfire.security.server.HttpSecurityManagerImpl.authenticate(HttpSecurityMa‌​nagerImpl.java:216)
org.uberfire.security.server.UberFireSecurityFilter.authenticate(UberFireSecurit‌​yFilter.java:337) org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFil‌​ter.java:278)
root cause java.lang.ClassNotFoundException: javax.security.jacc.PolicyContext org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:17‌​20)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:15‌​71)
org.uberfire.security.server.auth.source.JACCAuthenticationSource.getSubjectFrom‌​Container(JACCAuthenticationSource.java:155)
org.uberfire.security.server.auth.source.JACCAuthenticationSource.loadRoles(JACC‌​AuthenticationSource.java:88)
org.uberfire.security.server.auth.HttpAuthenticationManager.authenticate(HttpAut‌​henticationManager.java:178)
org.uberfire.security.server.HttpSecurityManagerImpl.authenticate(HttpSecurityMa‌​nagerImpl.java:216)
org.uberfire.security.server.UberFireSecurityFilter.authenticate(UberFireSecurit‌​yFilter.java:337)
org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFil‌​ter.java:278)
That is because you have not download the KIE Execution Server, please download this: https://download.jboss.org/drools/release/6.5.0.Final/kie-server-distribution-6.5.0.Final.zip. Put it in the tomcat webapps folder, and config the setenv.sh like this:
CATALINA_OPTS="-Xmx512M -XX:MaxPermSize=512m -Dbtm.root=$CATALINA_HOME
-Dorg.jbpm.cdi.bm=java:comp/env/BeanManager -Dbitronix.tm.configuration=$CATALINA_HOME/conf/btm-config.properties -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry
-Djava.security.auth.login.config=$CATALINA_HOME/webapps/kie-drools-web/WEB-INF/classes/login.config
-Dorg.kie.server.persistence.ds=java:comp/env/jdbc/jbpm -Dorg.kie.server.persistence.tm=org.hibernate.service.jta.platform.internal.BitronixJtaPlatform
-Dorg.kie.server.id=tomcat-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server-6.5.0.Final-webc/services/rest/server
-Dorg.kie.server.controller=http://localhost:8080/kie-drools-web/rest/controller
-Dorg.kie.server.user=tomcat -Dorg.kie.server.pwd=tomcat -Dorg.kie.server.controller.user=tomcat -Dorg.kie.server.controller.pwd=tomcat"

Hosting internal Nuget and Symbols server

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.

Zend Fatal Error Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message

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)

Windows(dev) to Linux(prod) Zend Framework migration errors

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.