Page MenuHomePhabricator

Mobile signup page is completely blank for logged in users
Closed, ResolvedPublic

Description

After login the following desktop view page works correctly: https://it.wikivoyage.org/wiki/Speciale:Entra/signup
But clicking on "versione mobile" link at the bottom of the page lead to the following link that doesn't work: https://it.m.wikivoyage.org/w/index.php?title=Speciale:Entra/signup&mobileaction=toggle_view_mobile

On the other hand the following links work:
en:voy: https://en.m.wikivoyage.org/wiki/Special:UserLogin/signup
it:w: https://it.m.wikipedia.org/wiki/Speciale:Entra/signup

while the equivalent still doesn't:

  1. https://it.m.wikivoyage.org/wiki/Special:UserLogin/signup
  2. https://it.m.wikivoyage.org/wiki/Speciale:Entra/signup

Because of this bug no mobile user can register on the project.

Event Timeline

Andyrom75 raised the priority of this task from to High.
Andyrom75 updated the task description. (Show Details)
Andyrom75 added a subscriber: Andyrom75.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 17 2015, 10:57 AM

Please describe what "doesn't work" exactly means.
For general information, see https://www.mediawiki.org/wiki/How_to_report_a_bug

Andyrom75 added a comment.EditedJun 17 2015, 11:14 AM

Is shown a blank page instead of the regular registration one (try to follow the links above)

Andyrom75 added a comment.EditedJun 17 2015, 11:17 AM

I've just noticed that the above problem occurs on Chrome and Safari but on FF and IE8 works correctly.

Andyrom75 renamed this task from Mobile signup on it:voy doesn't work to Mobile signup page on it:voy is blank on Chrome and Safari.Jun 17 2015, 11:24 AM
@Andyrom75 wrote:

Is shown a blank page instead of the regular registration one
I've just noticed that the above problem occurs on Chrome and Safari but on FF and IE8 works correctly.

I cannot reproduce. I tried on my desktop computer on Linux with Firefox 38 and Google Chrome 43, and both logged out and logged in).

Which operating system? Which device(s)? Are other users affected? Any links to such reports by other users?

(try to follow the links above)

I did that and I did not see anything surprising, hence I asked.
People cannot always reproduce bugs, hence bug reports need to describe what the actual and expected outcome is. :)

Andyrom75 added a comment.EditedJun 17 2015, 12:33 PM

I've tried with Chrome 43 on a laptop with Windows 7 and with Safari on an iPad.

Now I think I've got it. The problem occurs when logged in.
I've just tried with FF unlogged and the page is regularly shown, but after the login the page turn blank.

Andyrom75 renamed this task from Mobile signup page on it:voy is blank on Chrome and Safari to Mobile signup page on it:voy is blank for logged users.Jun 17 2015, 12:51 PM
Andyrom75 updated the task description. (Show Details)

completely blank page and yet I see nothing coming up at fluorine:/a/mw-log/exception.log (or hhvm.log) when it happens

Krenair renamed this task from Mobile signup page on it:voy is blank for logged users to Mobile signup page is completely blank for logged in users.Jun 17 2015, 1:35 PM

Occurs on other wikis such as enwiki too: https://en.m.wikipedia.org/wiki/Special:UserLogin/signup

When I try this locally I get:

Fatal error: Call to undefined method UserAccountCreateMobileTemplate::addInputItem() in /home/alex/Development/MediaWiki/extensions/AntiSpoof/AntiSpoofHooks.php on line 79

Looks like an incompatibility between MW core's UsercreateTemplate (which AntiSpoof expects to get through the UserCreateFormHook hook) and MobileFrontend's equivalent (UserAccountCreateMobileTemplate or UserLoginAndCreateTemplate)

Hmm, i don't see an empty page :/

Florian claimed this task.Jun 17 2015, 4:58 PM

Ahh, ok, locally I get it.

phuedx added a subscriber: phuedx.Jun 17 2015, 5:02 PM

I'm currently not seeing blank pages for any of the URLs mentioned in the comments both logged in and logged out.

Change 218948 had a related patch set uploaded (by Florianschmidtwelzow):
Inherit UsercreateTemplate for User{login|create} templates to fix T102775

https://gerrit.wikimedia.org/r/218948

But it appears that @Florian is!

@phuedx I only see it locally with AntiSpoof (no configuration, so anything default), but it makes sense and we should do the above change anyhow :)

Change 218948 merged by jenkins-bot:
Inherit UsercreateTemplate for User{login|create} templates to fix T102775

https://gerrit.wikimedia.org/r/218948