Thread Starter
dohman
(@dohman)
i’ve been digging into the array that is being saved for the banned names in my network settings page. the serialized array being saved into the wp_sitemeta table contains only a single string value like this:
a:1:{i:0;s:50:”www web root admin main invite administrator files test1 test2 test3″;}
when it is saved this way it does not work. any of the banned names can be registered. but then when i manually go into the db and edit the array to contain multiple string values (like below) the banned names function works.
a:11:{i:0;s:3:”www”;i:1;s:3:”web”;i:2;s:4:”root”;i:3;s:4:”admin”;i:4;s:4:”main”;i:5;s:6:”invite”;i:6;s:13:”administrator”;i:7;s:5:”files”;i:8;s:5:”test1″;i:9;s:5:”test2″;i:10;s:5:”test3″;}
i have not dug into the code yet to isolate where this happens. this is also a widely used function and i haven’t seen the topic being raised elsewhere. i don’t know how it could be just me though. this is a test install of multisite. i have zero plugins & themes installed. i am running PHP version 5.2.9 and MySQL version 5.0.96-community.
if anyone has some insight i would greatly appreciate it. the last ticket i see in trac related to illegal_names & serializing was 4 months ago.
the next thing i’ll do is see if i can duplicate this in another multisite install. if someone is game to take a gander at their wp_sitemeta table and look at the illegal_names value and see what the array looks like, then test registering a banned name on it too, that would be great.
thanks
Are you using BuddyPress?
Thread Starter
dohman
(@dohman)
no, its an empty install for testing. no plugins installed nor activated. i also have a fresh xampp install doing the same thing.
Open a new trac ticket for this one. Something’s busted.
Thread Starter
dohman
(@dohman)
thanks. i’ll submit a trac ticket this evening. 🙂 marking this resolved for now. will see what comes from trac.
Can you post link to where you are following trac???
thanks
Thread Starter
dohman
(@dohman)