Whenever an anonymous user posts a question and I try to answer it, I get directed to a Page Not Found. However, if an authenticated user puts in a question, there's no problems. What am I doing wrong?

Thanks,

Ryan

Comments

jryanz’s picture

Category: support » bug

I've been playing around with it and don't seem to be doing anything wrong.

jryanz’s picture

Seems like problem is related to UID of creator. If anonymous creates it (UID=0) cannot be edited by others. If you go into the database in the node table and change the UID to another user, the faq becomes editable and you can answer it.

Still looking for some help.

jryanz’s picture

Alright, think I've come to a conclusion on this.

Anonymous user "asked faqs" are created as nodes with the UID = 0

Drupal can't create/edit the node unless it's UID is actually assigned to a real user.

I was able to get it to work by creating a new user and manually changing its UID to 0. Now, anonym. questions are able to be answered.

Please help me solve this issue as soon as possible =) Thanks.

Ryan

nancydru’s picture

Hmm. Anonymous users can create content if the they have the permissions. And obviously they did. Are you trying to answer it as user/1 or some other user? What roles does that userid have (yes, user/1 can be assigned roles)?

jryanz’s picture

I tried answering it as user/1 and a couple of other users, all of which had access permissions to answer and update.

If you want, I can let you in to take a look. My workaround no longer works. Bizzare.

Thanks for your help!

Ryan

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Active » Fixed

There was a problem with the anonymous user name. I committed the fix to the -dev versions.

*EDIT* I decided not to wait, so I created a new official release.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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