Closed (fixed)
Project:
Frequently Asked Questions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2010 at 07:32 UTC
Updated:
25 Mar 2012 at 00:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
stella commentedI can't reproduce this. Is it still a problem?
Comment #2
stella commentedNo update to my question, so closing this issue. Feel free to reopen if the problem is still occurring.
Comment #3
stenjo commentedHave the same problem. Even have the same issue when running simpletest:
Could it be something with the server setup?
Running Apache/2.2.20 (Ubuntu 11.10), PHP Version 5.3.6-13ubuntu3.6 and with clean urls enabled.
Comment #4
stella commentedI can't reproduce with the latest version of the faq module (6.x-1.13) with PHP 5.2.5 and Apache 2. Can you try it with the latest version?
Comment #5
stenjo commentedAttached is a devel- snapshot of the parameters passed to the faq_form function when error occurs. Hope this might shed some light on the issue. Will try and investigate a little more on what is happening.
Comment #6
stenjo commentedAt line 354 in faq.module the following hook is defined:
I cannot seem to find where the hook is called. There are no hook_content_extra_fields() in the core documentation
http://api.drupal.org/api/search/6/hook_content_extra_fields
Comment #7
stenjo commentedA suggested fix (although I'm not sure if that only fixes the symptom rather than the root cause) is to replace the reference to
'#default_value' => $node->detailed_question,with something like
'#default_value' => isset($node->detailed_question)?$node->detailed_question:'',Patch attached
Comment #8
stella commentedhook_content_extra_fields() is a CCK hook. It declares the field to CCK so it can be re-ordered on the 'display fields' page.
I've committed the patch. I'm not sure why that field is undeclared but we might as well fix the error. Thanks!
Comment #9
stenjo commentedThank you for the explanation. Did not check for the CCK hooks :-)
Have come across another related issue I suppose:
Notice: Undefined property: stdClass::$revision in faq_update() (line 262 of /var/www/d6/sites/all/modules/faq/faq.module).Create similar fix on this one too?
Comment #10
stella commentedDone!