I have many errors in the watchlog when a user visits the /user page or twitter settings...

  • 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 p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /drupal/modules/user/user.module on line 528.
  • array_keys() expects parameter 1 to be array, null given in /drupal/modules/user/user.module on line 528.
  • implode(): Invalid arguments passed in /drupal/includes/database.inc on line 253.
  • array_fill(): Number of elements must be positive in /drupal/includes/database.inc on line 253.

I have tried but I don't know how to debug this... since the errors are in core files due to bad arguments passed by twitter module I guess... because when I deactivate the module the errors go away.

Comments

tcibah’s picture

Have the same problem.

Seems similar to "SQL Error, because i create the second time the same twitter-user via twitter":
http://drupal.org/node/780574

That issue is still not fixed.

Edit:
Problem fixed by using the latest development version: twitter-6.x-3.x-dev.tar.gz

Do not forget to clear cache, otherwise an error message in a white scree will popup.

Thanks juampy...

juampynr’s picture

You are welcome. Sorry I need to find some time to make a new release for Drupal 6.

juampynr’s picture

Status: Active » Fixed

There is a new release. Marking it as fixed.

http://drupal.org/project/twitter

Status: Fixed » Closed (fixed)

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