Hi there,
I look after a website using EE, and after a recent merger with another company we brought everything under one EE roof. The base EE site was developed some 2 years before I joined the company and it was done with 1.6.4. I thought seeing as we were going through all the pain of the merger, now would be a good time to upgrade to the latest version - which at the time was 1.6.9.
As I’m not very PHP/MySQL/EE savvy yet, we contracted the upgrade of the site from 164 to 169 out to someone who was. This all went fine.
Anyway, we recently went live, and today I got someone trying to register on the site and getting an error message saying that their username (email address) exceeded the 32 char limit. I thought to myself, this can’t be - our former company name was 26 chars itself, and all our staff registered fine - so this got thinking that the original developer must have tinkered with the core code, and this got wiped out when the site was upgraded to 169.
After reading through your site, I found the core file I needed to look in, and checked both the new core.validate.php and the old one, and the original developer had done:
if (strlen($this->username) > 150) // originally 32
{
$this->errors[] = $LANG->line('username_password_too_long');
}He did leave some notes saying that he also modded exp_members.username from 50 to 150 and also modded cp.members.php line 2496 to allow longer email in cp login as per - http://ellislab.com/forums/viewthread/55257/
I looked in cp.members.php and at that line, it does indeed have 150 instead of 32 which the new core file has.
The new site went live a few weeks ago now and so we’ve had two weeks worth of registrants - presumably joining and being restricted to 32 chars, whereas we have an existing database that has thousands of members who had the 150 restriction.
My question is, and I’m sorry I’ve taken a while to get to it, but can I just go into those two files and change the number from 32 to 150 without it messing up anything? If those core files suddenly change to 150, will it mess up the last two weeks registrant’s records? I really don’t know much about database and how everything is referenced and used by EE.
The developer says in his notes that he modded exp.members.username - where is this? Is that a table in the database itself? As we are using the existing database, will I need to make changes? Or perhaps just changes to the last two week’s of member records?
I have to say I’m a bit lost, so any guidance on where I should be looking to track down how I can up the limit back up to 150 would be appreciated.
Cheers, Jay
ps. We no longer have contact with the existing developer, and the one we recently used to do the upgrades is on vacation - hence my panic.