I found after creating the question cck type and adding the numeric field, I got an error

"Unable to complete operation. Fatal error in ........ on line 21: Cannot access empty property"

This error dissapered once I type in a number in the numeric field for the questrion. I was hoping this field should populate itself automatically.

Comments

jcisio’s picture

That field is for the answer, not question. It is filled when the questionner click on the "select" link on one of the comments in that question.

ibexy’s picture

I see..
then something is wrong because I keep getting the above error message until I actually fill in a number via updating the question node.

jcisio’s picture

Line 21... Hmm it looks like a message from this module, question_answer.pages.inc. How do you get this error. Could you please describe how to reproduce the bug? I'm running this in dev site and another site without problem and I can't see the bug.

ibexy’s picture

thanks for your responses.

1 Create a question. (leave the number integer blank)

2 Create a response to the question.

3 View the comment and click select.

The error shows.

If I now edit the question node and add a number in the integer field. if I go back and select a comment, every thing works fine.

jcisio’s picture

Could you give the full error message? It seems that the error is like in #841528: error on select but the scenario here is different. And could you test with another user (different than user1) to see if the error persists.

ibexy’s picture

yes its the same error. I got exactly the same things. And I have defined an integer field within the question node. I have also set up everything via the configuration area.

jcisio’s picture

I don't have any idea now. If you like, PM me your host info, I'll debug. I simply can't reproduce the bug.

ammadx’s picture

A similar problem. By click the 'select' link on a comment, it does not set that comment as the best answer. i have to manually enter a comment number to the selected answer field of the question. how ever i don't get any error messages.

jcisio’s picture

Can you export your content type and use it in a new website to see if it is a bug of question_answer? Or how can reproduce the bug on a clean D6 install?

jcisio’s picture

Status: Active » Fixed

I fixed this problem. The problem was when you click select, it always used the field "field_answer" instead of your defined field.

Oscar Illada’s picture

it would be nice a thanks :) am i wrong?

jcisio’s picture

It would, and there was, indeed, in the other issue ;)

I take this chance to notice that 1.4 is out. Hope there will be a lot of users.

Oscar Illada’s picture

excellent greetings for this

Status: Fixed » Closed (fixed)

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