By ayesh on
I allowed anonymous users to post comments, and post without approval.
When anonymous users comment, comment disappears upon submission!
Spam, captcha or mollom are not enabled. Approval queue is empty.
This happens in every theme, every node type.
Please help me.
Comments
Since there is no data in
Since there is no data in database, I'm thinking that you may have some issue with the comment form itself... Did you make any changes in the form using preprocess functions? Perhaps in the template.php file?
I came across a similar issue recently, but it turned out that I have removed a very important field from the comment form, rendering it useless...
I didn't touch tpl files. I'm
I didn't touch tpl files.
I'm using aqua marina theme.
I used spam, and captcha (math challenge) forms/filters. But I completely uninstalled these modules.
What do you think ?
The solution may be reinstall comment from core ?
What's new and changing in PHP 8.4
I'm not convinced that this
I'm not convinced that this is an issue of the comment module (unless you changed the core comment module yourself). Can you post comments as a registered user or as admin? Is this issue specific to the anonymous users?
Yes! Authenticated users and
Yes!
Authenticated users and admin account can comment. They are shown with correct theme, filters, etc.
What's new and changing in PHP 8.4
This sounds extremely
This sounds extremely strange. It smells like permissions' problem.
Check this article: http://drupal.org/node/777326
and go to the various administrative pages mentioned there and make sure that there is no mistake in the various comment settings.
This URL: http://drupal.org/getting-started/6/admin/content/comment should be your reference to find out what is going on. The fact that the comment form is working properly for the rest of the users, points to permissions/settings though.
Edit: if you are talking about the site in your signature, the message:
appears to anonymous users... Which means that comments are disabled for anonymous users.
I set permissions to RESTRICT
I set permissions to RESTRICT anonymous users commenting.
Then, drupal shows 'login or register to comment' text below already-posted comments.
When I grand perms to comment,(in node type, 'users may not enter contact info' chosen) comment form is displayed.
When someone comment, comment goes to hell and no replies.
What's new and changing in PHP 8.4
user 0 in db?
ayeshrajans,
Can you ensure that there is a user with a UID of 0 in the database? Drupal needs this user for the Anonymous user, if it doesn't have it, the data can't be shown for anonymous even when permissions are set correctly.
-aaron
Hi aaron, NO! There are no
Hi aaron,
NO! There are no any link with UID 0.
The UID raws begins with 1.
This can be the problem.
Can you please let me know how can I fix it ?
Thanks.
What's new and changing in PHP 8.4
insert into the database
Sure thing,
if you have phpmyadmin, insert a row and set the uid = 0. Problem is, mysql will not allow you to do this nicely and will set the uid as the auto increment number, meaning you will need to update that row and set the uid to 0 again.
if you don't have phpmyadmin, or you would like to do this in the sql you can
INSERT INTO `users` (`uid`) VALUES (0);
UPDATE `users` SET uid=0 WHERE `name`='' and `pass` = '';
I hope this helps. Let me know if there are other questions.
-aaron
Yes aaron, this really
Yes aaron, this really helps.
I added a raw, and now UID is 0.
What are the other data ? Keep username,email,etc fields blank ?
What's new and changing in PHP 8.4
default anonymous user
ayeshrajans,
Yes you would keep all the other data as default or blank. Drupal uses uid 0 as the Anonymous user, and since it is the anonymous user, it doesn't need a username, passwort etc.
I'm glad to hear that helped.
aaron
I set permissions to RESTRICT
I set permissions to RESTRICT anonymous users commenting.
Then, drupal shows 'login or register to comment' text below already-posted comments.
When I grand perms to comment,(in node type, 'users may not enter contact info' chosen) comment form is displayed.
When someone comment, comment goes to hell and no replies.
What's new and changing in PHP 8.4
I just found a new
I just found a new thing.
When anonymous users comment, number of comments field is displayed correctly.(links section in blog post)
when I click the '8 comments' link, it only show comments by authenticated users.
What's new and changing in PHP 8.4
I just found a new
I just found a new thing.
When anonymous users comment, number of comments field is displayed correctly.(links section in blog post)
when I click the '8 comments' link, it only show comments by authenticated users.
What's new and changing in PHP 8.4
May be boost module ?
May be boost module ?
What's new and changing in PHP 8.4