error editing condition after php 5.3 upgrade

drasgardian - September 26, 2009 - 02:15
Project:Rules
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:PHP 5.3
Description

After upgrading to php 5.3 I started receiving this error:

warning: Parameter 2 to rules_admin_form_edit() expected to be a reference, value given in [site_path]/drupal-6.14/includes/form.inc on line 371.

To fix it I took the "&" off the &$proxy parameter on this line:

function rules_admin_form_edit(&$form_state, &$proxy, $element) {

#1

kratib - October 14, 2009 - 20:59

subscribe

#2

askibinski - October 19, 2009 - 16:02

In general, I believe it's a pretty bad idea to have a Drupal 6 site running on php 5.3 at this time. While core should work fine, many contrib modules will throw you warnings...

#3

kratib - October 19, 2009 - 17:50

@askibinski that's right, and that's why we must report the warnings and failures to module maintainers because we will all eventually need to upgrade to PHP 5.3 and beyond.

#4

fago - November 2, 2009 - 13:35
Status:active» fixed

thanks, I fixed that warning. Please reopen if you find more problems.

#5

System Message - November 16, 2009 - 13:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#6

thekevinday - December 3, 2009 - 17:09
Status:closed» needs work

I recently came across another rules reference warning, this time with: rules_forms_form_alter

This patch fixes the newly discovered php 5.3 reference warning.
Please check to make sure this is a safe change.

edit: I want to emphasize: Please make sure that it is safe to remove the & at this location.

AttachmentSize
rules-6.x-1.1-php53-1.patch 635 bytes

#7

thekevinday - December 4, 2009 - 17:28

My patch may not be the correct fix, see my post here:
http://drupal.org/node/360605#comment-2340170

You may want to double check the original fix as well.

 
 

Drupal is a registered trademark of Dries Buytaert.