1

On duplicate save button product give this following fatal error, what are the issue in database or in some file, I recently migrate m2.2 to M2.3

enter image description here

Fatal error: Uncaught Error: Call to a member function getEntityId() on null in /var/www/html/live/vendor/magento/module-catalog-url-rewrite/Model/ProductUrlRewriteGenerator.php:187 Stack trace: #0 /var/www/html/live/vendor/magento/module-catalog-url-rewrite/Model/ProductUrlRewriteGenerator.php(141): Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator->generateForGlobalScope(Object(Magento\Catalog\Model\ResourceModel\Category\Collection), Object(Magento\Catalog\Model\Product\Interceptor), NULL) #1 /var/www/html/live/vendor/magento/module-catalog-url-rewrite/Observer/ProductProcessUrlRewriteSavingObserver.php(71): Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator->generate(Object(Magento\Catalog\Model\Product\Interceptor)) #2 /var/www/html/live/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Magento\CatalogUrlRewrite\Observer\ProductProcessUrlRewriteSavingObserver->execute(Object(Magento\Framework\Event\Observer)) #3 /var/www/html/live/vendor/magento/framework/Event/Invoker/InvokerDefault.php in /var/www/html/live/vendor/magento/module-catalog-url-rewrite/Model/ProductUrlRewriteGenerator.php on line 187

1 Answer 1

0

You have to set the different SKU for it.

1
  • on change SKU same error showing up
    – HAROONMIND
    Commented Aug 27, 2022 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.