Error while installing mediawiki

Website URL

http://osterntrips.great-site.net/

Error Message

Fatal error : Class MediaWiki\Parser\Parsoid\Config\SiteConfig contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Wikimedia\Parsoid\Config\SiteConfig::incrementCounter, Wikimedia\Parsoid\Config\SiteConfig::observeTiming) in /home/vol9_6/infinityfree.com/if0_37425562/htdocs/includes/parser/Parsoid/Config/SiteConfig.php on line 65

Other Information

What can I do now?

If a class has one or more abstract functions, it MUST be declared as an abstract class

Here is example for you:

abstract class CI_Controller_Rest extends CI_Controller {

    public function __construct() {
        parent::__construct();
    }

    abstract public function index();

    abstract public function get();

    abstract public function head();

    abstract public function post();

    abstract public function put();

    abstract public function delete();
}  

Also check whats up with the mentioned code line for error:

/includes/parser/Parsoid/Config/SiteConfig.php on line 65

1 Like

Thank you for replying! Line 65 of the code is:

class SiteConfig extends ISiteConfig {

So should I just add “abstract” in front of “class” in this line?

You can try that change and see if that fixes it, but I would be very careful making changes to other people’s code like that, because it may just generate a new error down the line.

It’s weird through because when I check the official source code, I see that this class is supposed to be abstract and always appears to have been. So it’s strange that your code is different.

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.