CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Can't sync users to contacts
Pages: [1]

Author Topic: Can't sync users to contacts  (Read 1094 times)

alexeightsix

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: 3.5.1
  • MySQL version: latest
  • PHP version: latest
Can't sync users to contacts
August 21, 2013, 01:02:51 pm
Using WP 3.6, and latest civicrm and receiving this error when I try and use the sync feature:

Warning: Missing argument 2 for wpdb::prepare(), called in /home/xxx/public_html/xxx/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/CMSUser.php on line 164 and defined in /home/xxx/public_html/xxx/wp-includes/wp-db.php on line 992

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/xxx/wp-includes/wp-db.php:992) in /home/xxx/public_html/xxx/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php on line 349
« Last Edit: August 21, 2013, 01:05:59 pm by alexeightsix »

smeranda

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Wordpress 3.7
  • MySQL version: unknown
  • PHP version: unknown
Re: Can't sync users to contacts
October 28, 2013, 08:26:20 pm
I was able to get around this by editting the file on line 163 - 165 from:
Code: [Select]
$wpUserIds = $wpdb->get_col(
        $wpdb->prepare("SELECT $wpdb->users.ID FROM $wpdb->users")
      );
to:
Code: [Select]
$wpUserIds = $wpdb->get_col("SELECT $wpdb->users.ID FROM $wpdb->users");

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: Can't sync users to contacts
October 30, 2013, 01:26:35 am
I get the same error.  I haven't tried using this for quite some time, but it use to work.  There have been both  new CiviCRM and Wordpress versions since I last tried it.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Can't sync users to contacts

This forum was archived on 2017-11-26.