Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10625

Fatal error: Call-time pass-by-reference has been removed in CRM\Contribute\Form\Contribution\Main.php on line 1198

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      On 4.2 beta 4 I came across this error while trying to access my basic contribution page:
      index.php?q=civicrm/contribute/transact&reset=1&id=1

      Fatal error: Call-time pass-by-reference has been removed in C:\htdocs\sites\all\modules\civicrm\CRM\Contribute\Form\Contribution\Main.php on line 1198

      Not sure how my contribution page is different to other users that it hasn't been noticed.

      The link corresponds to:
      CRM_Price_BAO_FieldValue::getValues($priceField->id,&$values);
      Removing the & from this line
      CRM_Price_BAO_FieldValue::getValues($priceField->id,$values);
      The result is that the suggested donation amounts on the contribution pages have disappeared.

      I expected that I should add the & signs where the function is defined but it is defined here at the & sign is there for the second argument:
      static function getValues($fieldId, &$values, $orderBy = 'weight', $isActive = FALSE) {

      So not sure how to fix the problem.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              alib Ali Bakir
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: