Last modified: 2007-01-30 19:37:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8831 - wrong order of includes
wrong order of includes
Product: MediaWiki extensions
Classification: Unclassified
Contributors (Other open bugs)
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-01-30 16:08 UTC by Augustin Machacek
Modified: 2007-01-30 19:37 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Augustin Machacek 2007-01-30 16:08:27 UTC
After I installed Contributors.php extension, I got following

Fatal error: Class 'IncludableSpecialPage' not found in
/domains1/lt618000/public/wiki/extensions/ on line 10

The problem was promptly solved by adding 
require_once( "includes/AutoLoader.php" );
at the top of LocalSettings.php. However, there must be some problem with the
order of includes.

I am using MediaWiki: 1.9.1, PHP: 5.1.4 (apache2handler) and MySQL: 5.0.22 .
Comment 1 Rob Church 2007-01-30 16:21:06 UTC
Please detail the method used to install the extension.
Comment 2 Daniel Kinzler 2007-01-30 16:24:57 UTC
i should have asked this when the probelem was reported on IRC... anyway: where
in your LocalSettings.php did you included Contributors.php? Custom settings and
extensions should always be at the *bottom* of LocalSettings.php.
Comment 3 Augustin Machacek 2007-01-30 16:44:50 UTC
This is the bottom of my LocalSettings.php:

# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
$wgCacheEpoch = max( $wgCacheEpoch, $configdate );

require_once( "extensions/Cite.php" );	
require_once( "extensions/Contributors.php" );	
require_once( "extensions/" );	
require_once( "extensions/Contributors.i18n.php" );	
require_once( "extensions/Expr.php" );
require_once( "extensions/ParserFunctions.php" );
require_once( "extensions/SprintfDateCompat.php" );

All extensions are located in extensions directory. I didn't make any further
modifications of these extensions nor original mediawiki files.
Comment 4 Rob Church 2007-01-30 19:37:56 UTC
(In reply to comment #3)
> require_once( "extensions/" );	
> require_once( "extensions/Contributors.i18n.php" );

Remove these lines. All extensions I write have only one entry point.

Note You need to log in before you can comment on or make changes to this bug.