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 CiviMember (Moderator: Deepak Srivastava) »
  • Addiing a new membership type doesn’t work in 4.2
Pages: [1]

Author Topic: Addiing a new membership type doesn’t work in 4.2  (Read 870 times)

Jens-Erik

  • I post occasionally
  • **
  • Posts: 60
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.4
Addiing a new membership type doesn’t work in 4.2
September 03, 2012, 05:49:23 pm
On my Mac with Apache 2.2.22, PHP 5.4.6 and MySQL 5.1.63 (all from Macports) I tried adding a new membership type on Administer -> CiviMember -> Membership Types. after clicking the link in “There are no membership types entered. You can add one.” I get just an empty browser window, the  HTTP header says “500 internal Server Error“, the Apache error log says:

Quote
[Tue Sep 04 02:26:15 2012] [error] [client ::1] PHP Fatal error:  Call-time pass-by-reference has been removed in /Library/WebServer/Documents/community/sites/all/modules/civicrm/CRM/Member/Form/MembershipType.php on line 521, referer: http: //localhost/community/civicrm/admin/member/membershipType?reset=1

What can I do about it? With PHP 5.3 it worked.

(URL in the log modified because “Sorry, you are not allowed to post external links.”)
« Last Edit: September 07, 2012, 11:36:09 pm by Jens-Erik »

Jens-Erik

  • I post occasionally
  • **
  • Posts: 60
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Addiing a new membership type doesn’t work in 4.2
September 07, 2012, 11:41:29 pm
While searching for the PHP error I found http://stackoverflow.com/questions/8971261/php-5-4-call-time-pass-by-reference-easy-fix-available. Then I removed the "&" in function calls in sites/all/modules/civicrm/CRM/Member/Form/MembershipType.php, and it worked.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Addiing a new membership type doesn’t work in 4.2

This forum was archived on 2017-11-26.