Fix error Notice: Trying to access offset on value of type null in ... line 843

Created by Jane D, Modified on Mon, 26 Oct, 2020 at 3:49 PM by Jane D

QUESTION: 

I use your module on M2.3.3 and it works like a charm. However, after upgrading the site to Magento 2.4, an error appeared when importing: 

Notice: Trying to access offset on value of type null in ... on line 843 

How to fix it?


ANSWER: 


To resolve this issue, please edit the file app/code/Bss/ProductAttributesImportExport/Model/Import/ProductAttributes.php 

 as below:


Or download the attached file below and overwrite the current file on your site.


If you have any other question or concern, please feel free to contact us. We'd be happy to support!


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