olegkoval / magento2-regenerate_url_rewrites

Magento 2 extension which add feature of regenerating a url rewrites of products/categories
Academic Free License v3.0
420 stars 117 forks source link

error on magento 2.4.2 generating category urls #154

Open JannMulton opened 2 years ago

JannMulton commented 2 years ago

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ProductRepository::prepareSku() must be of the type string, null given, called in /opt/magento/site/htdocs/vendor/magento/module-catalog/Model/ProductRepository.php on line 794 and defined in /opt/magento/site/htdocs/vendor/magento/module-catalog/Model/ProductRepository.php:804 Stack trace:

0 /opt/magento/site/htdocs/vendor/magento/module-catalog/Model/ProductRepository.php(794): Magento\Catalog\Model\ProductRepository->prepareSku()

1 /opt/magento/site/htdocs/vendor/magento/module-catalog/Model/ProductRepository.php(350): Magento\Catalog\Model\ProductRepository->saveProductInLocalCache()

2 /opt/magento/site/htdocs/vendor/magento/module-catalog/Model/ProductRepository.php(315): Magento\Catalog\Model\ProductRepository->cacheProduct()

3 /opt/magento/site/htdocs/generated/code/Magento/Catalog/Model/ProductRepository/Interceptor.php(32): Magento\Catalog\Model\ProductRepository->getById()

4 /opt/magento/site/htdocs/vendor/magento/module-catalog-url in /opt/magento/site/htdocs/vendor/magento/module-catalog/Model/ProductRepository.php on line 804