zend framework website not running by localhost, how to configure it in htdocs in xampp server - zend-framework

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.

Related

Update Magento2 version 2.3.2 to 2.4.4

When I'm trying to upgrade Magento 2.3.2 to 2.4.4 getting an issue
So I changed composer.json and composer.lock file from Magento-2.4.4
runned command composer update. but while running the setup: upgrade command showing these error
I'm using
elastic search version 7.17.0
Php version 8
MariaDB version 10.4
PHP Fatal error: Uncaught Error: Class "Magento\Framework\Component\ComponentRegistrar" not found in /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/code/VladimirPopov/WebForms/registration.php:7
Stack trace:
#0 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(29): require_once()
#1 [internal function]: Magento\NonComposerComponentRegistration{closure}()
#2 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(29): array_map()
#3 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(33): Magento\NonComposerComponentRegistration\main()
#4 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/composer/autoload_real.php(73): require('...')
#5 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/composer/autoload_real.php(63): composerRequire0d20ad2e084aeb870108ff1034f78aa5()
#6 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/autoload.php(7): ComposerAutoloaderInit0d20ad2e084aeb870108ff1034f78aa5::getLoader()
#7 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/autoload.php(30): include('...')
#8 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/bootstrap.php(33): require_once('...')
#9 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/bin/magento(14): require('...')
#10 {main}
thrown in /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/code/VladimirPopov/WebForms/registration.php on line 7
Fatal error: Uncaught Error: Class "Magento\Framework\Component\ComponentRegistrar" not found in /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/code/VladimirPopov/WebForms/registration.php:7
Stack trace:
#0 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(29): require_once()
#1 [internal function]: Magento\NonComposerComponentRegistration{closure}()
#2 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(29): array_map()
#3 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(33): Magento\NonComposerComponentRegistration\main()
#4 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/composer/autoload_real.php(73): require('...')
#5 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/composer/autoload_real.php(63): composerRequire0d20ad2e084aeb870108ff1034f78aa5()
#6 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/autoload.php(7): ComposerAutoloaderInit0d20ad2e084aeb870108ff1034f78aa5::getLoader()
#7 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/autoload.php(30): include('...')
#8 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/bootstrap.php(33): require_once('...')
#9 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/bin/magento(14): require('...')
#10 {main}
thrown in /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/code/VladimirPopov/WebForms/registration.php on line 7
Magento upgradion to 2.4.4
please use the latest version of VladimirPopov_WebForms,
Let me know its works or not.

Yii failed to connect to postgresql database in slackware 13.37

I trying an application made in Yii 1.1.14 in slackware 13.37
When trying to connect it shows a pagae with this message:
Error 500
CDbConnection failed to open the DB connection.
The application.log in protected/runtime shows this
2017/09/07 10:32:16 [error] [exception.CDbException] could not find driver
2017/09/07 10:32:16 [error] [exception.CDbException] exception 'CDbException' with message 'CDbConnection failed to open the DB connection.' in /var/www/htdocs/myapp/yii/framework/db/CDbConnection.php:388
Stack trace:
#0 /var/www/htdocs/myapp/yii/framework/db/CDbConnection.php(330): CDbConnection->open()
#1 /var/www/htdocs/myapp/yii/framework/db/CDbConnection.php(308): CDbConnection->setActive(true)
#2 /var/www/htdocs/myapp/yii/framework/base/CModule.php(387): CDbConnection->init()
#3 /var/www/htdocs/myapp/yii/framework/base/CApplication.php(450): CModule->getComponent('db')
#4 /var/www/htdocs/myapp/yii/framework/db/ar/CActiveRecord.php(634): CApplication->getDb()
#5 /var/www/htdocs/myapp/yii/framework/db/ar/CActiveRecord.php(667): CActiveRecord->getDbConnection()
#6 /var/www/htdocs/myapp/yii/framework/db/ar/CActiveRecord.php(1455): CActiveRecord->getCommandBuilder()
#7 /var/www/htdocs/myapp/protected/components/UserIdentity.php(8): CActiveRecord->find('LOWER(username)...', Array)
#8 /var/www/htdocs/myapp/protected/models/LoginForm.php(52): UserIdentity->authenticate()
#9 /var/www/htdocs/myapp/yii/framework/validators/CInlineValidator.php(42): LoginForm->authenticate('password', Array)
#10 /var/www/htdocs/myapp/yii/framework/validators/CValidator.php(213): CInlineValidator->validateAttribute(Object(LoginForm), 'password')
#11 /var/www/htdocs/myapp/yii/framework/base/CModel.php(159): CValidator->validate(Object(LoginForm), NULL)
#12 /var/www/htdocs/myapp/protected/controllers/SiteController.php(97): CModel->validate()
#13 /var/www/htdocs/myapp/yii/framework/web/actions/CInlineAction.php(49): SiteController->actionLogin()
#14 /var/www/htdocs/myapp/yii/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#15 /var/www/htdocs/myapp/yii/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
#16 /var/www/htdocs/myapp/yii/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#17 /var/www/htdocs/myapp/yii/framework/web/CWebApplication.php(282): CController->run('login')
#18 /var/www/htdocs/myapp/yii/framework/web/CWebApplication.php(141): CWebApplication->runController('site/login')
#19 /var/www/htdocs/myapp/yii/framework/base/CApplication.php(180): CWebApplication->processRequest()
#20 /var/www/htdocs/myapp/index.php(14): CApplication->run()
#21 {main}
REQUEST_URI=/myapp/index.php?r=site/login
HTTP_REFERER=http://192.168.0.131/myapp/index.php?r=site/login
The source code of the application and its connection to the database works fine in debian and ubuntu.
Others applications made in php can can connect with the same database in the slackware server.
any help?

WP All Import Issues

I am using WP All Import plugin to import real estate properties. I got an error when updating the properties.
Fatal error: Uncaught exception 'Exception' with message 'Undefined
field type.' in
/public_html/wp-content/plugins/wp-all-import/models/model/record.php:148
Stack trace: #0
/public_html/wp-content/plugins/wp-all-import/controllers/admin/import.php(1764):
PMXI_Model_Record->__get('type') #1
/public_html/wp-content/plugins/wp-all-import/plugin.php(348):
PMXI_Admin_Import->process() #2
/public_html/wp-content/plugins/wp-all-import/plugin.php(282):
PMXI_Plugin->adminDispatcher('pmxi-admin-impo...', 'process') #3
[internal function]: PMXI_Plugin->__adminInit('') #4
/public_html/wp-includes/plugin.php(470): call_user_func_array(Array,
Array) #5 /public_html/wp-admin/admin.php(144):
do_action('admin_init') #6 {main} thrown in
/public_html/wp-content/plugins/wp-all-import/models/model/record.php
on line 148
May i know, how to fix it?

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.