Topic on Extension talk:ConfirmAccount

[SOLVED] Request account button not showing up on main page for 1.34 -- working for 1.33

8
Paulette00 (talkcontribs)

I must have done something idiotic but somehow I can't make the "request account" to appear for potential new users. The mediawiki (1.34) setup is private. The extension is also 1.34 compatible. Permissions are set up as:

$wgGroupPermissions['*']['read'] = false;

with

$wgWhitelistRead = array(

  "Special:Request account",

  "Spécial:Demander un compte"

);


What is missing ?

Many thanks.

Spas.Z.Spasov (talkcontribs)

Hello, please read this post of mine. I think it could help.

Paulette00 (talkcontribs)

Ok thanks, I've seen it, and I don't have errors (when for example using mediawiki:loginprompt to make the request account page appear).

Nevertheless, I'll have a go at what you suggest, and report here.

Paulette00 (talkcontribs)

Hello, I did do as you suggested by adding/rewriting the hook to display the RequestAccount button. I did not touch at the ConfirmEdit bit: there are no errors showing up in the logs.

But the whole lot didn't work.


However: this feature worked with the MW version 1.33. I did not check when upgrading to 1.34 if the the feature was still alive. So, to make sure, I replaced the ConfirmAccount directory from 1.34 by the one from 1.33. And .... it did work. So I don't really know what's happening here: a quick diff on both directories didn't enlightnen me.


Conclusion: I stay with ConfirmAccount 1.33 until I have better ideas...

Paulette00 (talkcontribs)

Here we go, I found my answer (got it of course from comparing 1.34 with 1.33):

in frontend/ConfirmAccountUI.hooks.php, line 32:

replace

if ( isset( $personal_urls['login'] ) ) {

with

if ( isset( $personal_urls['login'] )

        || isset( $personal_urls['login-private'] ) ) {

... which shows that the problem originated from my wiki being private!


MyWikis-JeffreyWang (talkcontribs)

Strange how this bug has yet to be fixed in REL1_35. This makes ConfirmAccount essentially useless for private wikis. Being private doesn't mean the button shouldn't appear.

Rrosenfeld (talkcontribs)

The above patch solved the issue for me too, but I had to learn first, that the "Request Account" button has moved from above the login form (where it was in 1.31) to the upper right corner of the screen (where I didn't expect it after using 1.31)...

Flyingratchet (talkcontribs)

Thank you—this was a lifesaver! This was still a problem for me in version 1.36

Reply to "[SOLVED] Request account button not showing up on main page for 1.34 -- working for 1.33"