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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Fatal Error
Pages: [1]

Author Topic: Fatal Error  (Read 2950 times)

ehlondon

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
Fatal Error
August 20, 2007, 04:04:01 am
I get the following error when a new user tries to register:

Fatal error: Only variables can be passed by reference in /home/developw/public_html/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php on line 919

I'm using Drupal 5.2, CiviCRM 1.8, Php 5.05

ehlondon

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
Re: Fatal Error
August 20, 2007, 04:04:34 am
This is at Drupal registration btw.

ehlondon

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
Re: Fatal Error
August 20, 2007, 05:09:15 am
I have 2 registration types. On one type, registration works just fine. But on the other I get this error. I don't even understand why because I don't even have CiviCRM associated with registration.  ???

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal Error
August 20, 2007, 06:06:54 am
Can you recheck if you have enable any Profile's  Used For "User Registration".

- kurund
Found this reply helpful? Support CiviCRM

ehlondon

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
Re: Fatal Error
August 20, 2007, 07:51:22 am
It is not used for User Registration. It's being used for "View/Edit" , "User Account" and "Profile"

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal Error
August 20, 2007, 09:53:57 am
i was not able to replicate this on my local machine. Please check if any other module is calling civicrm function.

Let chat on IRC, it will  be easier to debug.

kurund
Found this reply helpful? Support CiviCRM

ehlondon

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
Re: Fatal Error
August 21, 2007, 10:44:11 am
Ok, the problem was solved. On line 949 (this is CiviCRM 1.8) of CRM/Contact/BAO/Contact.php, I changed this line:
Code: [Select]
static function lookupValue( &$defaults, $property, &$lookup, $reverse )
to

Code: [Select]
static function lookupValue( &$defaults, $property, $lookup, $reverse )
(I removed the ampersand (&) from before lookup).
CiviCRM now works fine.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal Error
August 21, 2007, 11:08:46 am

Thanx. This is now fixed in v1.8. Kinda surprised that this has not been encountered before

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Fatal Error

This forum was archived on 2017-11-26.