Topic on Extension talk:PrivateDomains

1.36: Error: Class 'PrivateDomains' not found on attempting to confirm email address

3
Beautiful Pomegrenate (talkcontribs)

If relevant: I'm also using GoogleLogin

/index.php/Special:ConfirmEmail/28e1b08d4c8e551054504944ca4d34ab Error: Class 'PrivateDomains' not found

Backtrace:

from /var/www/wiki/extensions/PrivateDomains/includes/PrivateDomainsHooks.php(48)

#0 /var/www/wiki/includes/HookContainer/HookContainer.php(338): PrivateDomainsHooks::onUserLoginComplete()

#1 /var/www/wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()

#2 /var/www/wiki/includes/HookContainer/HookRunner.php(1265): MediaWiki\HookContainer\HookContainer->run()

#3 /var/www/wiki/includes/user/User.php(4015): MediaWiki\HookContainer\HookRunner->onConfirmEmailComplete()

#4 /var/www/wiki/includes/specials/SpecialConfirmEmail.php(180): User->confirmEmail()

#5 /var/www/wiki/includes/specials/SpecialConfirmEmail.php(84): SpecialConfirmEmail->attemptConfirm()

#6 /var/www/wiki/includes/specialpage/SpecialPage.php(646): SpecialConfirmEmail->execute()

#7 /var/www/wiki/includes/specialpage/SpecialPageFactory.php(1386): SpecialPage->run()

#8 /var/www/wiki/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#9 /var/www/wiki/includes/MediaWiki.php(913): MediaWiki->performRequest()

#10 /var/www/wiki/includes/MediaWiki.php(546): MediaWiki->main()

#11 /var/www/wiki/index.php(53): MediaWiki->run()

#12 /var/www/wiki/index.php(46): wfIndexMain()

#13 {main}


It's a fresh install. All I've done is added the domain for the email which was being confirmed to the allowed list for PrivateDomains.


To install, I downloaded the version for 1.36, extracted to extensions/, and included wfLoadExtension('PrivateDomains') in LocalSettings.

Kindly guide


EDIT: note it shows up as installed in Special:Version

Beautiful Pomegrenate (talkcontribs)

I've solved this issue. It seems the PrivateDomains class was renamed to SpecialPrivateDomains in some release, but the PrivateDomainsHooks file was not updated to reflect the change in the class name, so it was still referring to PrivateDomains. Changed and it seems to be working.


I'm a newbie and do not know how to help make this change in the official release - can I be useful? I also have a change for another extension that was broken when used as-is

Hoopid (talkcontribs)

This problem appears to still be there in 1.38.2. Also edited PrivateDomainsHooks.php, two instances of PrivateDomains changed to SpecialPrivateDomains and error disappeared.


~~~~

Reply to "1.36: Error: Class 'PrivateDomains' not found on attempting to confirm email address"