Jump to content

Extension talk:PrivateDomains/Flow

About this board

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"
Аргскригициониец (talkcontribs)

On clean 1.35 wiki the extension doesn't work. When I try to edit/dreate no matter if there are allowed domains or no, I get the following error:

[X7E-JjVc8eyuQ@wZv-XX8wAAAA8] 2020-11-15 14:45:58: Неустранимое исключение типа «Error»

This bug appears only when the extension is active, is tested on clean MediaWiki 1.35 with Russian locale.

Reply to "Doesn't work on 1.35"

Extension Error with MediaWiki 1.18.1

2
189.9.20.9 (talkcontribs)

I installed the extension, filled the special page with the private domain and when I was testing, after email confirmation with the private domain, whenever I tried to edit a page this message appear:

Detected bug in an extension! Hook pd_AlternateEdit has invalid call signature; Parameter 1 to pd_AlternateEdit() expected to be a reference, value given

Backtrace:

  1. 0 /var/www/wikijur/includes/GlobalFunctions.php(3631): Hooks::run('AlternateEdit', Array)
  2. 1 /var/www/wikijur/includes/EditPage.php(370): wfRunHooks('AlternateEdit', Array)
  3. 2 /var/www/wikijur/includes/EditPage.php(353): EditPage->edit()
  4. 3 /var/www/wikijur/includes/Wiki.php(515): EditPage->submit()
  5. 4 /var/www/wikijur/includes/Wiki.php(255): MediaWiki->performAction(Object(Article))
  6. 5 /var/www/wikijur/includes/Wiki.php(640): MediaWiki->performRequest()
  7. 6 /var/www/wikijur/includes/Wiki.php(547): MediaWiki->main()
  8. 7 /var/www/wikijur/index.php(57): MediaWiki->run()
  9. 8 {main}
Jack Phoenix (talkcontribs)

Thanks for the bug report, please try r112713 to see if that fixes the problem.

Reply to "Extension Error with MediaWiki 1.18.1"
There are no older topics