Page MenuHomePhabricator

fundraising-dev: email prefs showing internal error after fresh install
Closed, ResolvedPublic

Description

I decided to bookmark all the URLs generated at the end of the setup.sh process, but when accessing the one generated for the E-mail Preference Center, I get an internal error. This is on fresh build too.

The link I tried was https://localhost:9002/index.php/Special:EmailPreferences

Error:

[05483083ea6f7af8fec766e8] /index.php/Special:EmailPreferences RuntimeException from line 26 of /var/www/html/extensions/DonationInterface/gateway_forms/MustacheHelper.php: Template file unavailable: [/var/www/html/extensions/DonationInterface/email_forms/templates/.html.mustache]

Backtrace:

#0 /var/www/html/extensions/DonationInterface/email_forms/EmailForm.php(61): MustacheHelper::render(string, array, array)
#1 /var/www/html/extensions/DonationInterface/special/EmailPreferences.php(231): EmailForm->getForm()
#2 /var/www/html/extensions/DonationInterface/special/EmailPreferences.php(68): EmailPreferences->renderQuery(NULL, array)
#3 /var/www/html/includes/specialpage/SpecialPage.php(600): EmailPreferences->execute(NULL)
#4 /var/www/html/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
#5 /var/www/html/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#6 /var/www/html/includes/MediaWiki.php(947): MediaWiki->performRequest()
#7 /var/www/html/includes/MediaWiki.php(547): MediaWiki->main()
#8 /var/www/html/index.php(53): MediaWiki->run()
#9 /var/www/html/index.php(46): wfIndexMain()
#10 {main}

Event Timeline

This is expected, that we now needs to have param with emailPreferences, checksum and contact_id. like https://localhost:9002/index.php?title=Special:EmailPreferences/emailPreferences&contact_id=204&checksum=56eb98d3d362996d0310262149ad8bba_1645567575_168
While in order to avoid this form not found link error, set emailPreferences as default template to avoid this error

Change 884543 had a related patch set uploaded (by Wfan; author: Wfan):

[mediawiki/extensions/DonationInterface@master] Default emailPreference template to emailPreferences

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

Change 884543 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Default emailPreference template to emailPreferences

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

XenoRyet set Final Story Points to 1.