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 »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Warning: preg_match() expects parameter 2 to be string
Pages: [1]

Author Topic: Warning: preg_match() expects parameter 2 to be string  (Read 1801 times)

awcmte

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Wordpress
  • MySQL version: 5.1.x
  • PHP version: 5.2.11
Warning: preg_match() expects parameter 2 to be string
February 27, 2012, 08:13:12 pm
I'm receiving this error message during the last phase of import.

Warning: preg_match() expects parameter 2 to be string, array given in /home/abcdxyz/public_html/wordpress/abcdxyz/plugins/civicrm/civicrm/CRM/Utils/String.php on line 366

Most (but not all) of the records successfully import. I'm importing aUTF-8 encoded .csv file.

I'm using 4.1 installed on Wordpress. I've exhausted everything I know how to do at this point.

Any ideas?

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Warning: preg_match() expects parameter 2 to be string
March 28, 2012, 01:32:32 am
I ran into this on Wordpress.  I upgraded to 4.1.1 and the problem stopped.

I also reduced the size of my import file to 1000 rows or less.  This meant breaking a large file down to 10 separate files and importing each separately.

Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Warning: preg_match() expects parameter 2 to be string

This forum was archived on 2017-11-26.