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.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | petition.module.patch | 1.73 KB | terminus |
Comments
Comment #1
janeks commentedComment #2
MartijnR commented+1 Exactly the same problem.
Comment #3
MartijnR commentedTo 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.
Comment #4
MartijnR commentedOk, 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.
Comment #5
M.Ba commentedI 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.
Comment #6
Anonymous (not verified) commentedSame 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?
Comment #7
terminus commentedI'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.
Comment #8
wcweb commentedThank you for the patch! Works like a charm.
Comment #9
sachbearbeiter commentedi hope the same problem is solved in the enhanced version: http://drupal.org/node/966538
Comment #10
galooph commentedI've just tested for this on the 6.x-2.x-dev version using php 5.3 and got no errors or warnings.