Jump to content

Extension talk:ConfirmUsersEmail

About this board

Previous page history was archived for backup purposes at Extension talk:ConfirmUsersEmail/LQT Archive 1 on 2015-07-10.
Sambalosa (talkcontribs)

After installing the extension, I got the following error:

Fatal error: Call to a member function addMessages() on a non-object in blabla.com/extensions/ConfirmUsersEmail/ConfirmUsersEmail.php on line 42

This is the function in which addMessages appears:

function efConfirmUsersEmail()

       global $wgMessageCache;
       require_once( dirname( __FILE__ ) . '/ConfirmUsersEmail.i18n.php' );
       foreach( efConfirmUsersEmailMessages() as $lang => $messages )
       $wgMessageCache->addMessages( $messages, $lang );

}

Does anybody have suggestions how I could fix this?

Thanks in advance

Hermann

Skizzerz (talkcontribs)

I suggest you search for an alternative extension that has the functionality you desire. I have not been keeping this up-to-date, and it appears that it no longer works on recent versions of MediaWiki. Unless someone else decides to come along, your above issue will not be fixed, ever.

Jamesmontalvo3 (talkcontribs)

Comparing this to a similar problem in the User Rights List extension, to fix this I'd say in ConfirmUsersEmail.page.php perform the following changes:

  • Change all occurrences of "wfElement" to "Xml::Element"
  • Change all occurrences of "wfOpenElement" to "Xml::openElement"
  • Change all occurrences of "wfCloseElement" to "Xml::closeElement"

Hope this helps.

Reply to "Another Error"
There are no older topics