I got this error on user profiles after upgrading to the latest version:

Fatal error: Unsupported operand types in /home/username/public_html/sites/all/modules/pathauto/pathauto.module on line 658

Plus the css and included images are gone (except the photo gallery or user photo on that profile) .

CommentFileSizeAuthor
#2 blog_perm_regression_192949.patch1.2 KBgreggles

Comments

greggles’s picture

Thanks for your help testing the -dev release. This appears to be a regression from http://drupal.org/node/83993 Can you confirm that this only happens when editing a user?

Can you tell me which version of PHP you use? I've tested with two flavors of PHP5. The documentation for array_merge is where I got the idea to use the + operator and it claims that it should work on PHP4 and PHP5.

Also, just to confirm, that line is $new_user->roles = $edit['roles'] + array(DRUPAL_AUTHENTICATED_RID => 'authenticated user');

I have an alternate idea on building that array...I need a minute to test and post a patch, though.

greggles’s picture

Status: Active » Needs review
StatusFileSize
new1.2 KB

Let's try this style.

greggles’s picture

Title: Fatal error after upgrading to today's version » Fatal error Unsupported operand types when editing a user
bainome’s picture

Oops, I've never done patching before so I don't know how to patch it *_* I'll look into it. As soon as I updated the module, the css is gone and the link that leads to editing the user profile is also gone. So basically it happens as soon as the module is applied.

My PHP version is 4.4.4 .

bainome’s picture

I just patched it.

It solved the problem. Thanks :)

greggles’s picture

Status: Needs review » Fixed

Thanks for testing this out and reviewing. I've applied it to both the 5.x-2.x branch and trunk.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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