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 file app/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!
BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.
We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.
Explore our extensions: https://bsscommerce.com/magento-2-extensions.html
For B2B businesses, our Magento B2B Extension by BSS Commerce is a flagship and widely adopted solution globally, offering advanced pricing, company account management, and streamlined workflows.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article