Topic on Extension talk:ConfirmUsersEmail

Jump to navigation Jump to search
Sambalosa (talkcontribs)

After installing the extension, I got the following error:

Fatal error: Call to a member function addMessages() on a non-object in 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


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 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"