I am having this error while executing the setup:di:compile command
$ php bin/magento s:d:c
PHP Fatal error: Uncaught Error: Cannot instantiate interface Symfony\Component\Console\Output\OutputInterface in vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:116
Stack trace:
#0 vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Symfony\\Compone...', Array)
#1 vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Symfony\\Compone...')
#2 vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Symfony\\Compone...')
#3 vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\F in vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 116
Fatal error: Uncaught Error: Cannot instantiate interface Symfony\Component\Console\Output\OutputInterface in vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:116
Stack trace:
#0 vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Symfony\\Compone...', Array)
#1 vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Symfony\\Compone...')
#2 vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Symfony\\Compone...')
#3 vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\F in vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 116
i thing the issue is due any custom module di.xml file In case your interface still won't be loaded, check your di.xml and validate that a preference is available.
i hope you understand what i want to explain you
for info check below link Abstraction-implementation mappings topic
https://devdocs.magento.com/guides/v2.3/extension-dev-guide/build/di-xml-file.html
Related
I install the composer and set the local configs in zend
but It's not ok and have problem to run the project
here is my problem :
Fatal error: Uncaught Error: Call to a member function run() on null in C:\xampp-clinik\htdocs\p24vclinic\public\index.php:56 Stack trace: #0 {main} thrown in C:\xampp-clinik\htdocs\p24vclinic\public\index.php on line 56
I install zend again and revert my commit on git but problem is not fixed!
In Magento 2.2.5, I am getting this error while view any order.
Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Paypal\Model\Adminhtml\Express::isOrderAuthorizationAllowed() must be an instance of Magento\Sales\Model\Order\Payment, null given, called in F:\xampp\htdocs\magento_five\vendor\magento\module-paypal\Plugin\OrderCanInvoice.php on line 41 and defined in F:\xampp\htdocs\magento_five\vendor\magento\module-paypal\Model\Adminhtml\Express.php:170 Stack trace: #0 F:\xampp\htdocs\magento_five\vendor\magento\module-paypal\Plugin\OrderCanInvoice.php(41): Magento\Paypal\Model\Adminhtml\Express->isOrderAuthorizationAllowed(NULL) #1 F:\xampp\htdocs\magento_five\vendor\magento\framework\Interception\Interceptor.php(146): Magento\Paypal\Plugin\OrderCanInvoice->afterCanInvoice(Object(Magento\Sales\Model\Order\Interceptor), false) #2 F:\xampp\htdocs\magento_five\vendor\magento\framework\Interception\Interceptor.php(153): Magento\Sales\Model\Order\Interceptor->Magento\Framework\Interception{closure}() #3 F:\xampp\htdocs\magento_five\generated\code\Magento\Sales\Model\Order\Inte in F:\xampp\htdocs\magento_five\vendor\magento\module-paypal\Model\Adminhtml\Express.php on line 169
Can anybody help me into this.
Thank you
Update your Magento version to 2.2.5.
Magento resolve above iisue on 2.2.5 version.
I have this issue with Magento 2 (Ver 2.2.0) in my localhost when I try to click on Slider Overview I get this error.
Fatal error: Uncaught Error: [] operator not supported for strings in /opt/lampp/htdocs/fprimavera/app/code/Nwdthemes/Revslider/Model/Revslider/Framework/RevSliderBaseAdmin.php:99 Stack trace: #0 /opt/lampp/htdocs/fprimavera/app/code/Nwdthemes/Revslider/Model/Revslider/RevSliderAdmin.php(650): Nwdthemes\Revslider\Model\Revslider\Framework\RevSliderBaseAdmin::addMetaBox('Revolution Slid...', '', Array, NULL) #1 /opt/lampp/htdocs/fprimavera/app/code/Nwdthemes/Revslider/Model/Revslider/RevSliderAdmin.php(151): Nwdthemes\Revslider\Model\Revslider\RevSliderAdmin->addSliderMetaBox() #2 /opt/lampp/htdocs/fprimavera/app/code/Nwdthemes/Revslider/Model/Revslider/RevSliderAdmin.php(121): Nwdthemes\Revslider\Model\Revslider\RevSliderAdmin->init() #3 /opt/lampp/htdocs/fprimavera/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Nwdthemes\Revslider\Model\Revslider\RevSliderAdmin->__construct(Object(Nwdthemes\Revslider\Helper\Data), Object(Nwdthemes\Revslider\Helper\Framework), Object(Nwdthemes\Revslider\Helper\Qu in /opt/lampp/htdocs/fprimavera/app/code/Nwdthemes/Revslider/Model/Revslider/Framework/RevSliderBaseAdmin.php on line 99
Thank you in advance
Fatal error: Uncaught Error: Class 'Zend_Cache' not found in /var/www/html/stdcw/vendor/magento/framework/App/Cache/Frontend/Factory.php:148 Stack trace: #0 /var/www/html/stdcw/vendor/magento/framework/App/Cache/Frontend/Pool.php(67): Magento\Framework\App\Cache\Frontend\Factory->create(Array) #1 /var/www/html/stdcw/vendor/magento/framework/App/Cache/Frontend/Pool.php(146): Magento\Framework\App\Cache\Frontend\Pool->_initialize() #2 /var/www/html/stdcw/vendor/magento/framework/App/Cache/Type/FrontendPool.php(84): Magento\Framework\App\Cache\Frontend\Pool->get('default') #3 /var/www/html/stdcw/vendor/magento/framework/App/Cache/Type/Config.php(49): Magento\Framework\App\Cache\Type\FrontendPool->get('config') #4 /var/www/html/stdcw/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): Magento\Framework\App\Cache\Type\Config->_getFrontend() #5 /var/www/html/stdcw/vendor/magento/framework/App/ObjectManager/ConfigLoader.php(66): Magento\Framework\Cache\Frontend\Decorator\Bare->load('global::DiConfi...') #6 /var/www/h in /var/www/html/stdcw/vendor/magento/framework/App/Cache/Frontend/Factory.php on line 148
It seems cache issue, Clear your all cache which you have installed on your server like APC, MemCached.
if it still give an issue then the problem is in improper installation of Magento2 instance. Install new Magento 2 install with same version you have installed with Separate DB. Hope it helps.
Hy Somebody!
I have a question I want to solve in Zend Framework. The situation is the following: I have an indexController, where I placed a getAktGroupMailAction - what is on my ACL - like here:
public function getAktGroupMail(){
$ggroup = new Application_Model_DbTable_Groups();
//return $groupN = $ggroup->getUserAktGroupMail();
}
If I don't put "//" characters before the word "return" I get the error messages:
Fatal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource 'error' not found' in /var/www/hobu/library/Zend/Acl.php:365 Stack trace: #0 /var/www/hobu/library/Zend/Acl.php(846): Zend_Acl->get('error') #1 /var/www/hobu/application/plugins/AccessCheck.php(19): Zend_Acl->isAllowed('user', 'error', 'error') #2 /var/www/hobu/library/Zend/Controller/Plugin/Broker.php(309): Application_Plugin_AccessCheck->preDispatch(Object(Zend_Controller_Request_Http)) #3 /var/www/hobu/library/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http)) #4 /var/www/hobu/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch() #5 /var/www/hobu/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #6 /var/www/hobu/public/index.php(26): Zend_Application->run() #7 {main} Next exception 'Zend_Controller_Exception' with message 'Resource 'error' not found#0 /var/www/hobu/library/Zend/Acl.php(846): Zend_Acl->get('error') #1 /va in /var/www/hobu/library/Zend/Controller/Plugin/Broker.php on line 312
Somebody could help me?
You've not included the code for your 'Access Check' plugin which is what's generating the error, but I'm guessing what this does is call Zend_Acl using the current controller/action name. If so, the underlyng problem is not ACL related. Your $groupN = $ggroup->getUserAktGroupMail() is throwing an exception, which is causing the request to be routed to the error controller. Since you've not setup a resource called 'error', this then generates an ACL error when it checks whether the user can access that controller.
I'd suggest you modify your access check plugin so it does not check permissions if the controller name is 'error'. This should get rid of your ACL error message and let you see and fix the underlying problem.