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?
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?
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.
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
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.
Unfortunately the extension is not very well maintained and it has other open issues too https://phabricator.wikimedia.org/maniphest/?project=PHID-PROJ-p4ddgcq3oqf3z66txngr&statuses=open()&group=none&order=newest#R
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.
You should create the page MediaWiki:is-emailbody on your own wiki and define your desired email body text on that page.
You can also do this to change the email subject using MediaWiki:is-emailsubj on your on wiki.
For more information on this method, the page Help:System_message#Overriding_messages_on-wiki should help.
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...
That code certainly doesn't. Something else may if you haven't run update.php.
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}
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.
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!
It's meant to be used like that, but I am afraid it is no longer working with modern MediaWiki versions.
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?
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.
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/ ?
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.
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.
I don't want them to decide on their own usernames, just on their own passwords.
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?
The same - "mediawiki-1.25.2".
>>Was the account actually created?
I try to create it on SpecialPages\Create account
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?
Even after having set $wgEmailAuthentication = false, invitees still get this error message.
Is it something else?
Further experimentation showed me that the setting of $wgEmailAuthentication is insignificant for the work of InviteSignup, and that $wgEmailConfirmToEdit is the setting that has to be set to false.
It would be great if I could already set up a username for the people I invite. Is it possible to add that?
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.