Hello
when I tried to add configure the "masquerade as" field in my user setting, I get this ajax error :

mypath/sites/all/modules/masquerade/autocomplete-user
StatutTexte: OK
ReponseTexte: Fatal error: Call to undefined function drupal_json() in mypath/sites/all/modules/masquerade/masquerade.module on line 689

I tried to fix it replacing drupal_json() by drupal_json_output(). I didn't get the error anymore but the auto completion wasn't effective.

Regards,
Liaz

Comments

afreeman’s picture

The latest dev commit should resolve this issue. Can you confirm?

Liaz’s picture

Is there a more recent version of the module than 7.x-1.x-dev ? I'm using the 7.x-1.x-dev and I have this bug.

andypost’s picture

Issue tags: +D7 porting

@Liaz Could you point a URL where this happens?

Liaz’s picture

@andypost
I can't, but you just have to open the module file to see the call to the drupal_json() function that shouldn't be I think...

andypost’s picture

Status: Active » Fixed

If still affected by this just reopen

Status: Fixed » Closed (fixed)
Issue tags: -D7 porting

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

  • Commit def4ff1 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by afreeman:
    #1002266 by afreeman: Fixes errors in masquerade_autocomplete_user()
    
    

  • Commit def4ff1 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by afreeman:
    #1002266 by afreeman: Fixes errors in masquerade_autocomplete_user()