Last updated November 18, 2009. Created by stella on August 13, 2008.
Log in to edit this page.

No FAQs appear after module upgrade

When using categorized FAQ nodes, the disabling of the FAQ module causes the vocabulary to lose the association with the FAQ content type. This results in no FAQ nodes being displayed when you re-enable the FAQ module. Before opening an issue, please verify that this setting is still in place.

Clicking on category links takes user to front page

Reported with Drupal 5, unconfirmed for Drupal 6.
Instead of being taken to the categorized faq page, the front page is displayed when the user clicks on a faq category. This is something to do with the pathauto module and can be easily fixed by doing a bulk update of paths for the faq vocabulary.

<p> tags appear in FAQ question text

When using WYSIWYG editors, such as TinyMCE and FCKeditor, <p> and other HTML tags may appear in the displayed question text. This is because the faq title or question input box is a textarea and not a textfield, so the faq module can accommodate longer question texts. The p-tags come from the WYSIWYG editor used and not the FAQ module. This is because TinyMCE, and other WYSIWYG editors, attach themselves to all textareas on a given page.

TinyMCE
You can prevent TinMCE from attaching to certain textareas using the method described at Disable TinyMCE for dynamically named textareas. You will need to add case 'title': and case 'detailed-question': line entries, so the resulting code in your template.php should look something like:

function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
  switch($textarea_name){
    case 'title': // title field - necessary for faq questions.
    case 'detailed-question': // detailed question field - necessary for faq questions.
        unset($init);
        return $init;
        break;
    default:
        return theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running);
  }
}

FCKeditor
It's easier to configure this for FCKeditor than for TinyMCE. For FCKeditor, go to the configuration page at admin/settings/fckeditor and select a profile to edit. There, under the collapsed "Visibility Settings" fieldset, you will see the settings "Use Inclusion or Exclusion Mode" and "Selected Fields or Paths".

If using "inclusion" mode, then ensure you haven't included edit-title or edit-detailed-question fields in the list of selected fields. However, if using "exclusion" module, then edit-title and edit-detailed-question fields must be listed as one of the selected fields. See the FCKeditor documentation for more details.

Drupal 5 only issues

FAQ nodes not being created

If using MySQL 5.0.* with STRICT_ALL_TABLES mode, then you may get errors about the question text being too long to be inserted into the node and node_revisions tables. The solution is to either not use the strict mode, or add the following 4 triggers:

CREATE TRIGGER node_shrtn_ttl_ins BEFORE INSERT ON node FOR EACH ROW SET NEW.title = SUBSTR(NEW.title,1,128);
CREATE TRIGGER node_shrtn_ttl_upd BEFORE UPDATE ON node FOR EACH ROW SET NEW.title = SUBSTR(NEW.title,1,128);
CREATE TRIGGER node_rev_shrtn_ttl_ins BEFORE INSERT ON node_revisions FOR EACH ROW SET NEW.title = SUBSTR(NEW.title,1,128);
CREATE TRIGGER node_rev_shrtn_ttl_upd BEFORE UPDATE ON node_revisions FOR EACH ROW SET NEW.title = SUBSTR(NEW.title,1,128);

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

Gud evening.!!!
I have installed FAQ module, the problem now I am facing is, when i enabled the English language, it shows translated questions of all the enabled languages rather than showing English in the "Frequently Asked Questions" pages. can anyone help me to find a solution???

Lots of Thanks..!!!!
with regards,
Padmakani.

Read the module's documentation.
The solution is there!

I've read the whole docs and can't figure out how I'm going to fix the same issue (it shows translated questions of all the enabled languages rather than showing English in the "Frequently Asked Questions" pages). Can you poing please to a specific link with a solution?
I'm using latest Drupal 7 (.24)

Thanks