-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public View on MW 1.27.1 #10
Comments
Are you using the Latest commit (f096e19 on Jul 6, 2014)? We initially had an issue with our wiki on upgrading to 1.27.1. The only change I can see in our User.php is this:
Most likely this to me seems like a bug as they shouldn't be using $this since its a special reference to the current object. I hadn't debugged anymore at the time. |
Actually looking at it more, it seems that the ip function isn't returning a string for some reason. When you use $this in a string, it gets handled by the magic function __toString().
Which of course is handled by getName.
As it is a guest, it should return their IP However the IP function has 2 places where a non string could be returned
If $ip was null or if it somehow doesn't fall into a valid ipv4 or ipv6 address. Only way to test this at this point would be to see what $this->getRequest()->getIP() is returning. |
Just as a shot, changed my user/User.php to reflect what you guys have and it seems to have resolved the issue. Changing line 3747 to: ": Cannot log user "this" out of a user "{$session->getUser()}"'s session" |
I filed https://phabricator.wikimedia.org/T148486 upstream for this. |
This was fixed by MediaWiki and I haven't had any additional reports on this since then. Closing for now, if it still occurs we can reinvestigate this. |
MW 1.27.1 is throwing the following error on the backend when any public user tries to view the wiki and isnt logged in to an SMF account.
PHP Catchable fatal error: Method User::__toString() must return a string value in .../includes/user/User.php on line 3747
Basically throws a 500 and no anonymous users can load any Wiki pages when the integration is enabled. Works just fine for logged in users, just not public.
The text was updated successfully, but these errors were encountered: