Extension talk:InviteSignup

About this board

Derek Jones Smr (talkcontribs)

Hello!

I want to notify more than a dozen employees that MediaWiki accounts have been registered for them. Is it possible to send invitations from a list of emails?

Platonides (talkcontribs)

I don't think you can add multiple people at once (you would need to do them one-by-one, which is not a big deal but slightly tedious). If you are setting up mediawiki in a company setting, it may be more appropriate to use Extension:LDAPAuthentication2 so they can log in with the company credentials.

Derek Jones Smr (talkcontribs)

Yes, and yes.

I use domain identification and it is a bit tedious for me to send them invitation one-by-one. Especially since I have a full list of participants for the mailing. But thanks for the answer

Reply to "Notify from a list"

Problems with mediawiki 1.43

4
C holtermann (talkcontribs)

I have installed the extension and tried to invite a user.

There were database errors about no default value given. Database looks like this:

```

MariaDB [akademie_mediawiki]> show columns FROM invitesignup;

+------------+------------------+------+-----+---------+-------+

| Field      | Type             | Null | Key | Default | Extra |

+------------+------------------+------+-----+---------+-------+

| is_hash    | varbinary(40)    | NO   | PRI | NULL    |       |

| is_inviter | int(10) unsigned | NO   |     | NULL    |       |

| is_invitee | int(10) unsigned | NO   |     | 0       |       |

| is_email   | varbinary(255)   | NO   |     | NULL    |       |

| is_when    | binary(14)       | NO   |     | NULL    |       |

| is_used    | binary(14)       | NO   |     | NULL    |       |

| is_groups  | longblob         | NO   |     | NULL    |       |

+------------+------------------+------+-----+---------+-------+

7 rows in set (0.001 sec)

```

It seems as if it is not about no but about a wrong default value. I got this working by

```

MariaDB [akademie_mediawiki]> ALTER TABLE invitesignup ALTER COLUMN is_invitee SET DEFAULT 0;

Query OK, 0 rows affected (0.003 sec)

Records: 0  Duplicates: 0  Warnings: 0


MariaDB [akademie_mediawiki]> ALTER TABLE invitesignup ALTER COLUMN is_used SET DEFAULT 0;

Query OK, 0 rows affected (0.004 sec)

Records: 0  Duplicates: 0  Warnings: 0

```

Maybe null should be allowed as value?

This fixed the original errors. After that I received another error message:

```

[c764da093dfa911cc482d649] /wiki/Special:InviteSignup ArgumentCountError: Too few arguments to function EmaillingJob::__construct(), 2 passed in /var/www/html/w/extensions/InviteSignup/includes/SpecialInviteSignup.php on line 224 and exactly 3 expected

Backtrace:

from /var/www/html/w/includes/jobqueue/jobs/EmaillingJob.php(36)

#0 /var/www/html/w/extensions/InviteSignup/includes/SpecialInviteSignup.php(224): EmaillingJob->__construct()

#1 /var/www/html/w/extensions/InviteSignup/includes/SpecialInviteSignup.php(78): SpecialInviteSignup::sendInviteEmail()

#2 /var/www/html/w/includes/specialpage/SpecialPage.php(719): SpecialInviteSignup->execute()

#3 /var/www/html/w/includes/specialpage/SpecialPageFactory.php(1672): MediaWiki\SpecialPage\SpecialPage->run()

#4 /var/www/html/w/includes/actions/ActionEntryPoint.php(502): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#5 /var/www/html/w/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest()

#6 /var/www/html/w/includes/MediaWikiEntryPoint.php(199): MediaWiki\Actions\ActionEntryPoint->execute()

#7 /var/www/html/w/index.php(58): MediaWiki\MediaWikiEntryPoint->run()

#8 {main}

```

I did not try to fix this error and stop trying this extension for now.

The third argument seems to have been added in recent versions.

Nikerabbit (talkcontribs)
C holtermann (talkcontribs)

Thank you for pointing there. I have also come across T366079. Good to see it has been noticed by others.T134885 seems to be a bigger issue.

Nikerabbit (talkcontribs)

There was a patch in master branch that should fix the EmailingJob issue.

Reply to "Problems with mediawiki 1.43"
Derek Jones Smr (talkcontribs)

Hello!

How can i change the text of the Invitation email?

Dreamy Jazz (talkcontribs)
Reply to "Invite message"
Infitaahul (talkcontribs)

how to fix the following error?


A database query error has occurred. This may indicate a bug in the software.

[YIX97VzxouZ7shRdkl6pJQAAANY] 2021-04-25 23:40:29: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"


Please help...

Nikerabbit (talkcontribs)

Do enable $wgShowExceptionDetails to get more information.

Reply to "Database error"
97.113.186.96 (talkcontribs)

$wgISGroups = array( 'translator', 'sysop' ); causes a sql error

Nikerabbit (talkcontribs)

That code certainly doesn't. Something else may if you haven't run update.php.

Ulrich C. Thiess (talkcontribs)

Wiki 1.34.2

If i use $wgISGroups

ArgumentCountError from line 456 of C:\inetpub\zoomsoft.de\mediawiki-1.34.2\includes\user\UserGroupMembership.php: Too few arguments to function UserGroupMembership::getGroupMemberName(), 1 passed in C:\inetpub\zoomsoft.de\mediawiki-1.34.2\extensions\InviteSignup\SpecialInviteSignup.php on line 164 and exactly 2 expected

Backtrace:

#0 C:\inetpub\zoomsoft.de\mediawiki-1.34.2\extensions\InviteSignup\SpecialInviteSignup.php(164): UserGroupMembership::getGroupMemberName(string)

#1 C:\inetpub\zoomsoft.de\mediawiki-1.34.2\extensions\InviteSignup\SpecialInviteSignup.php(90): SpecialInviteSignup->getAddRow()

#2 C:\inetpub\zoomsoft.de\mediawiki-1.34.2\includes\specialpage\SpecialPage.php(575): SpecialInviteSignup->execute(NULL)

#3 C:\inetpub\zoomsoft.de\mediawiki-1.34.2\includes\specialpage\SpecialPageFactory.php(611): SpecialPage->run(NULL)

#4 C:\inetpub\zoomsoft.de\mediawiki-1.34.2\includes\MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#5 C:\inetpub\zoomsoft.de\mediawiki-1.34.2\includes\MediaWiki.php(900): MediaWiki->performRequest()

#6 C:\inetpub\zoomsoft.de\mediawiki-1.34.2\includes\MediaWiki.php(527): MediaWiki->main()

#7 C:\inetpub\zoomsoft.de\mediawiki-1.34.2\index.php(44): MediaWiki->run()

#8 {main}

Taavi (talkcontribs)

Are you sure you are running the latest version of InviteSignup?

Ulrich C. Thiess (talkcontribs)

Yes: InviteSignup-REL1_34-d2f41cb.tar.gz

2020-05-25T18:16:55

Nikerabbit (talkcontribs)

That is not the latest version. You can pick up the master or REL1_35 version which to my knowledge are still compatible with MediaWiki 1.34.

Reply to "this function fails"

Permissions Issues on Private Wiki

2
Squingynaut (talkcontribs)

I've set up a wiki that is private so users must be logged in to view pages. When clicking the invite link in the email, I am told that I don't have permission to view the account creation page. While leaving $wgGroupPermissions['*']['createaccount'] = false; I've set $wgWhitelistRead = [ "Special:CreateAccount" ]; and now get an error "You do not have permission to do that, for the following reason: You are not allowed to execute the action you have requested."


How can the InviteSignup extension be used on a private wiki? I seem to be missing something. Thank you!

Nikerabbit (talkcontribs)

It's meant to be used like that, but I am afraid it is no longer working with modern MediaWiki versions.

Reply to "Permissions Issues on Private Wiki"

MW1.29: Permission error

6
CalNation (talkcontribs)

Going to Special:InviteSignup shows You do not have permission to invite users to sign up to this site, for the following reason: You are not allowed to execute the action you have requested.

Even though Special:ListGroupRights shows my user group for sure has the InviteSignup Any ideas?

Nikerabbit (talkcontribs)

This works for me. Are you logged in and using the right account?

CalNation (talkcontribs)

Just tried logging out/in to make sure and still there's permission error

Are you using MW1.29? It might be a version issue.

Nikerabbit (talkcontribs)

I am not using InviteSignup much currently and I am not even sure it works properly with MediaWiki since the auth code rewrite. But you shouldn't see such errors. Maybe related to https://gerrit.wikimedia.org/r/c/303358/ ?

أحمد (talkcontribs)

A wiki of mine exhibits a similar, and I believe related issue: Users in the "staff", "admin" and "bureaucrat" user-groups are able to send invitations, but upon following the invitation link, the invitee gets a message that they are not authorised to perform the action.

Dan.mulholland (talkcontribs)

I experience the same with MW 1.31. I think this is either broken or broken for private wiki use with the ConfirmAccount extension used at the same time.

Reply to "MW1.29: Permission error"

What if I want to choose their username?

2
79.182.137.171 (talkcontribs)

I don't want them to decide on their own usernames, just on their own passwords.

Nikerabbit (talkcontribs)

This functionality does not exist.

Reply to "What if I want to choose their username?"

"No email address" error from "create account" form

7
99.224.74.96 (talkcontribs)

Running MediaWiki 1.22.5 with a few extensions.

The email link is http://<mydomain>/index.php?title=Special:UserLogin/signup&invite=4c2d4327c0c65a093e82f7989ab69aa6959b06ea&returnto=Special%3ADashboard.

Fill in a userid and password and click on "Create your account".

An error is displayed - "Account creation error. No email address"

I suspect it is either a permissions issue or a conflict with another extension.

Any suggestions?

91.213.144.3 (talkcontribs)

The same - "mediawiki-1.25.2".

>>Was the account actually created?

I try to create it on SpecialPages\Create account

91.213.144.3 (talkcontribs)

Look for parameter

$wgEmailAuthentication

In "LocalSettings.php"

أحمد (talkcontribs)

I have the same issue with MW1.26.

$wgEmailAuthentication is set to "true" in LocalSettings.php, which is how I would like it to be.

Are you suggesting that this extension doesn't work with this configuration?

أحمد (talkcontribs)

Even after having set $wgEmailAuthentication = false, invitees still get this error message.

Is it something else?

أحمد (talkcontribs)
Reply to ""No email address" error from "create account" form"
Noboddy (talkcontribs)

It would be great if I could already set up a username for the people I invite. Is it possible to add that?

Nikerabbit (talkcontribs)

It's not currently possible.

It sounds like you could just create accounts for them in a regular way and then request password reminder to let them reset their password.

Noboddy (talkcontribs)

Thanks for the reply, I guess I'll have to continue doing it that way then.

Reply to "Username"
Return to "InviteSignup" page.