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) »
  • PHP Fatal Error on Member Import
Pages: [1]

Author Topic: PHP Fatal Error on Member Import  (Read 1471 times)

bpayst

  • I’m new here
  • *
  • Posts: 16
  • Karma: 3
PHP Fatal Error on Member Import
October 14, 2009, 09:42:28 am
I'm getting the error below in the server log when importing members. The CiviCRM screen just goes white and the import is not performed. The contacts have already been imported successfully and the file was saved using Open Office (per some other posts I saw with that as a tip).

PHP Fatal error:  Only variables can be passed by reference in /var/www/html/sites/all/modules/civicrm/CRM/Member/Import/Parser/Membership.php on line 221, referer: <host ip>/civicrm/member/import?_qf_MapField_display=true&qfKey=2d67e7c6c237b998dbff5a881b11bd4f


Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: PHP Fatal Error on Member Import
October 15, 2009, 01:09:34 am
It's a bug.
filed issue is here : http://issues.civicrm.org/jira/browse/CRM-5237

you might want to check patch : svn diff -c 24231 http://svn.civicrm.org/civicrm/branches/v3.0
OR
go to CRM/Member/Import/Parser/Membership.php line around 221
change code :
Quote
$email = CRM_Utils_Array::value( 'email', $val[0] );
if (! CRM_Utils_Rule::email($email)) {

with
Quote
if (! CRM_Utils_Rule::email($val)) {

thanks for catching.

kiran
You Are Designed To Choose... Defined By Choice.

bpayst

  • I’m new here
  • *
  • Posts: 16
  • Karma: 3
Re: PHP Fatal Error on Member Import
October 15, 2009, 04:09:50 am
That fixed it perfectly! Many thanks!

Brian

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • PHP Fatal Error on Member Import

This forum was archived on 2017-11-26.