When I install nodewords, everything worked great, except that when I looked at my logs, I had a lot of "access denied" messages for comments. Sure enough, even as user/1 I could not post a comment (nor as anonymous of course) and just got "access denied" I turned off nodewords and comments worked just as before installing nodewords (that is perfectly).

Comments

ergophobe’s picture

I checked this on another server with different versions of PHP and MySQL with the same result. If both comment and nodeword are active, even user/1 gets access denied to comments.

ergophobe’s picture

Let's see - I changed the drupal_access_denied() calls to include __FILE__ and __LINE__ and output them. So the access denied message is coming from index.php, line 21

that means that function menu_execute_active_handler() (menu.inc, line 386 ff) is returning false for the expression
!_menu_item_is_accessible(menu_get_active_item()) [on line 407]

When I output the return value for menu_get_active_item, it is '0' with nodewords active.

When I disable nodewords, the return value for menu_get_active_item is 117 (correct for the test page in question) and everythign works as expected.

Sorry to say that it's bed time and that's as far as I got.

ByteEnable’s picture

Version: 4.7.x-1.x-dev » master

Its also broken in Drupal 5.x too.

Byte

Robrecht Jacques’s picture

Status: Active » Fixed

Bug confirmed. If you enable nodewords and input a "geourl", then you can't post comments. This is probably an old bug popping up again.

Fixed again by only outputting a DC.title for node-pages. If someone knows a reliable way of getting the title of a page (any page) in hook_menu(), let me know. We can do it reliable for node-pages because then we just have to look at $node->title.

Fixed in nodewords.module v1.32.2.16 (for Drupal4.7) and in nodewords.module v1.55 (for Drupal5.0).

If the issue was not fixed for you, please reopen the issue.

ergophobe’s picture

Verified - issue is fixed for me on 4.7. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)