hi guys,

I have a very annoying problem and it seems there is no solution. The comment system of my multi-site Drupal install produces strange results: Only the administrator can send comments by default.
If I want authenticated users (or other created groups) to commit messages, I must set node administration permission for them in the acces controll list. I'v been looking for the reasons for days but I haven't. :(
Where should I search the solution?
Thank you very much for helping me.

B.

ps: sorry fom my weak english.

Comments

bandika’s picture

I discovered that comments works properly only with "page" type.

greggles’s picture

When you post a new node to the other content types, what are the "comment" options that you have set?

As a node admin, you are given a choice of disabled, read only, or read/write modes?

Or, you can change the default comment mode in the admin>content>configure>content types>

And then editing the "Default Comment Setting" section. Note that editing this Default setting only affects new nodes created after making the change. You would have to go back and edit it for existing nodes to change them to a different comment setting.

--
Knaddison Family Blog

bandika’s picture

Thank you for your answer. The issue is not as easy as seems.
I'v made a test site where you can see:

http://teszt2.dhost.hu/

admin nem: test pw: test
authenticated use name: testuser pw: testuser

I think the problem is the drupal's not perfect PHP5 compatibility.
At home, the same portal works perfectly with PHP4.. :(

varunvnair’s picture

I played around with your site for some time and can confirm that the problem does exist and is not due to misconfiguration. I enabled/disabled various things but couldn't get comment for authenticated users to work.

I don't think the problem is PHP5 incompatibility. My gut feeling is that problem is caused by taxonomy_access. It was used/enabled earlier and some of its remnant settings is causing the comments problem.

I also get the following error when playing with taxonomy_access

Type	php
Date	Tuesday, January 24, 2006 - 11:44
User	test
Location	/?q=admin/access/category/2
Message	Invalid argument supplied for foreach() in /var/www/drupal/modules/taxonomy_access/taxonomy_access.module on line 107.
Severity	error
Hostname	[my_ip_address]

I would also like to look at the database directly. Please install the dba (database administration) module if possible. I hope this test installation uses a different database from any of your other setups because installing dba will give the admin full access to all the tables in the database.

My Drupal-powered Blog: ThoughtfulChaos

bandika’s picture

dear Varun,

thank you for helping me! I'v made an issue about this problem too.
(http://drupal.org/node/46175)
I'm thinking abouto to change php5 to php4..

varunvnair’s picture

In your home installation (i.e. the one with PHP4) is taxonomy_access installed? Is it enabled?

Rebuild your entire installation from scratch in the same way as your current installation. Except do not install taxonomy_access at all. Make you new installation a multisited off some common codebase.

Btw you mentioned that this site is multisited. Does the problem occur in any of the other sites that use the same codebase?

My Drupal-powered Blog: ThoughtfulChaos

bandika’s picture

At home, taxonomy_access is not installed. At server there are multi sites (basen on one drupal installation) installed and communnities need taxonomy_Acces for taxonomy-based acces roles.
I'll change PHP5 to PHP4 rather.
Many thanks :
András

varunvnair’s picture

I think you are missing the obvious here. PHP5 is NOT the problem. taxonomy_access is the problem.So better tread carefully and do enough pre-launch testing before your site goes live.

My Drupal-powered Blog: ThoughtfulChaos

varunvnair’s picture

Did you solve the problem?

My Drupal-powered Blog: ThoughtfulChaos

greggles’s picture

To quote Killes from the issue:

You can't use evaluation.module together with taxonomy_access. This is not supported.

--
Knaddison Family Blog

bandika’s picture

hello Varun, (and greggles)

I made a plan to avoid further problems. I created a clean install which works perfectly, and I'll copy te old sites' prefixed tables and modules into it apart from evaulation. I'l write again later.

thanks a lot:
Andras

varunvnair’s picture

I did some more snooping around and now commenting for authenticated users works as expected. Unfortunately I could not pinpoint the exact reason for the problem but here are some pointers.

The problem is most probably caused by taxonomy_access. It is behaving in a weird way when some edge condition occurs. I am unable to replicate the behaviour right now.

I just created a new vocabulary (called 'Categories') and added a couple of dummy terms to it. Then I made sure that appropriate settings were enabled in access control » category roles. That seemed to have cured the problem since newly created nodes after this had commenting enabled for authenticated users. However authenticated users still cannot comment on the older nodes. Seems to me that some module is not playing nice under a certain set of conditions.

I wanted to look at the actual values in the tables but couldn't do so because dba module is not installed.

My advice. Start with a fresh installation and add/enable only those modules that you actually need. Enable and configure 1 module at a time and each time make sure the problem does not recur. If the problem does appear again note down the exact set of conditions/configuration which causes it to appear and file a bug report for the appropriate module.

Hope this helps. Have a nice day.

My Drupal-powered Blog: ThoughtfulChaos