Closed (duplicate)
Project:
Avatar Selection
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2011 at 10:22 UTC
Updated:
12 Feb 2012 at 20:08 UTC
Jump to comment: Most recent file
Comments
Comment #1
andypostThis been caused by wrong JOIN name
Comment #2
sw3b commentedsame here and patch does not solve the problem !
Comment #3
andypost@sw3b can you show add a message with quiery that broken?
Comment #4
sw3b commentedok i re-check and there was another line who i forget to change.... same to be ok ! now i have another error, i will open a new issue to track this one.
Comment #5
sw3b commentedOK ! I did both of modification and when I go to edit a user now i got this error.
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'avsr.aid' in 'on clause': SELECT DISTINCT avs.avatar AS avatar, avs.name AS name, avs.weight AS weight FROM {avatar_selection} avs INNER JOIN {avatar_selection_roles} avs_2 ON avs.aid = avsr.aid WHERE ( (avs_2.rid IS NULL ) OR (avs_2.rid IN (:db_condition_placeholder_0)) ) ORDER BY weight ASC, name ASC, avatar ASC LIMIT 30 OFFSET 0; Array ( [:db_condition_placeholder_0] => 2 ) in _avatar_selection_image_list() (line 501 of /home/sw3b/www/www/sites/all/modules/avatar_selection/avatar_selection.module).
I think there is something missing in DB ?!? Could be wrong....
Comment #6
sw3b commentedOk i did some research and this is what if found... there is two more lines two change.
After that the error is gone !!!
Comment #7
andypost@w3b can you roll a new patch? When I faced with this this two lines was enough probably I've checked not all cases
Comment #8
sw3b commentedIts in avatar_selection.module at approximatly line 484 and 493. I applied your patch and after the modification of the two lines in my previous post its solve my problem.
Sorry for patch creation, i'm not sure how to to the patch file like you did...
Comment #9
andypostThanx, you could try http://drupal.org/patch/create
Comment #10
stella commentedThe patch at #1326854: D7 does not display anything (now committed) should fix this and other issues.