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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • Quickforms pass by reference issue -- php 5.3 related?
Pages: [1]

Author Topic: Quickforms pass by reference issue -- php 5.3 related?  (Read 2198 times)

passadena

  • Guest
Quickforms pass by reference issue -- php 5.3 related?
July 17, 2010, 09:59:55 am
I use a Recaptcha in a CiviCRM profile form.  Upon submission of the form, I get this:

warning: Parameter 2 to CRM_Utils_ReCAPTCHA::validate() expected to be a reference, value given in /home/haaaa/www/sites/all/modules/civicrm/packages/HTML/QuickForm/Rule/Callback.php on line 77.

Please correct the following errors in the form fields below:
    * Input text must match the phrase in the image. Please review the image and re-enter matching text.

This seems pretty similar to other php 5.3 related issues.  Anyone know the patch / fix for this?   Thanks so much!

sushant

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 8
  • CiviCRM version: v3.2.x,v3.3.x v4.0.x, v4.x,trunk
  • CMS version: Drupal 6/7 ,joomla 1.5,1.6
  • MySQL version: 5.1.51
  • PHP version: 5.3.3
Re: Quickforms pass by reference issue -- php 5.3 related?
July 18, 2010, 10:06:00 pm
Hi,
Its  a issue with PHP 5.3 , you can apply the below patch.

Code: [Select]
--- CRM/Utils/ReCAPTCHA.php (revision 28733)
+++ CRM/Utils/ReCAPTCHA.php (working copy)
@@ -106,7 +106,7 @@
 
     }
 
-    function validate( $value, &$form ) {
+    function validate( $value, $form ) {
         $config = CRM_Core_Config::singleton( );

this might help u.

Thankx
Sushant.
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

passadena

  • Guest
Re: Quickforms pass by reference issue -- php 5.3 related?
July 19, 2010, 12:52:48 am
That did the trick.  Thanks so much!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • Quickforms pass by reference issue -- php 5.3 related?

This forum was archived on 2017-11-26.