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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10831, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8831 - wrong order of includes
wrong order of includes
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Contributors (Other open bugs)
unspecified
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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/Contributors.page.php 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/Contributors.page.php" );	
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/Contributors.page.php" );	
> 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.


Navigation
Links