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!