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

Switch to production mode not possible after upgrade to Magento 2.2.4 #14950

Closed
ghost opened this issue May 2, 2018 · 31 comments
Closed

Switch to production mode not possible after upgrade to Magento 2.2.4 #14950

ghost opened this issue May 2, 2018 · 31 comments
Assignees
Labels
Component: Bundled Extension Issue is caused by one of the bundled extensions Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed

Comments

@ghost
Copy link

ghost commented May 2, 2018

Preconditions

  1. Magento 2.2.4
  2. PHP 7.1
  3. Ubuntu 17.04

Steps to reproduce

  1. php bin/magento setup:di:compile

Expected result

  1. Compilation complete

Actual result

error

LOG FILE:

  1. main.CRITICAL: Source class "\amazonClient" for "amazonClientLogger" generation does not exist. {"exception":"[object] (RuntimeException(code: 0): Source class "\amazonClient" for "amazonClientLogger" generation does not exist. at /var/www/html/vendor/magento/framework/Code/Generator.php:185, RuntimeException(code: 0): Source class "\amazonClient" for "amazonClientLogger" generation does not exist. at /var/www/html/vendor/magento/framework/Code/Generator.php:185)"} []
@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label May 2, 2018
@ghost
Copy link
Author

ghost commented May 2, 2018

Thank you in advance for your help

@ghost
Copy link

ghost commented May 3, 2018

@achatpc Have you tried to rename the generation folder.? If you don't then I suggest you please try it one and then after try to enable production mode.

Hope it'll help.

@ghost
Copy link
Author

ghost commented May 3, 2018

Hello,

Thank you. i try but not work.

@hunterallen
Copy link

Try to set the file permissions again.
chown -R apache <Magento install dir>

@aholovan
Copy link
Contributor

aholovan commented May 3, 2018

Hi,

It's not permission issue. I've got the same error on EE 2.2.3 and last amzn/amazon-pay-and-login-magento-2-module v1.2.6.
And when I have tried to change amazonClientLogger to some other definition like amazonClientLoggerHandler in 2 places of Amazon Core/etc/di.xml file and the same with amazonIpnLogger in Payment/etc/di.xml the error has gone away. Logger works fine also.

Seems You have to create an issue for mainteiners of the Amazon Paymen extension (https://github.com/amzn/amazon-payments-magento-2-plugin) and ask them about has the module been tested on 2.2.3 and later releases..
Last year they had the same issue: amzn/amazon-payments-magento-2-plugin#154 but seems it was related to other 3rd party extension.

@ghost
Copy link
Author

ghost commented May 3, 2018

I test this solution but not work.

I add issue on:

amzn/amazon-payments-magento-2-plugin#220

Thank you

@ghost
Copy link
Author

ghost commented May 3, 2018

Other symptom is this error when I try to open a product page in developer mode:

1 exception(s):
Exception #0 (RuntimeException): Source class "\Magento\Payment\Model\Method\Virtual" for "Magento\Payment\Model\Method\VirtualLogger" generation does not exist.

Exception #0 (RuntimeException): Source class "\Magento\Payment\Model\Method\Virtual" for "Magento\Payment\Model\Method\VirtualLogger" generation does not exist.
#0 /var/www/html/vendor/magento/framework/Code/Generator.php(112): Magento\Framework\Code\Generator->tryToLoadSourceClass('Magento\Payment...', Object(Magento\Framework\ObjectManager\Profiler\Code\Generator\Logger))
#1 /var/www/html/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\Payment...')
#2 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\Payment...')
#3 [internal function]: spl_autoload_call('Magento\Payment...')
#4 /var/www/html/vendor/magento/framework/ObjectManager/InterceptableValidator.php(42): is_subclass_of('Magento\Payment...', '\Magento\Framew...')
#5 /var/www/html/vendor/magento/framework/ObjectManager/InterceptableValidator.php(16): Magento\Framework\ObjectManager\InterceptableValidator->isInterceptable('Magento\Payment...')
#6 /var/www/html/vendor/magento/framework/Interception/ObjectManager/Config/Developer.php(62): Magento\Framework\ObjectManager\InterceptableValidator->validate('Magento\Payment...')
#7 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(47): Magento\Framework\Interception\ObjectManager\Config\Developer->getInstanceType('Magento\Payment...')
#8 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Payment...')
#9 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Payment...')
#10 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Psr\Log\LoggerI...', NULL, 'logger', 'Magento\Payment...')
#11 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Payment...', Array, Array)
#12 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\Payment...', Array, Array)
#13 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Payment...')
#14 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Payment...')
#15 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\Payment...', NULL, 'logger', 'Magento\Paypal\...')
#16 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Paypal\...', Array, Array)
#17 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\Paypal\...', Array, Array)
#18 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Paypal\...')
#19 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Paypal\...')
#20 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\Payment...', NULL, 'payment', 'Magento\Paypal\...')
#21 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Paypal\...', Array, Array)
#22 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\Paypal\...', Array, Array)
#23 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Paypal\...', Array)
#24 /var/www/html/vendor/magento/framework/View/Element/BlockFactory.php(45): Magento\Framework\ObjectManager\ObjectManager->create('Magento\Paypal\...', Array)
#25 /var/www/html/vendor/magento/framework/View/Layout/Generator/Block.php(269): Magento\Framework\View\Element\BlockFactory->createBlock('Magento\Paypal\...', Array)
#26 /var/www/html/vendor/magento/framework/View/Layout/Generator/Block.php(249): Magento\Framework\View\Layout\Generator\Block->getBlockInstance('Magento\Paypal\...', Array)
#27 /var/www/html/vendor/magento/framework/View/Layout.php(776): Magento\Framework\View\Layout\Generator\Block->createBlock('Magento\Paypal\...', 'express\inconte...', Array)
#28 /var/www/html/vendor/magento/framework/View/Layout.php(759): Magento\Framework\View\Layout->_createBlock('Magento\Paypal\...', 'express\inconte...', Array)
#29 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(349): Magento\Framework\View\Layout->createBlock('Magento\Paypal\...', 'express\inconte...', Array)
#30 /var/www/html/vendor/magento/module-paypal/Observer/AddPaypalShortcutsObserver.php(78): Magento\Framework\View\Layout\Interceptor->createBlock('Magento\Paypal\...', '', Array)
#31 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): Magento\Paypal\Observer\AddPaypalShortcutsObserver->execute(Object(Magento\Framework\Event\Observer))
#32 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\Paypal\Observer\AddPaypalShortcutsObserver), Object(Magento\Framework\Event\Observer))
#33 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer))
#34 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->___callParent('dispatch', Array)
#35 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->Magento\Framework\Interception{closure}(Array, Object(Magento\Framework\Event\Observer))
#36 /var/www/html/generated/code/Magento/Framework/Event/Invoker/InvokerDefault/Interceptor.php(26): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->___callPlugins('dispatch', Array, Array)
#37 /var/www/html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->dispatch(Array, Object(Magento\Framework\Event\Observer))
#38 /var/www/html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('shortcut_button...', Array)
#39 /var/www/html/vendor/magento/module-catalog/Block/ShortcutButtons.php(83): Magento\Framework\Event\Manager\Proxy->dispatch('shortcut_button...', Array)
#40 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(666): Magento\Catalog\Block\ShortcutButtons->_beforeToHtml()
#41 /var/www/html/vendor/magento/framework/View/Layout.php(558): Magento\Framework\View\Element\AbstractBlock->toHtml()
#42 /var/www/html/vendor/magento/framework/View/Layout.php(534): Magento\Framework\View\Layout->_renderBlock('addtocart.short...')
#43 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('addtocart.short...')
#44 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('addtocart.short...')
#45 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('addtocart.short...', true)
#46 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(511): Magento\Framework\View\Layout\Interceptor->renderElement('addtocart.short...', true)
#47 /var/www/html/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(778): Magento\Framework\View\Element\AbstractBlock->getChildHtml('', true)
#48 /var/www/html/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/addtocart.phtml(84): Magento\Catalog\Block\Product\View\Interceptor->getChildHtml('', true)
#49 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/html/a...')
#50 /var/www/html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\View\Interceptor), '/var/www/html/a...', Array)
#51 /var/www/html/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): Magento\Framework\View\Element\Template->fetchView('/var/www/html/a...')
#52 /var/www/html/vendor/magento/framework/View/Element/Template.php(300): Magento\Catalog\Block\Product\View\Interceptor->fetchView('/var/www/html/a...')
#53 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml()
#54 /var/www/html/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): Magento\Framework\View\Element\AbstractBlock->toHtml()
#55 /var/www/html/vendor/magento/framework/View/Layout.php(558): Magento\Catalog\Block\Product\View\Interceptor->toHtml()
#56 /var/www/html/vendor/magento/framework/View/Layout.php(534): Magento\Framework\View\Layout->_renderBlock('product.info.ad...')
#57 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('product.info.ad...')
#58 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('product.info.ad...')
#59 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('product.info.ad...', true)
#60 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('product.info.ad...')
#61 /var/www/html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('product.info.fo...')
#62 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('product.info.fo...')
#63 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('product.info.fo...')
#64 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('product.info.fo...', true)
#65 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(507): Magento\Framework\View\Layout\Interceptor->renderElement('product.info.fo...', true)
#66 /var/www/html/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(778): Magento\Framework\View\Element\AbstractBlock->getChildHtml('product_info_fo...', true)
#67 /var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/view/form.phtml(28): Magento\Catalog\Block\Product\View\Interceptor->getChildHtml('product_info_fo...')
#68 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/html/v...')
#69 /var/www/html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\View\Interceptor), '/var/www/html/v...', Array)
#70 /var/www/html/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(544): Magento\Framework\View\Element\Template->fetchView('/var/www/html/v...')
#71 /var/www/html/vendor/magento/framework/View/Element/Template.php(300): Magento\Catalog\Block\Product\View\Interceptor->fetchView('/var/www/html/v...')
#72 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml()
#73 /var/www/html/generated/code/Magento/Catalog/Block/Product/View/Interceptor.php(869): Magento\Framework\View\Element\AbstractBlock->toHtml()
#74 /var/www/html/vendor/magento/framework/View/Layout.php(558): Magento\Catalog\Block\Product\View\Interceptor->toHtml()
#75 /var/www/html/vendor/magento/framework/View/Layout.php(534): Magento\Framework\View\Layout->_renderBlock('product.info')
#76 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('product.info')
#77 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('product.info')
#78 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('product.info', true)
#79 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('product.info')
#80 /var/www/html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('product.info.ma...')
#81 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('product.info.ma...')
#82 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('product.info.ma...')
#83 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('product.info.ma...', true)
#84 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('product.info.ma...')
#85 /var/www/html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('content')
#86 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('content')
#87 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('content')
#88 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('content', true)
#89 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('content')
#90 /var/www/html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('main')
#91 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main')
#92 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main')
#93 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main', true)
#94 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('main')
#95 /var/www/html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('columns')
#96 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('columns')
#97 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('columns')
#98 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('columns', true)
#99 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('columns')
#100 /var/www/html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('main.content')
#101 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main.content')
#102 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main.content')
#103 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main.content', true)
#104 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('main.content')
#105 /var/www/html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('page.wrapper')
#106 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper')
#107 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper')
#108 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper', true)
#109 /var/www/html/vendor/magento/framework/View/Layout.php(585): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper')
#110 /var/www/html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('root')
#111 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root')
#112 /var/www/html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root')
#113 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('root', true)
#114 /var/www/html/vendor/magento/framework/View/Layout.php(954): Magento\Framework\View\Layout\Interceptor->renderElement('root')
#115 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->getOutput()
#116 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', Array)
#117 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception{closure}()
#118 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array)
#119 /var/www/html/vendor/magento/framework/View/Result/Page.php(257): Magento\Framework\View\Layout\Interceptor->getOutput()
#120 /var/www/html/vendor/magento/framework/View/Result/Layout.php(170): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))
#121 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#122 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array)
#123 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#124 /var/www/html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(130): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, Array)
#125 /var/www/html/vendor/magento/framework/App/Http.php(139): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#126 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->launch()
#127 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('launch', Array)
#128 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception{closure}()
#129 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(26): Magento\Framework\App\Http\Interceptor->___callPlugins('launch', Array, Array)
#130 /var/www/html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()
#131 /var/www/html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#132 {main}

@cleardesign18
Copy link

Deleting the contents of /var/cache/ and /var/page_cache/, then running setup:upgrade and setup:di:compile again fixed this for me.

@ghost
Copy link
Author

ghost commented May 4, 2018

Thank you.

I try this but not work

@lubsto
Copy link

lubsto commented May 4, 2018

I am also getting the exact same error and the checkout also breaks because of this critical error. Any input soon would be much appriciated.

@gclift
Copy link

gclift commented May 4, 2018

I'm also getting the same error. Fresh Install of M2.2.3 last week with a couple 3rd party modules (Codazon_MegaMenu & WeltPixel_OwlCarouselSlider). Upgraded to M2.2.4 this morning and deleted var/cache/*, generated/code, ran setup:upgrade, then setup:di:compile. It errors out on step 4/7 [Interceptors generation].

[RuntimeException]
Source class "\Magento\Payment\Model\Method\Virtual" for "Magento\Payment\Model\Method\VirtualLogger" generation does not exist.

Exception trace:
() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/vendor/magento/framework/Code/Generator.php:185
Magento\Framework\Code\Generator->tryToLoadSourceClass() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/vendor/magento/framework/Code/Generator.php:112
Magento\Framework\Code\Generator->generateClass() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/vendor/magento/framework/Code/Generator/Autoloader.php:35
Magento\Framework\Code\Generator\Autoloader->load() at n/a:n/a
spl_autoload_call() at n/a:n/a
ReflectionClass->__construct() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/setup/src/Magento/Setup/Module/Di/Code/Reader/Type.php:21
Magento\Setup\Module\Di\Code\Reader\Type->isConcrete() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/setup/src/Magento/Setup/Module/Di/Code/Generator/InterceptionConfigurationBuilder.php:156
Magento\Setup\Module\Di\Code\Generator\InterceptionConfigurationBuilder->filterNullInheritance() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/setup/src/Magento/Setup/Module/Di/Code/Generator/InterceptionConfigurationBuilder.php:141
Magento\Setup\Module\Di\Code\Generator\InterceptionConfigurationBuilder->getPluginsList() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/setup/src/Magento/Setup/Module/Di/Code/Generator/InterceptionConfigurationBuilder.php:94
Magento\Setup\Module\Di\Code\Generator\InterceptionConfigurationBuilder->getInterceptionConfiguration() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/setup/src/Magento/Setup/Module/Di/App/Task/Operation/Interception.php:99
Magento\Setup\Module\Di\App\Task\Operation\Interception->doOperation() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php:56
Magento\Setup\Module\Di\App\Task\Manager->process() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php:205
Magento\Setup\Console\Command\DiCompileCommand->execute() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/vendor/symfony/console/Command/Command.php:242
Symfony\Component\Console\Command\Command->run() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/vendor/symfony/console/Application.php:843
Symfony\Component\Console\Application->doRunCommand() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/vendor/symfony/console/Application.php:193
Symfony\Component\Console\Application->doRun() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/vendor/magento/framework/Console/Cli.php:104
Magento\Framework\Console\Cli->doRun() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at /var/httpd/fishpond.dev.05.stage-a.com/htdocs/bin/magento:23

PHP 7.0
CentOS

@gclift
Copy link

gclift commented May 4, 2018

Until the experts at Magento weigh in, I was able to brute force a "fix". Before people inform me this is a dumb idea, I fully understand this is not a real fix but we have a development deadline so I need a temporary solution. So, with that caveat, I hope it helps somebody else if they need a temporary fix.

STEP 1:
FILE: vendor/magento/module-shipping/etc/di.xml
Removed the following XML

 <virtualType name="Magento\Shipping\Model\Method\VirtualLogger" type="Magento\Framework\Logger\Monolog">
        <arguments>
            <argument name="handlers" xsi:type="array">
                <item name="debug" xsi:type="object">Magento\Shipping\Model\Carrier\VirtualDebug</item>
            </argument>
        </arguments>
    </virtualType>
    <type name="Magento\Shipping\Model\Carrier\AbstractCarrier">
        <arguments>
            <argument name="logger" xsi:type="object">Magento\Shipping\Model\Method\VirtualLogger</argument>
        </arguments>
    </type>

STEP 2:
FILE: vendor/magento/module-payment/etc/di.xml
Removed the following XML

<virtualType name="Magento\Payment\Model\Method\VirtualLogger" type="Magento\Framework\Logger\Monolog">
        <arguments>
            <argument name="handlers" xsi:type="array">
                <item name="debug" xsi:type="object">Magento\Payment\Model\Method\VirtualDebug</item>
            </argument>
        </arguments>
    </virtualType>
    <type name="Magento\Payment\Model\Method\Logger">
        <arguments>
            <argument name="logger" xsi:type="object">Magento\Payment\Model\Method\VirtualLogger</argument>
        </arguments>
    </type>

STEP 3:
FILE: vendor/amzn/amazon-pay-and-login-magento-2-module/src/Payment/etc/di.xml
Changed "amazonIpnLogger" to "amazonClientLoggerHandler" (two instances)

STEP 4:
FILE: vendor/amzn/amazon-pay-and-login-magento-2-module/src/Core/etc/di.xml
Changed "amazonClientLogger" to "amazonClientLoggerHandler" (two instances)

Thanks to @aholovan for the Amazon pay fix!

@ghost
Copy link
Author

ghost commented May 4, 2018

Hello,

@gclift

Work for my also.

But i hope a other solution from Magento

@magnetic5355
Copy link

same issue 2.2.4 on compile +1

@kartguru
Copy link

kartguru commented May 6, 2018

same issue 2.2.4 on compile when upgrading from 2.2.3

@ksz2013
Copy link

ksz2013 commented May 6, 2018

Having the same issue, if i try to add a plugin on the LoggerInterface Magento is throwing the same error.

If the following snippet is added in the di.xml for example:
The Wp\Module\Plugin\Logger class can be left empty, no logic in there and error still persists,

<type name="Psr\Log\LoggerInterface">
        <plugin name="plugin-logger"
                type="Wp\Module\Plugin\Logger" sortOrder="15"/>
    </type>

@lubsto
Copy link

lubsto commented May 8, 2018

Any update on this? Btw when Installing 2.2.4 vanilla it works without compiling errors. In my case the issue occurs after upgrade to 2.2.4 from 2.2.3.

@dankoz51
Copy link

dankoz51 commented May 8, 2018

We are having the same issue here after a 2.2.3 to 2.2.4 upgrade, though I have compared to a base install of Magento and it seems to be identical so it may be caused by an extension.

@dankoz51
Copy link

dankoz51 commented May 9, 2018

like ksz2013 said , we had welt_pixel plugin to the logger
<type name="Psr\Log\LoggerInterface"> <plugin name="weltpixel-backend-logger" type="WeltPixel\Backend\Plugin\Logger" sortOrder="16"/> </type>
and this causes this error for us, why and how I dont understang but it certainly did break it

@rav-redchamps
Copy link
Contributor

rav-redchamps commented May 9, 2018

This issue occurs only when you have a plugin for class "Psr\Log\LoggerInterface" as said by @ksz2013

In our case, it was in WeltPixel's extension

app/code/WeltPixel/Backend/etc/di.xml

Removing the content

 <type name="Psr\Log\LoggerInterface">
         <plugin name="weltpixel-backend-logger"
                 type="WeltPixel\Backend\Plugin\Logger" sortOrder="15"/>
   </type>

solved the problem.

The solution of @gclift does work. But modifying so many core files is not worth. Just search your file system for text

name="Psr\Log\LoggerInterface"

and remove the plugin temporarily until the time we have an official solution.

@KM-HM
Copy link

KM-HM commented May 9, 2018

I updated from Magento 2 CE 2.2.3 to 2.2.4 and had the same issue.

[RuntimeException]
Source class "\Magento\Payment\Model\Method\Virtual" for "Magento\Payment\Model\Method\VirtualLogger" generation does not exist.

Disabling WeltPixel_OwlCarouselSlider and WeltPixel_Backend worked for me(this module was mentioned in he above posts).

Is this a backward incombatible change in 2.24.4 or simply a mistake in the weltpixel module?

@gclift
Copy link

gclift commented May 9, 2018

Thanks @ravinders-121, good find! We also have the WeltPixel_OwlCarouselSlider.

@dankoz51
Copy link

dankoz51 commented May 9, 2018

I think its anything tha plugs into the logger.
grep -R --include *.xml 'Psr\Log\LoggerInterface' .

if you find something that plugs into that with the xml you can potentially just remove the plugin, as it only is making logging better for developers.

Why a logger plugin throws this error, I suspect one of the Sales modules may call the logger in some non compatible way.

@rav-redchamps
Copy link
Contributor

This is possibly a bug in weltpixel’s extension.

Follow this tweet for updates from weltpixel

https://twitter.com/_redchamps/status/994258768929095680?s=12

@ksz2013
Copy link

ksz2013 commented May 9, 2018

Hi,

For the moment who is using the weltpixel modules, just comment out in the following file:
app/code/WeltPixel/Backend/etc/di.xml

the plugin for the Psr\Log\LoggerInterface (this only disabled the Broken Reference Loggings to the log files)

 <type name="Psr\Log\LoggerInterface">
         <plugin name="weltpixel-backend-logger"
                 type="WeltPixel\Backend\Plugin\Logger" sortOrder="15"/>
   </type>

It seems Magento is not allowing at the moment to create a plugin on the LoggerInterface. Workaround for this is implemented and will work in the next releases for the weltpixel modules.

@kartguru
Copy link

following some comments here i contacted WeltPixel.

"We are aware of this issue that came with Magento 2.2.4 , and we already fixed it. The fix will be included in the next products releases next week, after all tests are completed."

@luckyraul
Copy link

luckyraul commented May 14, 2018

we have the same problem.

@magento-engcom-team Any updates?

@luckyraul
Copy link

I found a possible source of the problem.
It is not working with symfony/dependency-injection v3.3.16 and works well with v3.4.9

@rav-redchamps
Copy link
Contributor

Received response from WeltPixel on the tweet

https://twitter.com/_redchamps/status/994258768929095680?s=12

"The new releases are out, all our products are now compatible with Magento 2.2.4"

@siliconrockstar
Copy link

siliconrockstar commented Jun 9, 2018

Ran into the same error message while trying to build a logger that extends Monolog. Problem turned out to be a typo in in di.xml

@orlangur orlangur self-assigned this Jun 22, 2018
@ghost ghost added the Component: Bundled Extension Issue is caused by one of the bundled extensions label Sep 5, 2018
@magento-engcom-team
Copy link
Contributor

We are closing this ticket now, as it seems all of the described errors have no direct relation to the code in this repository and caused by third-party modules.

If you believe there is some kind of issue with the core – please create a new ticket describing the problem itself.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Bundled Extension Issue is caused by one of the bundled extensions Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed
Projects
None yet
Development

No branches or pull requests