Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class "Zend_Http_Client" not found #60

Open
CyrilLeblanc opened this issue Apr 18, 2024 · 0 comments
Open

Class "Zend_Http_Client" not found #60

CyrilLeblanc opened this issue Apr 18, 2024 · 0 comments

Comments

@CyrilLeblanc
Copy link

Hello !
After updating to Magento CE 2.4.6-p4 the admin show this error.

according to phpcs it's preferable to use the class Laminas\Http\Request

Class 'Zend_Http_Client' is restricted in .../magento/app/code/Mgt/DeveloperToolbar/Model/Feed/Feed.php. Suggested replacement: Laminas\Http\Request

I also find this info on stackoverflow

Are you open to contribution ?

Infos

area: adminhtml

error:

Error: Class "Zend_Http_Client" not found in /var/www/html/app/code/Mgt/DeveloperToolbar/Model/Feed/Feed.php:196
Stack trace:
#0 /var/www/html/app/code/Mgt/DeveloperToolbar/Model/Feed/Feed.php(125): Mgt\DeveloperToolbar\Model\Feed\Feed->getFeedData()
#1 /var/www/html/app/code/Mgt/DeveloperToolbar/Model/Observer/PredispatchAdminActionControllerObserver.php(59): Mgt\DeveloperToolbar\Model\Feed\Feed->checkUpdate()
#2 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Mgt\DeveloperToolbar\Model\Observer\PredispatchAdminActionControllerObserver->execute(Object(Magento\Framework\Event\Observer))
#3 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Mgt\DeveloperToolbar\Model\Observer\PredispatchAdminActionControllerObserver), Object(Magento\Framework\Event\Observer))
#4 /var/www/html/vendor/magento/framework/Event/Manager.php(65): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer))
#5 /var/www/html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('controller_acti...', Array)
#6 /var/www/html/vendor/magento/framework/App/FrontController.php(271): Magento\Framework\Event\Manager\Proxy->dispatch('controller_acti...', Array)
#7 /var/www/html/vendor/magento/framework/App/FrontController.php(211): Magento\Framework\App\FrontController->dispatchPreDispatchEvents(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor), Object(Magento\Framework\App\Request\Http))
#8 /var/www/html/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor))
#9 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#11 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#12 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#13 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#14 /var/www/html/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()
#15 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#16 {main}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant