Magento 2.4.5

ForumAdmin

Administrator
Staff member
Hi there! We have a small issue with php 8.1. It can be easily fixed as follows:

Line 77 in WebRotate360\ProductViewerStandard\ViewModel\WebRotatedStandard.php

Code:
return ltrim($product->getData('webrotate_path'), '/');
replace with:
Code:
return ltrim($product->getData('webrotate_path') ?? '', '/');

Line 218 in the same file:

Code:
$configUrl = ltrim($fetched->getData('webrotate_path'), '/');
replace with:
Code:
$configUrl = ltrim($fetched->getData('webrotate_path') ?? '', '/');
 
Top