PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 'EQUALS 'lti_user')' at line 1: SELECT users.uid AS entity_id, :entity_type AS entity_type, NULL AS revision_id, :bundle AS bundle FROM {users} users WHERE (users.name EQUALS :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => lti_user [:entity_type] => user [:bundle] => user ) in EntityFieldQuery->execute() (line 1144 of /var/www/online/includes/entity.inc).

To replicate this error. Create a consumer with or without a domain (doesn't matter for creation) then hit edit and try to remove the domain. Now the error message is displayed. This happens in the latest checkout as of a few minutes ago.

Comments

btopro’s picture

Looks like it might be in the admin.inc file in function lti_tool_provider_consumer_form_validate

if ($form_state['values']['lti_tool_provider_consumer_domain'] == '') {
      $check_domain = TRUE;
    }

The other state has check_domain being true also, are you sure that check_domain should be TRUE in the event that nothing has been passed?

jzornig’s picture

Assigned: Unassigned » jzornig
Status: Active » Fixed

I have committed a fix for this. Took the opportunity to tidy up the handling of dummy accounts.

Status: Fixed » Closed (fixed)

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