Empty forum post created when anonymous user clicks link
| Project: | Discuss This! |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | spiderman |
| Status: | needs review |
Jump to:
Not sure this is really a bug... just maybe a user issue that could use more graceful error handling. If anon users are set w/permission to initiate discuss this topics but are set via ACL and Forum Permissions (or somewhere else... not entirely sure) to not be able to post topics to that forum, they see the "discuss this" link... and clicking it produces an error screen and a sort of invisible empty forum topic.
(Shows up in content list but nowhere else... and has no title or anything)
This only happens if there is not already a topic started by somebody who does have the right permissions.
Here's the error code...
An illegal choice has been detected. Please contact the site administrator.
there was an error creating the new discussion: Array ( [taxonomy][2] => An illegal choice has been detected. Please contact the site administrator. )
--------------------------------------------------------------------------------
You are not authorized to access this page.
--------------------------------------------------------------------------------I don't need a fix for this because I don't intend to have anon users w/"initiate" permission. But some nicer way of saying "can't do that" would be a good idea.... maybe just disappear the "discuss this" link?

#1
Another detail... I was wrong that the empty forum topic doesn't show up. Under one condition at least it does. After the above happens, if somebody w/right permissions clicks the "discuss this" link they are taken to the blank forum topic. Since it has no body, title or taxonomy, it doesn't show up in the lists.
#2
My latest commit to CVS completely overhauls the way that forum topics are created, and I'm hoping this issue is alleviated as a positive side effect. Please re-test with the latest CVS code and let me know if the issue persists.
The commit is here: http://drupal.org/cvs?commit=171508