I am gettin following errors on viewing a petiton node:

* warning: Parameter 2 to petition_signature_form() expected to be a reference, value given in /var/www/html/includes/form.inc on line 372.
* warning: Parameter 2 to petition_signature_form() expected to be a reference, value given in /var/www/html/includes/form.inc on line 372.

CommentFileSizeAuthor
#7 petition.module.patch1.73 KBterminus

Comments

janeks’s picture

Title: errors on viewing pettin node » errors on viewing petition node
MartijnR’s picture

+1 Exactly the same problem.

MartijnR’s picture

To clarify more. After creating a petition node with several form fields, only the body text is shown. No form fields are created. It sounds a bit similar to another issue that was resolved by changing the view. I have no idea what is meant by this though.

Please help.

MartijnR’s picture

Ok, after a lengthy troubleshooting session, I can now report that the issue is caused by the PHP version my local (MAMP) used. Apparently, this module doesn't work PHP 5.3.2. After changing it to PHP 5.2.13, all appears fine - the forms appear.

M.Ba’s picture

I have try this modul as a testinstallation on PHP5.3.

/includes/form.inc line 368
$args[0] = &$form_state;

put after:
$args[1]=&$args[1];

So, now $args is a reference and the modul seems to work.

But really its only a testinstallation, the productive-system will be PHP5.2.
So I don't know if there are mirror effects (eg. other forms).
A report of this will be nice, if someone try this.

Anonymous’s picture

Same problem on php 5.3.3 There is no possibility for me to return php 5.2, so is there any solution to this problem?

terminus’s picture

StatusFileSize
new1.73 KB

I've made a patch to the module which works for me, though not thoroughly tested. Please DON'T patch Drupal core as #5 suggests, that is a BAAAD idea.

wcweb’s picture

Thank you for the patch! Works like a charm.

sachbearbeiter’s picture

i hope the same problem is solved in the enhanced version: http://drupal.org/node/966538

galooph’s picture

Version: 6.x-1.4 » 6.x-2.x-dev
Status: Active » Fixed

I've just tested for this on the 6.x-2.x-dev version using php 5.3 and got no errors or warnings.

Status: Fixed » Closed (fixed)

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