Re: host: '' is not a legal name (unexpected end of input)
Reply #13 –
Well now that you showed me where this is called it was pretty simple to see what's going on.
In Security.php you check both $user_info ip1 and ip2. Since I've never logged in from anywhere but the local machine my ip2 is blank. The code seems to expect that in this case $ip2 should be equal to $ip1 (that's what it checks for anyway) but my $ip2 is just blank. So the host: '' comes from calling host_from_ip on my blank $user_info['ip2'].
So I guess the question is do you think $ip2 should ever be blank? If so you need to change for check from
if ($ip_number == 'ip2' && $user_info['ip2'] == $user_info['ip'])
continue;
To also check if ip2 is blank. If it shouldn't be blank I guess the question is why is mine blank?
I just checked the database. The smf database I imported from has member_ip == member_ip2. The elkarte database has member_ip2 blank.
Just to make sure it's not an importer issue I just registered a new user and only set ip and not ip2 in the database.