As I’m pushing to go live, I have run in to a little road block. I’m trying to tie up some loose ends, however this one has me stumped. Any tips on troubleshooting? This is from the php logs and there is nothing generated in the exception or sys logs when generate this issue.
I’m simply trying to generate a sitemap.xml in the admin area and this is the error I get. I’m on 2.3.5-p1. I have never tried to generate a sitemap up until now. I am using mageworx seo extension, but even with that disabled I still get the same results and they said it is my issue and not their extension, so they aren’t willing to help. Go figure. I expect this has something to do with the M1–>M2 migration process.
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\\Catalog\\Model\\Product\\Image\\UrlBuilder::getUrl() must be of the type string, null given, called in /home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/mageworx/module-xmlsitemap/Model/ResourceModel/Catalog/Product.php on line 527 and defined in /home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/magento/module-catalog/Model/Product/Image/UrlBuilder.php:65\nStack trace:\n #0 /home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/mageworx/module-xmlsitemap/Model/ResourceModel/Catalog/Product.php(527): Magento\\Catalog\\Model\\Product\\Image\\UrlBuilder->getUrl(NULL, 'product_page_im...')\n #1 /home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/mageworx/module-xmlsitemap/Model/ResourceModel/Catalog/Product.php(480): MageWorx\\XmlSitemap\\Model\\ResourceModel\\Catalog\\Product->getProductImageUrl(NULL)\n #2 /home/363882.cloudwaysapps.com/qzzbnfgmbr/public_html/vendor/mageworx/module- xmlsitemap/Model/ResourceModel/C...\n', referer:
Any ideas, tips, or suggestions would be amazing. I’m not sure how to narrow this down further from this point to see if it is a particular product that has an image/string issue or if it is all of them. There are no issues on the frontend with the images and they are all there as one would expect.