FixProductBreadcrumbs icon indicating copy to clipboard operation
FixProductBreadcrumbs copied to clipboard

There is an error when trying to access to Not Visible product

Open serzhik opened this issue 7 years ago • 4 comments

How to reproduce:

  • Disable product
  • Try to go to the product's URL

serzhik avatar Sep 12 '18 12:09 serzhik

What is the error that you are getting?

CompactCodeEU avatar Oct 26 '18 11:10 CompactCodeEU

Same error here.

when you view a disabled product, error 500.

getProduct() function in View.php throws an exception.

webmaker1 avatar Jan 16 '19 09:01 webmaker1

This module will be reviewed and reworked in the coming 2 weeks. I will put it in the notification

CompactCodeEU avatar Jan 16 '19 11:01 CompactCodeEU

Same error. M2.2.3 I create and enable product - everything is OK. Then I disable/make invisible and try to follow the link - get this error:

Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Controller\Result\Forward\Interceptor::getLayout() in /app/code/CompactCode/FixProductBreadcrumbs/Plugin/Product/View.php:62 Stack trace: #0 /vendor/magento/framework/Interception/Interceptor.php(146): CompactCode\FixProductBreadcrumbs\Plugin\Product\View->afterExecute(Object(Magento\Catalog\Controller\Product\View\Interceptor), Object(Magento\Framework\Controller\Result\Forward\Interceptor)) #1 /vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception{closure}() #2 /generated/code/Magento/Catalog/Controller/Product/View/Interceptor.php(26): Magento\Catalog\Controller\Product\View\Interceptor->___callPlugins('execute', Array, Array) #3 /vendor/magento/framework/App/Action/Action.php(107): Magento\Catalog\Controller\Product\View\Interceptor->execut in /app/code/CompactCode/FixProductBreadcrumbs/Plugin/Product/View.php on line 62

givan808 avatar Mar 14 '19 06:03 givan808