After upgrading from mediawiki 1.12.0 to 1.13.0 using webapp-config, I am unable to run the mediawiki update script (wiki/maintenance/update.php). The first error is: thor wiki # php maintenance/update.php Warning: AutoLoader::require(/raid/www/danlandonline.net/htdocs/wiki/includes/parser/Parser.php): failed to open stream: No such file or directory in /raid/www/danlandonline.net/htdocs/wiki/includes/AutoLoader.php on line 507 Fatal error: AutoLoader::require(): Failed opening required '/raid/www/danlandonline.net/htdocs/wiki/includes/parser/Parser.php' (include_path='/raid/www/danlandonline.net/htdocs/wiki:/raid/www/danlandonline.net/htdocs/wiki/includes:/raid/www/danlandonline.net/htdocs/wiki/languages') in /raid/www/danlandonline.net/htdocs/wiki/includes/AutoLoader.php on line 507 After installing the includes/parser/* files from the mediawiki-1.13.0.tar.gz distfile, I get the following error: thor wiki # php maintenance/update.php MediaWiki 1.13.0 Updater Warning: AutoLoader::require(/raid/www/danlandonline.net/htdocs/wiki/includes/db/Database.php): failed to open stream: No such file or directory in /raid/www/danlandonline.net/htdocs/wiki/includes/AutoLoader.php on line 507 Fatal error: AutoLoader::require(): Failed opening required '/raid/www/danlandonline.net/htdocs/wiki/includes/db/Database.php' (include_path='/raid/www/danlandonline.net/htdocs/wiki:/raid/www/danlandonline.net/htdocs/wiki/includes:/raid/www/danlandonline.net/htdocs/wiki/languages') in /raid/www/danlandonline.net/htdocs/wiki/includes/AutoLoader.php on line 507 After installing includes/db/* from the installation tarball, the update script worked successfully. This is not the first time the mediawiki ebuild has been broken due to not installing all distributed files. Can you PLEASE just install everything that comes with the installation tarball? At least add a USE flag option to install all files. To fix this particular bug, please add include/parser/* and include/db/* to the ebuild's list of installed files. Reproducible: Always Steps to Reproduce: 1. Install mediawiki 1.12.0 2. Update to mediawiki 1.13.0 3. Run wiki/maintenance/update.php Actual Results: Fails to find all php files required for the update.php script. Expected Results: Run the update.php script successfully.
Also missing wiki/includes/specials/* from install. Needed to access "server.example.com/wiki/index.php/Special:Specialpages".
Same error. If manually unpack sources, necessary files can be found: # ls db/* db/DatabaseMssql.php db/Database.php db/DatabaseSqlite.php db/LBFactory.php db/LoadMonitor.php db/DatabaseOracle.php db/DatabasePostgres.php db/LBFactory_Multi.php db/LoadBalancer.php But in webapps directory they not exists.
*** Bug 238657 has been marked as a duplicate of this bug. ***
I hate to "me too", but my mediawiki install just broke :P
I'm going to fix this in mediawiki-1.13.1 but since I need a bit more time to test new ebuild currently I've masked mediawiki-1.13.0.
The easiest fix seems to be to add the following directories to the DIRS array: includes/db includes/parser includes/specials maintenance/sqlite skins/common/images/ar skins/common/images/be-tarask skins/common/images/cyrl and to remove the following directory: skins/htmldump
Fixed in mediawiki-1.13.1. Easiest fix is not the best fix ;) In this case I've changed installation procedure and now we selectively remove unnecessary files instead of selectively install them - this helps to avoid bugs like this in future. Also added postupgrade instructions as I found that some people are unaware how to upgrade MediaWiki... Thank you for patience and Enjoy.