v1.0.5: How to fix error when assigning question to a category?

Created by Jane D, Modified on Thu, 24 Feb 2022 at 11:26 AM by Jane D

QUESTION:


I use module v1.0.5 for my site M2.4.1_p1 and it works fine.

After editing the FAQ information in a category and assigning the label to the category, it works normally. However, when I assign this question to the category, it shows the error below:

Warning: Invalid argument supplied for foreach() in /xxx/xxx/xxx/xxx/xx/app/code/Bss/Faqs/Model/Faqs.php on line 135


Screenshot:


ANSWER:


To fix this error, please edit fileapp/code/Bss/Faqs/Model/Faqs.php as below:



If you need further assistance, please do not hesitate 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 atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article