M2.4.4, v1.1.8: Fix the error when editing products

Created by Esther Nguyen, Modified on Wed, 22 Apr at 12:23 AM by Support Agent

ISSUE:

When we do the following:

- Login to admin

- Open product 

- Go to "Configurations -> Edit configurations"

- Click next until you're at images

- Select "Apply a single set of images to all SKUs "

- Select Image

- Next

- Generate products

- Click save on the top right.


Expected result: Product is saved and images changed.


Actual result: Error

[2022-09-30T12:15:32.352094+00:00] main.CRITICAL: Exception: Warning: Trying to access array offset on value of type null in /home/rebelzst/releases/202010121151/app/code/Bss/InventoryReport/Observer/SaveInventoryReportDataObserver.php on line 61 in /home/rebelzst/releases/202010121151/vendor/magento/framework/App/ErrorHandler.php:61


SOLUTION:


Our module has not worked properly with configurable products on M2.4.4, PHP 8.1


To resolve the issue, please download the files attached below to override the current file on your site.

app/code/Bss/InventoryReport/Observer/SaveAfterObserver.php

app/code/Bss/InventoryReport/Observer/SaveInventoryReportDataObserver.php

app/code/Bss/InventoryReport/Observer/SaveObserver.php


If you need any further assistance, please feel free to contact us. We'd be happy to support you!


About us


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Discover our extensions: https://bsscommerce.com/magento-2-extensions.html 


If you want to find the best solution for your website, here are our top tier plugins:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article