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.

CommentFileSizeAuthor
#4 pathauto.admin_.inc_.patch841 bytesarpeggio

Comments

greggles’s picture

Did you try rebuilding the menu?

arpeggio’s picture

Status: Active » Fixed

That works. Thanks.

Status: Fixed » Closed (fixed)

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

arpeggio’s picture

Status: Closed (fixed) » Active
StatusFileSize
new841 bytes

This 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.

dave reid’s picture

Status: Active » Fixed

This should be fixed now. I included this in a larger form definition cleanup patch in #743652: Clean up form definitions.

Status: Fixed » Closed (fixed)

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