Test is successfull.

But importing gives this error after submit:
The website encountered an unexpected error. Please try again later.

In the logs is the following message.

Recoverable fatal error: Argument 2 passed to db_query() must be an array, string given, called in /var/aegir/platforms/xgroups-7.14-1.0/sites/afrosai-e.org.za/modules/contrib/user_import/user_import.admin.inc on line 912 and defined in db_query() (line 2310 of /var/aegir/platforms/xgroups-7.14-1.0/includes/database/database.inc).

This seems to be the old way of using db_query.

This patch fixed the error for me.

Comments

jlab’s picture

StatusFileSize
new662 bytes

The above patch of mine had a syntax error of it's own here is the correct patch.

My appologies.

petednz’s picture

@robert - thank you for doing the upgrade to d7
@personxx - thank you for hitting this error before I did and for supplying a patch

I tested the patch - and the import ran without the error

should i move the to Reviewed and Tested?

petednz’s picture

ps there is a bit of whitespace noise at the bottom of the patch

warmth’s picture

Marster’s picture

Status: Active » Needs review

Hello, i had the same problem and db_query_wrong_sql_syntax_2.patch solved the problem.
Please review and test it a second time.
@personxx: Thank you very much!
Best regards

robert castelo’s picture

Status: Needs review » Fixed

Thanks.

Fixed in 7.x-1.0-beta2

Status: Fixed » Closed (fixed)

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