Closed (won't fix)
Project:
Frequently Asked Questions
Version:
6.x-1.6
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 May 2008 at 04:54 UTC
Updated:
11 Jun 2008 at 16:03 UTC
Hi,
I'm trying to set up the faq module and am having a few problems. I'm not sure if they're related.
First, I wasn't able to see my FAQ's on the FAQ page, unless logged in as user/1.
Second, I'm getting an error when I try to submit a question:
warning: Invalid argument supplied for foreach() in /home/agilkel8/public_html/sites/all/modules/faq/faq-category-hide-answer.tpl.php on line 107.
Do you think it's possible this is because I set the FAQ content-type to be not published by default? I ask because I tried to do this as a test to see what was going on.
In any case, I'd appreciate your help on this one.
Thanks in advance!
Scott
Comments
Comment #1
stella commentedEnsure that you have the "view faq" permission enabled for anonymous/authenticated users, or whichever role you wish them to be visible for. They will also need the "access content" permission. Also if the faq nodes are not published then they won't be available on the faq page(s).
As for the second issue, I can't reproduce this error. Could you be more specific as to when you see it? You say that you get the error when trying to submit a question, but the error in question would actually only appear when viewing the faq page. What are your faq settings? I need all the settings from the questions and categories settings pages.
Cheers,
Stella
Comment #2
Bartjuh commentedExactly the same error here.
warning: Invalid argument supplied for foreach() in <domain-path>/public_html/drupal/modules/faq/faq-category-hide-answer.tpl.php on line 107.When i try to access the FAQ overview page.
It worked perfectly before (6x-1.5), i upgraded to version 1.6, then this error appeared.
Comment #3
stella commentedCan you try the latest dev release? Don't worry, it's stable. I think this problem might have been fixed in it already.
Cheers,
Stella
Comment #4
corprew commentedThis shows up on all my FAQ installs whenever there isn't a single FAQ visible to the user. I'm on 5.x, but the code problem looks the same at first glance. Make viewing FAQs available to whatever the base user cat is for your site and then add at least one FAQ and the problem should go away.
Comment #5
stella commentedPlease try the latest dev release of your version. It should have been fixed in both earlier this month.
Cheers,
Stella
Comment #6
yark commentedI have same problems:
D6
FAQ 6.x-1.x-dev 2008-May-13
FAQ_Ask 6.x-1.x-dev 2008-May-11
And errors still exist:
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\content.module on line 1096.
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\content.module on line 1136.
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\content.module on line 353.
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\modules\content_permissions\content_permissions.module on line 34.
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\content.module on line 1136.
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\content.module on line 1096.
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\content.module on line 1136.
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\content.module on line 353.
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\modules\content_permissions\content_permissions.module on line 34.
warning: Invalid argument supplied for foreach() in app\sites\all\modules\cck\content.module on line 1136.
And i can't "Ask a question". It generates no errors, but return simply blank FAQ category...
"ask question" and "view faq" permission enabled for all (includes anonymous). What about "create faq" permissions?
Comment #7
stella commentedyark: those errors you list are unrelated to the faq module. They are for the CCK set of modules. I would imagine they don't disappear if you disable the FAQ and FAQ_Ask modules.
Please open a separate issue with the CCK module for the errors above.
Please open a separate issue for your "ask a question" issue with the FAQ_Ask module.
Cheers,
Stella
Comment #8
stella commented