I have this error coming up:

warning: Invalid argument supplied for foreach() in /public_html/modules/faq/faq.module on line 1074.

Anyone know how to get by? This is using the newest version with drupal 5.7, mysql 4x, and php4x.

Should I downgrade?

CommentFileSizeAuthor
#4 faq_254516.patch3.89 KBstella

Comments

stella’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have any faq nodes configured and published? If using categories, have you assigned any nodes to that category?

What are your faq settings? In particular, I need to know your which question and category layouts you're using. Do you have a site where I can see this happening?

Cheers,
Stella

fang27’s picture

This error came up after clicking on the navlink for FAQs without any setup or settings changes as of yet. So, whatever the default setup is would be it. :)

stella’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Active

Configure some faq nodes and the error should stop appearing then, so it's not a critical issue and doesn't prevent you from using the module, but it is something I will look at fixing.

thanks,
Stella

stella’s picture

Status: Active » Fixed
StatusFileSize
new3.89 KB

Fixed, try the attached patch or the latest dev release (available in next 12 hours).

Cheers,
Stella

hutch’s picture

Looks like all the theme_faq_* functions could do with if(count($nodes)) (or somesuch) test to prevent the error but as you say, not critical.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

stella’s picture

Released in faq 5.x-2.11.

Cheers,
Stella