Closed (fixed)
Project:
Drupal Association Project(s)
Component:
Other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Nov 2009 at 21:06 UTC
Updated:
21 Aug 2014 at 21:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
deviantintegral commentedHere is an updated patch with a change from dlobo making the fields returned be limited to strings.
Comment #2
deviantintegral commentedThere was an issue with a user having two Drupal accounts associated with a single CiviCRM contact. When attempting to create contacts for all Drupal users, it errors out. This is a bug in CiviCRM in that it allows a user to specify an email address belonging to another Drupal account, and will likely be fixed in 3.1 or 3.2.
I've deleted the email address from http://association.drupal.org/civicrm/contact/view?reset=1&cid=9984, but since users can put it in later, it's possible for this issue to come up again.
I'll be able to test the above patch on the staging site tomorrow.
Comment #3
deviantintegral commentedThis update only adds a few newlines, and changes the menu item to be sentence case like the rest of the menu system.
I've run this on the stage site, and looking at 5-6 accounts it seems to be working fine. The only thing to note is that contacts without Drupal accounts won't have Drupal user names, but that will be resolved as we pare down duplicate contacts.
I'll be committing this patch in a moment. I think we need this on the live site, so it will likely be deployed as-is, but it still needs the following updates:
Comment #4
Amazon commentedWhen I log into the d6-association.drupal.org site I get:
Sorry. A non-recoverable error has occurred.
DB Error: syntax error
Return to home page.
Error Details:
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -2
[message] => DB Error: syntax error
[mode] => 16
[debug_info] => SELECT 'drupal_org_username_6' FROM 'civicrm_value_drupal_org_profile_4' WHERE entity_id = 3 [nativecode=1064 ** 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 ''civicrm_value_drupal_org_profile_4' WHERE entity_id = 3' at line 1]
[type] => DB_Error
[user_info] => SELECT 'drupal_org_username_6' FROM 'civicrm_value_drupal_org_profile_4' WHERE entity_id = 3 [nativecode=1064 ** 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 ''civicrm_value_drupal_org_profile_4' WHERE entity_id = 3' at line 1]
[to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT 'drupal_org_username_6' FROM 'civicrm_value_drupal_org_profile_4' WHERE entity_id = 3 [nativecode=1064 ** 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 ''civicrm_value_drupal_org_profile_4' WHERE entity_id = 3' at line 1]"]
)
Comment #5
deviantintegral commentedAnd here's the backtrace:
Comment #6
Amazon commentedAfter I revist my user account the error is gone.
Comment #7
deviantintegral commentedTagging.
Comment #8
deviantintegral commentedApparently CiviCRM doesn't let you use parameters as a table or column name, so we're stuck with string building for those parts of the queries. I'll be committing this patch which fixes the issue.
Comment #9
eliza411 commentedClosing old issues. Please re-open if needed.