Extension talk:InviteSignup
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
regarding the need for database changes
[edit]I encountered the following error message, suggesting database mods are needed, though not indicated in the install directions:
A database query error has occurred. This may indicate a bug in the software.
Query: SELECT * FROM `invitesignup` Function: InviteStore::getInvites Error: 1146 Table 'wikidb.invitesignup' doesn't exist (localhost) SimonKahan (talk) 22:02, 15 February 2014 (UTC)
- Good catch! The info in the template is wrong. You will have to run
php maintenance/update.php --quick. I will rectify the documantation. Thank you and cheers [[kgh]] (talk) 22:05, 15 February 2014 (UTC)
Call to undefined method SpecialInviteSignup::getPageTitle
[edit]I work with:
MediaWiki 1.22.4 PHP 5.3.28-pl3-gentoo (uwsgi) MySQL 5.1.70
and I use last version of InviteSignup, fetched with git. I get this error:
[539c326f] /index.php/Special:InviteSignup Exception from line 376 of /var/www/wiki/htdocs/includes/SpecialPage.php: Call to undefined method SpecialInviteSignup::getPageTitle
Backtrace:
#0 /var/www/wiki/htdocs/extensions/InviteSignup/SpecialInviteSignup.php(136): SpecialPage->__call(string, array)
#1 /var/www/wiki/htdocs/extensions/InviteSignup/SpecialInviteSignup.php(136): SpecialInviteSignup->getPageTitle()
#2 /var/www/wiki/htdocs/extensions/InviteSignup/SpecialInviteSignup.php(82): SpecialInviteSignup->getAddRow()
#3 /var/www/wiki/htdocs/includes/SpecialPage.php(631): SpecialInviteSignup->execute(NULL)
#4 /var/www/wiki/htdocs/includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
#5 /var/www/wiki/htdocs/includes/Wiki.php(298): SpecialPageFactory::executePath(Title, RequestContext)
#6 /var/www/wiki/htdocs/includes/Wiki.php(602): MediaWiki->performRequest()
#7 /var/www/wiki/htdocs/includes/Wiki.php(467): MediaWiki->main()
#8 /var/www/wiki/htdocs/index.php(49): MediaWiki->run()
#9 {main}
What you can advise me? Ivanov17 (talk) 06:02, 11 April 2014 (UTC)
- Please update to the latest version where I have restored compatibility with MediaWiki 1.22 Nikerabbit (talk) 07:01, 11 April 2014 (UTC)
- Thanks. Ivanov17 (talk) 10:19, 11 April 2014 (UTC)
Where can I see this?
[edit]Is there a public wiki where this is installed? I'm just curious how the UX works. Steven Walling (WMF) • talk 21:38, 14 April 2014 (UTC)
- There is one not too pretty special page, which is restricted to admins. The users get emails with link which allow them to sign up using the normal signup form. Nikerabbit (talk) 06:01, 15 April 2014 (UTC)
- I think it will be nice to have this screenshot within the info box for this extension. [[kgh]] (talk) 16:31, 15 April 2014 (UTC)
- It is always possible to check if a public wiki uses an extension by clicking the "Check usage and version matrix" which you will find a the bottom of the info box. [[kgh]] (talk) 16:32, 15 April 2014 (UTC)
"No email address" error from "create account" form
[edit]- 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? 99.224.74.96 00:59, 7 May 2014 (UTC)
- Was the account actually created? Nemo 05:50, 7 May 2014 (UTC)
- The same - "mediawiki-1.25.2".
- >>Was the account actually created?
- I try to create it on SpecialPages\Create account 91.213.144.3 (talk) 09:51, 12 October 2015 (UTC)
- Look for parameter
- $wgEmailAuthentication
- In "LocalSettings.php"
- 91.213.144.3 (talk) 11:52, 12 October 2015 (UTC)
- 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? Ahmad Gharbeia أحمد غربية (talk) 10:46, 18 January 2016 (UTC)
- Even after having set $wgEmailAuthentication = false, invitees still get this error message.
- Is it something else? Ahmad Gharbeia أحمد غربية (talk) 17:08, 18 March 2016 (UTC)
- 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. Ahmad Gharbeia أحمد غربية (talk) 11:52, 21 March 2016 (UTC)
404 on form submission after "add" button click
[edit]I've installed extension using instructions. I can see it in special:version, and can go to special:invitesignup. But when i'm clicking add, postback fails (i see it in console) and wiki shows me stadart page for absent article. 46.138.104.164 16:40, 14 May 2014 (UTC)
- And there was the bullet:
- SpecialInviteSignup.php line 147
- Html::hidden( 'title', $this->getPageTitle()->getDBKey() ) .
- cuz of Wiki.php line 77:
- $title = $request->getVal( 'title' );
- PS: im using latest wiki and extension versions on the post date. 46.138.104.164 19:52, 14 May 2014 (UTC)
- By "latest wiki", do you mean you're using 1.22? Anyway, I hope gerrit:134800 fixes it, you may want to test. Nemo 10:08, 22 May 2014 (UTC)
- I noticed the same problem, using MediaWiki 1.24alpha. For me at least, the change has fixed it. JoelKP (talk) 09:09, 30 May 2014 (UTC)
- Great, thanks. Nemo 09:18, 30 May 2014 (UTC)
- I noticed the same problem, using MediaWiki 1.24alpha. For me at least, the change has fixed it. JoelKP (talk) 09:09, 30 May 2014 (UTC)
- By "latest wiki", do you mean you're using 1.22? Anyway, I hope gerrit:134800 fixes it, you may want to test. Nemo 10:08, 22 May 2014 (UTC)
Sending mails from users' addresses is not a great idea
[edit]Great little extension!
However, lots of invites will end in spam folders because the extensions sends invites from the logged in user's e-mail address. If this address has SPF rules set up not allowing the wiki server to send mails (which in my world would almost always be the case), the receiving server will mark the message as spam.
Shouldn't this extension use $wgPasswordSender as From address?
Anyway, thanks for the great work!
Best regards, Asbjørn Baagø 78.143.73.31 23:39, 3 August 2014 (UTC)
- It probably should, yes. Want to submit a patch? Nemo 06:30, 4 August 2014 (UTC)
- I just installed this extension -- it's perfect for what I need, except emails keep going to spam. I wish I knew enough to submit a patch for this. If you could get around to it, that would be very helpful. Thank you! Jschroe (talk) 04:13, 6 August 2014 (UTC)
- gerrit:152231 should solve this. Lcawte (talk) 09:48, 7 August 2014 (UTC)
- I've been busy for a few days. I'll check to see if the above mentioned fix solves my problem. If not, I'll work on a fix and submit it. If it does fix it, I'm very thankful! :-)
- -Asbjørn Baagø 78.143.73.31 19:06, 7 August 2014 (UTC)
Username
[edit]It would be great if I could already set up a username for the people I invite. Is it possible to add that? Noboddy (talk) 10:25, 15 April 2015 (UTC)
- 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. Nikerabbit (talk) 19:27, 15 April 2015 (UTC)
- Thanks for the reply, I guess I'll have to continue doing it that way then. Noboddy (talk) 11:37, 16 April 2015 (UTC)
What if I want to choose their username?
[edit]I don't want them to decide on their own usernames, just on their own passwords. 79.182.137.171 (talk) 23:35, 13 October 2017 (UTC)
- This functionality does not exist. Nikerabbit (talk) 17:28, 18 October 2017 (UTC)
MW1.29: Permission error
[edit]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? CalNation (talk) 05:24, 1 March 2018 (UTC)
- This works for me. Are you logged in and using the right account? Nikerabbit (talk) 09:02, 1 March 2018 (UTC)
- 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. CalNation (talk) 03:31, 2 March 2018 (UTC)
- 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/ ? Nikerabbit (talk) 07:55, 5 March 2018 (UTC)
- 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. Ahmad Gharbeia أحمد غربية (talk) 12:45, 29 March 2018 (UTC)
- 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. Dan.mulholland (talk) 20:59, 27 November 2018 (UTC)
Permissions Issues on Private Wiki
[edit]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! Squingynaut (talk) 21:26, 14 March 2019 (UTC)
- It's meant to be used like that, but I am afraid it is no longer working with modern MediaWiki versions. Nikerabbit (talk) 12:58, 20 March 2019 (UTC)
this function fails
[edit]$wgISGroups = array( 'translator', 'sysop' ); causes a sql error 97.113.186.96 (talk) 04:55, 13 February 2020 (UTC)
- That code certainly doesn't. Something else may if you haven't run update.php. Nikerabbit (talk) 13:34, 14 February 2020 (UTC)
- 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 expectedBacktrace:#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}Ulrich C. Thiess (talk) 12:17, 17 July 2020 (UTC)- Are you sure you are running the latest version of InviteSignup? Taavi (talk!) 12:21, 17 July 2020 (UTC)
- Yes: InviteSignup-REL1_34-d2f41cb.tar.gz
- 2020-05-25T18:16:55 Ulrich C. Thiess (talk) 13:12, 20 July 2020 (UTC)
- 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. Nikerabbit (talk) 12:46, 21 July 2020 (UTC)
Database error
[edit]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... Infitaahul (talk) 23:44, 25 April 2021 (UTC)
- Do enable $wgShowExceptionDetails to get more information. Nikerabbit (talk) 13:36, 26 April 2021 (UTC)
Invite message
[edit]Hello!
How can i change the text of the Invitation email? Derek Jones Smr (talk) 11:44, 1 December 2023 (UTC)
- 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. Dreamy Jazz (talk) 12:37, 28 December 2023 (UTC)
Problems with mediawiki 1.43
[edit]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. C holtermann (talk) 22:10, 25 June 2024 (UTC)
- 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 Nikerabbit (talk) 06:01, 26 June 2024 (UTC)
- 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. C holtermann (talk) 19:46, 30 June 2024 (UTC)
- There was a patch in master branch that should fix the EmailingJob issue. Nikerabbit (talk) 06:52, 5 September 2024 (UTC)
Notify from a list
[edit]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? Derek Jones Smr (talk) 06:31, 25 September 2024 (UTC)
- 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. Platonides (talk) 21:59, 29 September 2024 (UTC)
- 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 Derek Jones Smr (talk) 10:12, 1 October 2024 (UTC)
$wgGroupPermissions["*"]["createaccount"] = true;
[edit]Not working where $wgGroupPermissions["*"]["createaccount"] = true;. What is the purpose then?223.185.16.123 17:05, 29 April 2025 (UTC)
- Please be clear and descriptive. "Not working" can mean anything. Nikerabbit (talk) 06:21, 5 May 2025 (UTC)
rereading: red link for table 'invitesignup' in the infobox
[edit]Red link observed in the infobox for
|table1 = invitesignup
Please correct or remove if no longer actual. Thanks. -- Christian 🇫🇷 FR 🚨 (talk) 07:38, 12 August 2025 (UTC)
- Feel free to add. It should be easy to do by just copying from the sql files in the repository. I don't like to create copies of information that need manual updating so I'd prefer not to do it myself. Nikerabbit (talk) 14:14, 13 August 2025 (UTC)
Error: Class "Html" not found
[edit]MW Version 1.44.5
InviteSignup Version 1_44-8fdeeef (1.0.0+2021-09-01 (8fdeeef) 09:25, 9 April 2026)
Selecting 'Invite people to this wiki" results in:
[ba6d3c8f792b98c8298ba21e] /history/Special:InviteSignup Error: Class "Html" not found Backtrace: from /home/u526443252/domains/dewrestlinghistory.com/public_html/history/extensions/InviteSignup/includes/SpecialInviteSignup.php(87)
- 0 /home/u526443252/domains/dewrestlinghistory.com/public_html/history/includes/specialpage/SpecialPage.php(734): SpecialInviteSignup->execute()
- 1 /home/u526443252/domains/dewrestlinghistory.com/public_html/history/includes/specialpage/SpecialPageFactory.php(1731): MediaWiki\SpecialPage\SpecialPage->run()
- 2 /home/u526443252/domains/dewrestlinghistory.com/public_html/history/includes/actions/ActionEntryPoint.php(500): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
- 3 /home/u526443252/domains/dewrestlinghistory.com/public_html/history/includes/actions/ActionEntryPoint.php(144): MediaWiki\Actions\ActionEntryPoint->performRequest()
- 4 /home/u526443252/domains/dewrestlinghistory.com/public_html/history/includes/MediaWikiEntryPoint.php(202): MediaWiki\Actions\ActionEntryPoint->execute()
- 5 /home/u526443252/domains/dewrestlinghistory.com/public_html/history/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
- 6 {main}
Jxs2151 (talk) 16:23, 14 April 2026 (UTC)
- Fixed by modifying SpecialInviteSignup.php according to https://www.mediawiki.org/wiki/Release_notes/1.44#Breaking_changes_in_1.44
- \Html — use \MediaWiki\Html\Html
- Xml::submitButton() – use \MediaWiki\Html\Html::submitButton() instead (note that this is corrected from the release notes of "Html::submitButton() instead")
- Xml::input() – use \MediaWiki\Html\Html::input() instead (note that this is corrected from the release notes of "Html::input() instead") Jxs2151 (talk) 17:47, 14 April 2026 (UTC)