After enabling the latest -dev version of Autosave, I was getting the following error:
"Call-time pass-by-reference has been deprecated in drupal_load()" (line 935 of includes/bootstrap.inc)
I traced this back, and to solve the problem you just need to change "autosave.module" on line 171 from
$form = drupal_build_form($form_id, &$form_state);
to
$form = drupal_build_form($form_id, $form_state);
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | autosave-1361446-3.patch | 667 bytes | lee20 |
Comments
Comment #1
longwaveConfirmed, the above change fixes the error. This appears in PHP 5.3+ only, PHP 5.2 is not affected.
Comment #2
Crell commentedThere is no patch here, so it cannot be RTBC. Please provide a patch.
Comment #3
lee20 commentedAttached is a patch.
Comment #4
longwaveComment #5
Crell commentedThe patch in #3 wasn't rolled from the module root but site root. Please do not submit patches rolled from site root as those will not apply cleanly.
I was able to correct the patch and apply it. It's now been committed. Thanks!