When I tried to access the admin page "Patterns" I got this error message:
Warning: Parameter 1 to pathauto_patterns_form() expected to be a reference, value given in drupal_retrieve_form() (line 581 of C:\xampp\htdocs\includes\form.inc).
and also the admin page "Settings" I got this error message:
Warning: Parameter 1 to pathauto_settings_form() expected to be a reference, value given in drupal_retrieve_form() (line 581 of C:\xampp\htdocs\includes\form.inc).
As a solution, I would like to suggest in line 17 of pathauto.admin.inc remove the &
-function pathauto_patterns_form(&$form) {
+function pathauto_patterns_form($form) {
as well as in line 156 of pathauto.admin.inc:
-function pathauto_settings_form(&$form) {
+function pathauto_settings_form($form) {
I'm using Drupal 7 CVS updated.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | pathauto.admin_.inc_.patch | 841 bytes | arpeggio |
Comments
Comment #1
gregglesDid you try rebuilding the menu?
Comment #2
arpeggio commentedThat works. Thanks.
Comment #4
arpeggio commentedThis time, rebuilding the menu and emptying the cache won't work anymore (I'm using D7 CVS updated). I would like to suggest the attached patch.
Comment #5
dave reidThis should be fixed now. I included this in a larger form definition cleanup patch in #743652: Clean up form definitions.