Whenever a user accesses the user-related content in the user tab, this shows up in the log:

mysql_real_escape_string() expects parameter 1 to be string, array given in /home/[account]/public_html/includes/database.mysql.inc on line 239.

The module seems to be working, although the relationship only shows up on the user side -- for other users, there is no indication on the node of the relationship. (The related user does have a "remove..." link.) I've triple-checked permissions on this part.

If the error is causing a functional error, I suppose this would be serious.

(Drupal 4.6.5. - user_related_content.module,v 1.3.2.3 2005/09/07 15:08:16)

Comments

laura s’s picture

Priority: Normal » Critical

Changing to critical because, between this error and/or the error reported in http://drupal.org/node/44646, this module does not store any relationship info. In other words, it does not function properly. When you're working with it, the user related content links seem to be created. But they disappear between sessions.

Further info (perhaps related): In phpMyAdmin, I am given this error warning for the mysql table user_related_content_relationship_type_content_types:

PRIMARY and INDEX keys should not both be set for column `rtid`

Hope this helps. (Cross-posting this info on http://drupal.org/node/44646. My apologies if these to issues turn out to be two sides of the same bug.)

ejort’s picture

Unfortunately work has taken me away from dabbling with PHP lately so I haven't been able to follow up this (and some other) issues. I'm not seeing any of these issues on my production site, but I'll try to reproduce the problem over the weekend and see what I can find.

Cheers,
Eric

laura s’s picture

One other piece of information: This error is happening on a site currently running without clean URLs. FWIW.... Thanks!

ejort’s picture

Priority: Critical » Normal
Status: Active » Fixed

This should be fixed in the 4.6 version of this module now.

Cheers,
Eric

laura s’s picture

Confirmed fixed. Thank you!

Anonymous’s picture

Status: Fixed » Closed (fixed)