Hello,
When I open contact_anon/[nid]

I have the message :

warning: array_keys() [function.array-keys]: The first argument should be an array in /home.10.15/.../modules/user/user.module on line 361.

warning: implode() [function.implode]: Bad arguments. in /home.10.15/.../modules/user/user.module on line 361.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /home.10.15/.../includes/database.mysql.inc on line 172.

If someone can help me.
It's could be very HAPPY.

Thanks,
Jerome

Comments

michaux’s picture

Drupal 5.1
Base de données MySQL 5.0.44
Fichier de configuration Protégé
Librairie GD bundled (2.0.28 compatible)
Librairie Unicode Extension PHP mbstring
PHP 4.4.8

ezra-g’s picture

Assigned: michaux » ezra-g

Thanks for reporting this bug -- I hadn't configured the 'issues email address' for this project so I didn't see it until just now. I'll take a look at this as soon as possible.

ezra-g’s picture

Title: Problem when I open contact_anon/[nid] » incorrect calls user_access()
Category: support » bug

This was caused by incorrect calls to user_access, which should have been calls to node_access. I'm surprised that those errors made it into the initial release as I tested prior to committing the first version. I'll commit a fix and roll a new release in a few moments.

ezra-g’s picture

Status: Active » Fixed

New release will be available in a few minutes. Thanks for trying out this module!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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