Answers.Body: <p>John guided me to the solution: civicrm is located in Belgium where adresses should be "street number bus" and second line "postalcode city". I used the civicrm (alpha) extension "org.civicoop.streetformatnl" v1.0 to edit civicrm views. Unfortunately it is no longer compatible. If disabled, everything works fine.</p>
  
  <p>Kind regards, Johan.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-12T18:29:02.210Z
Answers.LastActivityDate: 2015-07-12T18:29:02.210Z
Answers.UserDisplayName: Johan Van Dyck
Answers.Body: <p>Could you check that you updated correctly, and there there are no PHP files overriding the default CRM/Contact/Form/Edit/Address.php file?</p>
  
  <p>There is a description of what this error means here: <a href="http://php.net/manual/en/language.references.pass.php" rel="nofollow">http://php.net/manual/en/language.references.pass.php</a></p>
  
  <p>(Googling for the error reveals a few example solutions.)</p>
  
  <p>I've checked line 363 in the 4.6.4 codebase, but I can't see anything that would break it there: <a href="https://github.com/civicrm/civicrm-core/blob/4.6.4/CRM/Contact/Form/Edit/Address.php#L363" rel="nofollow">https://github.com/civicrm/civicrm-core/blob/4.6.4/CRM/Contact/Form/Edit/Address.php#L363</a></p>
  
  <p>Can you confirm what line 363 is in your CRM/Contact/Form/Edit/Address.php file?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-10T13:53:22.823Z
Answers.Text: Also check for incompatible extensions, tpl and php overrides, custom hooks, etc.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-12T18:10:20.207Z
Answers.Text: By my knowlegde, no php overriden by me (I didn't program php myself).
Answers.UserDisplayName: Johan Van Dyck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-12T18:18:17.027Z
Answers.Text: - By my knowlegde, no php overriden by me (I didn't program php myself).
  - Address.php is exactly what it should be. Line 363 contains "))," like your link set so.
Answers.UserDisplayName: Johan Van Dyck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-10T13:04:54.760Z
Answers.LastActivityDate: 2015-07-10T13:04:54.760Z
Answers.UserDisplayName: John
Body: <p>I recently updateted to civicrm 4.6.4 on drupal 7.38.
  While entering contact data, I found when a contact has no address by its own, but a referral to another contact's address, edit using the edit button gives a fatal error.</p>
  
  <p>Fatal error: Cannot pass parameter 1 by reference in /var/www/html/drupal/sites/all/modules/civicrm/CRM/Contact/Form/Edit/Address.php on line 363</p>
  
  <p>No further info available like stacktrace,...</p>
  
  <p>How to reproduce:
  - create new contact
  - save contact
  - edit contact (this is working!)
  - search for the new created contact. A list is presented with the searched contacts.
  - choose edit on the end of the contact line.</p>
  
  <p>inline editing while viewing a contact is still working.</p>
  
  <p>Any ideas?</p>
  
  <p>Johan.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T11:51:31.500Z
Comments.Text: I manage to create the same in Demo but I am not getting any error message - please do the same example against demo site (http://d46.demo.civicrm.org) and if you are still getting the error message please let me know how to reproduce - thanks
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T12:22:41.397Z
Comments.Text: Hi, also for me it is not reproducable on the demo-site. As I'm not having much of an error, it's hard to debug.
Comments.UserDisplayName: Johan Van Dyck
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T13:28:54.327Z
Comments.Text: did you manage to do John step's which he has given below
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Tags: <contacts>
Title: edit contact with ref to address causes fatal error
ThreadText: # edit contact with ref to address causes fatal error
  
  (Asked by: username_0 on 2015-07-10)
  
  I recently updateted to civicrm 4.6.4 on drupal 7.38.
  While entering contact data, I found when a contact has no address by its own, but a referral to another contact's address, edit using the edit button gives a fatal error.
  
  Fatal error: Cannot pass parameter 1 by reference in /var/www/html/drupal/sites/all/modules/civicrm/CRM/Contact/Form/Edit/Address.php on line 363
  
  No further info available like stacktrace,...
  
  How to reproduce:
  - create new contact
  - save contact
  - edit contact (this is working!)
  - search for the new created contact. A list is presented with the searched contacts.
  - choose edit on the end of the contact line.
  
  inline editing while viewing a contact is still working.
  
  Any ideas?
  
  username_0.
  
  **Tags:** contacts
  
  > **Comments:**
  > **username_1**: I manage to create the same in Demo but I am not getting any error message - please do the same example against demo site (http://d46.demo.civicrm.org) and if you are still getting the error message please let me know how to reproduce - thanks  
  > **username_0**: Hi, also for me it is not reproducable on the demo-site. As I'm not having much of an error, it's hard to debug.  
  > **username_1**: did you manage to do username_2 step's which he has given below  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2015-07-12. Score: 2
  
  username_2 guided me to the solution: civicrm is located in Belgium where adresses should be "street number bus" and second line "postalcode city". I used the civicrm (alpha) extension "org.civicoop.streetformatnl" v1.0 to edit civicrm views. Unfortunately it is no longer compatible. If disabled, everything works fine.
  
  Kind regards, username_0.
  
  
  ---
  
  ### Answer by username_2 on 2015-07-10. Score: 0
  
  Could you check that you updated correctly, and there there are no PHP files overriding the default CRM/Contact/Form/Edit/Address.php file?
  
  There is a description of what this error means here: <http://php.net/manual/en/language.references.pass.php>
  
  (Googling for the error reveals a few example solutions.)
  
  I've checked line 363 in the 4.6.4 codebase, but I can't see anything that would break it there: <https://github.com/civicrm/civicrm-core/blob/4.6.4/CRM/Contact/Form/Edit/Address.php#L363>
  
  Can you confirm what line 363 is in your CRM/Contact/Form/Edit/Address.php file?
  
  > **Comments:**
  > **username_3**: Also check for incompatible extensions, tpl and php overrides, custom hooks, etc.  
  > **username_0**: By my knowlegde, no php overriden by me (I didn't program php myself).  
  > **username_0**: - By my knowlegde, no php overriden by me (I didn't program php myself). - Address.php is exactly what it should be. Line 363 contains "))," like your link set so.  
  
  ---
  
  