When accessing a PLP (product listing page), magento responds with 500 Server Error. Module is configured to only act on PDP (product detail page). PDP pages are rendered as expected and the ld+json is included in markup.
Warning: DOMDocument::loadHTML(): Document is empty in Entity, line: 1 in /var/www/html/vendor/outeredge/magento-structured-data-module/Plugin/StripReviewSummary.php on line 16
1
#1 DOMDocument->loadHTML() called at [vendor/outeredge/magento-structured-data-module/Plugin/StripReviewSummary.php:16]
#2 OuterEdge\StructuredData\Plugin\StripReviewSummary->afterGetReviewsSummaryHtml() called at [vendor/magento/framework/Interception/Interceptor.php:146]
#3 Magento\Review\Block\Product\ReviewRenderer\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#4 Magento\Review\Block\Product\ReviewRenderer\Interceptor->___callPlugins() called at [generated/code/Magento/Review/Block/Product/ReviewRenderer/Interceptor.php:23]
#5 Magento\Review\Block\Product\ReviewRenderer\Interceptor->getReviewsSummaryHtml() called at [vendor/magento/module-catalog/Block/Product/AbstractProduct.php:221]
#6 Magento\Catalog\Block\Product\AbstractProduct->getReviewsSummaryHtml() called at [var/view_preprocessed/pub/static/app/design/frontend/xxredactedxx/Theme/Magento_Catalog/templates/product/list.phtml:1]
#7 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:71]
#8 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#9 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#10 Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#11 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:23]
#12 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/magento/framework/View/Element/Template.php:263]
#13 Magento\Framework\View\Element\Template->fetchView() called at [vendor/magento/framework/View/Element/Template.php:293]
#14 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1095]
#15 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099]
#16 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:660]
#17 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#18 Magento\Catalog\Block\Product\ListProduct\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#19 Magento\Catalog\Block\Product\ListProduct\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#20 Magento\Catalog\Block\Product\ListProduct\Interceptor->___callPlugins() called at [generated/code/Magento/Catalog/Block/Product/ListProduct/Interceptor.php:59]
#21 Magento\Catalog\Block\Product\ListProduct\Interceptor->toHtml() called at [app/code/WeltPixel/GoogleTagManager/Block/Category.php:21]
#22 WeltPixel\GoogleTagManager\Block\Category->getProductCollection()
#23 call_user_func_array() called at [vendor/magento/framework/View/TemplateEngine/Php.php:94]
#24 Magento\Framework\View\TemplateEngine\Php->__call() called at [var/view_preprocessed/pub/static/app/code/WeltPixel/GoogleTagManager/view/frontend/templates/category.phtml:1]
#25 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:71]
#26 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#27 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#28 Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#29 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:23]
#30 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/magento/framework/View/Element/Template.php:263]
#31 Magento\Framework\View\Element\Template->fetchView() called at [vendor/magento/framework/View/Element/Template.php:293]
#32 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1095]
#33 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099]
#34 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:660]
#35 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [app/code/WeltPixel/GoogleTagManager/Helper/Data.php:418]
#36 WeltPixel\GoogleTagManager\Helper\Data->addCategoryPageInformation() called at [app/code/WeltPixel/GoogleTagManager/Helper/Data.php:350]
#37 WeltPixel\GoogleTagManager\Helper\Data->getDataLayerScript() called at [app/code/WeltPixel/GoogleTagManager/Observer/CoreLayoutRenderElementObserver.php:40]
#38 WeltPixel\GoogleTagManager\Observer\CoreLayoutRenderElementObserver->execute() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:88]
#39 Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:74]
#40 Magento\Framework\Event\Invoker\InvokerDefault->dispatch() called at [vendor/magento/framework/Event/Manager.php:66]
#41 Magento\Framework\Event\Manager->dispatch() called at [generated/code/Magento/Framework/Event/Manager/Proxy.php:95]
#42 Magento\Framework\Event\Manager\Proxy->dispatch() called at [vendor/magento/framework/View/Layout.php:518]
#43 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/View/Element/AbstractBlock.php:511]
#44 Magento\Framework\View\Element\AbstractBlock->getChildHtml() called at [var/view_preprocessed/pub/static/vendor/magento/module-theme/view/frontend/templates/html/container.phtml:1]
#45 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:71]
#46 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#47 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#48 Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#49 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:23]
#50 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/magento/framework/View/Element/Template.php:263]
#51 Magento\Framework\View\Element\Template->fetchView() called at [vendor/magento/framework/View/Element/Template.php:293]
#52 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1095]
#53 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099]
#54 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:660]
#55 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Result/Page.php:253]
#56 Magento\Framework\View\Result\Page->render() called at [vendor/magento/framework/View/Result/Layout.php:171]
#57 Magento\Framework\View\Result\Layout->renderResult() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#58 Magento\Framework\View\Result\Page\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#59 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/amasty/gdpr-cookie/Plugin/ProcessPageResult.php:64]
#60 Amasty\GdprCookie\Plugin\ProcessPageResult->aroundRenderResult() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#61 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#62 Magento\Framework\View\Result\Page\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:23]
#63 Magento\Framework\View\Result\Page\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.php:120]
#64 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#65 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:105]
When accessing a PLP (product listing page), magento responds with 500 Server Error. Module is configured to only act on PDP (product detail page). PDP pages are rendered as expected and the ld+json is included in markup.
Configuration:
Magento log:
Magento report: