On 2015-01-13 8:50 AM, Alastair Sherringham wrote:
> The Apache error I get is :
>
> Tue Jan 13 15:43:10 2015] [error] [client 192.168.0.124] PHP Warning: 
> require_once(/home/user/mediawiki-1.24.1/skins/zeddocs/../Vector.php):
> failed to open stream: No such file or directory in
> /home/user/mediawiki-1.24.1/skins/zeddocs/ZedDocs.skin.php on line 9,
> referer: http://wpdev/w/index.php?title=Main_Page
>
> On line 9 of zeddocs/ZedDocs.skin.php I have/had :
>
> require_once( dirname( __FILE__ ) . '/../Vector.php' );
>
> If I set this to :
>
> require_once( dirname( __FILE__ ) . '/../Vector/Vector.php' );
This import line was meant to import the SkinVector and VectorTemplate
classes, but those are in something like Vector.skin.php not Vector.php.
However skin classes are now autoloaded (they weren't under the
autodiscovery method), so the line is actually pointless now and all you
do is remove it.

> I get error :
>
> [Tue Jan 13 16:38:50 2015] [error] [client 192.168.0.124] PHP Catchable
> fatal error:  Argument 1 passed to SkinVector::__construct() must
> implement interface Config, string given, called in
> /home/user/mediawiki-1.24.1/includes/Setup.php on line 285 and defined
> in /home/user/mediawiki-1.24.1/skins/Vector/SkinVector.php on line 38,
> referer: http://wpdev/w/index.php?title=Main_Page
Someone messed with the way Vector is loaded, which is now like this:

// Register skin
SkinFactory::getDefaultInstance()->register( 'vector', 'Vector', function(){
   $config = ConfigFactory::getDefaultInstance()->makeConfig( 'vector' );
   return new SkinVector( $config );
} );

// Register config
$GLOBALS['wgConfigRegistry']['vector'] = 'GlobalVarConfig::newInstance';

You'll need to adapt is for your skin since SkinVector expects one of
these config objects.

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]


_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to