March 18, 2015 at 6:19 pm
#6338
Syam Mohan
Keymaster
Hi Fabrizio,
The line you mentioned works on the “Administrator” role. If your are getting an error in that line, then your Administrator role object do not exist and WordPress is returning null while accessing Administrator role.
Do you see Administrator role within the roles list? Can you try restoring the Administrator role.
Thanks
Syam