Hi,
using the latest 6.* version on a fresh install of XAMPP and Drupal 6.14 I got a PHP warning about securepages_link_alter's 2nd argument expecting a reference but getting a value.
I took the '&' out before the 2nd argument in the function definition (in agreement with the api spec for hook_link_alter), in securepages.module. problem fixed.
cheers.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | securepages-php5.3-582234-8.patch | 633 bytes | akanouras |
| #3 | securepages_582234.patch | 410 bytes | jantoine |
Comments
Comment #1
webb_k commentedThank you. This solved the issue I had with Drupal 6.15, SecurePages 6.x-1.8, and Snow Leopard Server with MySQL 5.0.82 and PHP 5.3.0.
Comment #2
Anonymous (not verified) commentedAgreed.
@Gordon
Shall we get this committed to the development branch later today?
http://api.drupal.org/api/function/hook_link_alter
Best,
Paul Booker
Appcoast
Comment #3
jantoine commentedI have cleaned up the patch from #664330: Support PHP 5.3, a duplicate of this issue. Please review and mark RTBC so we can get this fix applied.
Cheers,
Antoine
Comment #4
muhleder commentedLooks good to me, $node isn't being altered so shouldn't change any behaviour if it's not passed as a reference.
Comment #5
James Andres commented+1 subscribing
Comment #6
Volx commentedPatch works, thanks.
Comment #7
klausipatch works fine.
Comment #8
akanouras commentedHello,
the same problem appears when clicking "Add another" on a node edit form with filefields.
Attaching a patch that takes care of that as well.
Thanks,
Antonio
Comment #9
akanouras commentedRetitling.
Comment #10
akanouras commentedDeassigning as joehudson seems to have moved past this.
Comment #11
grendzy commentedfixed in #600106: Parameters passed by value instead of reference