Using beta3 with:
Flag 6.x-1.1
Views 6.x-2.5

The Flag Friend node says that Flag 6.x-1. is required... Not sure if that means 1.0 exclusively or anything in the 6.x-1.x branch.

Error is as follows using default Friends view:

user warning: Unknown column 'flag_content_users__flag_friend_message.fcid' in 'on clause' query: SELECT DISTINCT(users.uid) AS uid, users.picture AS users_picture, users.name AS users_name, flag_content_users__flag_friend_message.message AS flag_content_users__flag_friend_message_message, flag_content.content_id AS flag_content_content_id, flag_friend.uid AS flag_friend_uid FROM drupal_users users INNER JOIN drupal_flag_content flag_content_users ON users.uid = flag_content_users.uid AND flag_content_users.fid = 2 LEFT JOIN drupal_flag_friend_message flag_content_users__flag_friend_message ON flag_content_users.fcid = flag_content_users__flag_friend_message.fcid LEFT JOIN drupal_flag_content flag_content ON users.uid = flag_content.content_id AND (flag_content.fid = 2 AND flag_content.uid = 18) LEFT JOIN drupal_flag_friend flag_friend ON users.uid = flag_friend.uid WHERE flag_content_users.content_id = 18 LIMIT 0, 10 in E:\websites\sites\all\modules\views\includes\view.inc on line 731.

This message is posted to both the awaiting approval and requests tabs at user/##/friends/flagged and user/##/friends/pending.

CommentFileSizeAuthor
#2 flag_friend-views_argument.patch2.19 KBsirkitree

Comments

sirkitree’s picture

Status: Active » Postponed (maintainer needs more info)

You should be using the latest release of Flag, 6.x-1.1

This is basically saying that there is no fcid column in your drupal_flag_friend_message table. Can you verify this?

Also, have you run update.php? And if so, what version did you start with?

sirkitree’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new2.19 KB

I think I found the problem. Please try this patch.

sirkitree’s picture

Status: Needs review » Fixed

Patch committed - please reopen if you still have this problem.

Status: Fixed » Closed (fixed)

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

tracerhand’s picture

Status: Closed (fixed) » Active

Hi - sorry to reopen but I'm also getting this error with 6.x-1.0-beta4. I tried applying the patch but I believe this code is already in beta 4.

I get the error when attempting to view "Awaiting Friend Approvals" or "Friend Requests", using the subtabs on the user profile page.

user warning: Unknown column 'flag_content_users__flag_friend_message.fcid' in 'on clause' query: SELECT DISTINCT(users.uid) AS uid, users.picture AS users_picture, users.name AS users_name, flag_content_users__flag_friend_message.message AS flag_content_users__flag_friend_message_message, flag_content.content_id AS flag_content_content_id, DATE_FORMAT(FROM_UNIXTIME(flag_friend.created), '%Y%m%d%H%i') AS flag_friend_created_minute FROM users users INNER JOIN flag_content flag_content_users ON users.uid = flag_content_users.content_id AND (flag_content_users.fid = 3 AND flag_content_users.uid = 1) LEFT JOIN flag_friend_message flag_content_users__flag_friend_message ON flag_content_users.fcid = flag_content_users__flag_friend_message.fcid LEFT JOIN flag_content flag_content ON users.uid = flag_content.content_id AND (flag_content.fid = 3 AND flag_content.uid = 1) LEFT JOIN flag_friend flag_friend ON users.uid = flag_friend.uid ORDER BY flag_friend_created_minute DESC in /sites/all/modules/views/includes/view.inc on line 731.

sirkitree’s picture

Version: 6.x-1.0-beta3 » 6.x-1.0-beta4

Can you tell me if there is an 'fcid' column in your 'flag_friend_message' table?

tracerhand’s picture

Haha I haven't the faintest idea. How would I find that out?

sirkitree’s picture

Have you cleared your cache tables? Have you overwritten these views (customized them)?

This was a change to Flag friend's view argument handler which those default views implement so they should be working properly, but making sure that the views cache is cleared would be the first step to troubleshooting.

Your error message suggests that it is still using the old query that was generated before the patch.

sirkitree’s picture

Status: Active » Fixed

fix here: #420250: Flag D5->D6 Update Doesn't Add Auto-increment to flags.fid Column which I think was related to this. Please open if still having the problem after upgrading.

sirkitree’s picture

Status: Fixed » Closed (fixed)

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