Thread:User talk:Aaron Schulz/SwiftMedia using Rackspace Cloud Files/reply (17)

Aaron,

I grabbed the files and put them in place. I also copied your config from above and get an error that wgSwiftConf is undefined when loading the Special:Upload page and I get a blank screen. The following error repeats several times:
 * Notice: Undefined variable: wgSwiftConf in /var/www/html/mediawiki/LocalSettings.php on line 157
 * [Tue May 15 15:44:30 2012] [error] [client 96.228.72.32] PHP Stack trace:
 * [Tue May 15 15:44:30 2012] [error] [client 96.228.72.32] PHP  1. {main} /var/www/html/mediawiki/index.php:0
 * [Tue May 15 15:44:30 2012] [error] [client 96.228.72.32] PHP  2. require /var/www/html/mediawiki/index.php:54
 * [Tue May 15 15:44:30 2012] [error] [client 96.228.72.32] PHP  3. require_once /var/www/html/mediawiki/includes/WebStart.php:134

I then get these errors as well:
 * PHP Fatal error: Class 'FileBackendStoreOpHandle' not found in /var/www/html/mediawiki/includes/filerepo/backend/SwiftFileBackend.php on line 1179, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP Stack trace:, referer:*url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP  1. {main} /var/www/html/mediawiki/index.php:0, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP  2. MediaWiki->run /var/www/html/mediawiki/index.php:58, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP  3. MediaWiki->main /var/www/html/mediawiki/includes/Wiki.php:502, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP  4. MediaWiki->performRequest /var/www/html/mediawiki/includes/Wiki.php:592, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP  5. SpecialPageFactory::executePath /var/www/html/mediawiki/includes/Wiki.php:263, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP  6. SpecialUpload->execute /var/www/html/mediawiki/includes/SpecialPageFactory.php:493, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP  7. SpecialUpload->getUploadForm /var/www/html/mediawiki/includes/specials/SpecialUpload.php:181, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP  8. SpecialUpload->getWatchCheck /var/www/html/mediawiki/includes/specials/SpecialUpload.php:220, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP  9. wfLocalFile /var/www/html/mediawiki/includes/specials/SpecialUpload.php:515, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 10. RepoGroup->getLocalRepo /var/www/html/mediawiki/includes/GlobalFunctions.php:3600, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 11. RepoGroup->getRepo /var/www/html/mediawiki/includes/filerepo/RepoGroup.php:298, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 12. RepoGroup->initialiseRepos /var/www/html/mediawiki/includes/filerepo/RepoGroup.php:266, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 13. RepoGroup->newRepo /var/www/html/mediawiki/includes/filerepo/RepoGroup.php:336, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 14. FileRepo->__construct /var/www/html/mediawiki/includes/filerepo/RepoGroup.php:348, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 15. FileBackendGroup->get /var/www/html/mediawiki/includes/filerepo/FileRepo.php:79, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 16. AutoLoader::autoload /var/www/html/mediawiki/includes/filerepo/FileRepo.php:0, referer: *url removed*/mediawiki/index.php/Main_Page
 * [Tue May 15 15:44:35 2012] [error] [client 96.228.72.32] PHP 17. require /var/www/html/mediawiki/includes/AutoLoader.php:1032, referer: *url removed*/mediawiki/index.php/Main_Page

Here is my config with private info removed.


 * /*Swift Backend Config*/
 * require( "$IP/extensions/SwiftCloudFiles/SwiftCloudFiles.php" );
 * $wgFileBackends[] = array(
 * 'name'              => 'localSwift',
 * 'class'             => 'SwiftFileBackend',
 * 'wikiId'            => 'Development-Wiki',
 * 'lockManager'       => 'fsLockManager',
 * 'swiftAuthUrl'      => $wgSwiftConf['http://docs.rackspacecloud.com/auth/api/v1.1'],
 * 'swiftUser'         => $wgSwiftConf['removed'],
 * 'swiftKey'          => $wgSwiftConf['removed'],
 * #'swiftProxyUser'    => 'test:anon',
 * 'shardViaHashLevels' => array(
 * 'local-public' => array( 'levels' => 2, 'base' => 16, 'repeat' => true ),
 * 'local-thumb'  => array( 'levels' => 2, 'base' => 16, 'repeat' => true ),
 * 'local-deleted' => array( 'levels' => 2, 'base' => 36, 'repeat' => false )
 * #'readOnly'          => 'Temporary planned maintenence for 5 min',
 * 'fileJournal'       => array( 'class' => 'DBFileJournal', 'wiki' => false ),
 * 'parallelize'       => 'implicit'
 * $wgLocalFileRepo = array(
 * 'class'            => 'LocalRepo',
 * 'name'             => 'local',
 * 'backend'          => 'localSwift',
 * 'scriptDirUrl'     => $wgScriptPath,
 * 'scriptExtension'  => $wgScriptExtension,
 * 'url'              => 'http://localhost/var/www/html/mediawiki/media',
 * 'hashLevels'       => 3,
 * 'transformVia404'  => true,
 * 'deletedHashLevels' => 3
 * /*End Swift Backend Config*/
 * 'deletedHashLevels' => 3
 * /*End Swift Backend Config*/
 * /*End Swift Backend Config*/

I searched the other files for a reference to wgSwiftConf and am not sure where the variable is defined.

Thanks Justin