Extension talk:SwiftMedia
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| Class Error | 5 | 02:11, 3 May 2012 |
Good morning Russ/all,
I am having an error with the classes
Here is my LocalSettings.php section:
-
- SwiftMedia Config#
$wgLocalFileRepo = array ( 'class' => 'SwiftRepo', 'name' => 'local', 'user' => '#Removed for privacy', 'key' => '#Removed for privacy', 'authurl' => 'https://auth.api.rackspacecloud.com/v1.0/', 'container' => 'apachewikifiles', 'scriptDirUrl' => $wgScriptPath, 'scriptExtension' => $wgScriptExtension, 'url' => $wgUploadBaseUrl ? $wgUploadBaseUrl . $wgUploadPath : $wgUploadPath, 'hashLevels' => $wgHashedUploadDirectory ? 2 : 0, 'transformVia404' => !$wgGenerateThumbnailOnParse, 'deletedHashLevels' => 3 );
- End SwiftMedia#
I am receiving an error: PHP Fatal error: Class 'SwiftRepo' not found in /var/www/html/mediawiki/includes/filerepo/RepoGroup.php on line 345, referer: http://mydomain.com/mediawiki/index.php/Main_Page
I followed your instructions and am at a loss. Do you have any suggestions?
Thanks Justin MediaWiki 1.18.2 / CentOS 6
Dont use SwiftMedia. I wouldn't try to use swift until 1.20. I don't think it's possible at all in 1.18.
To be clear, you'd be using SwiftFileBackend in the core code (via $wgLocalFileRepo and $wgFileBackend settings). I suppose even MW 1.19 could use swift.
Aaron,
Thank you for the reply. Based on the use case in the extension page, I was assuming it would work with 1.18. Could you expand more on the swift file backend, please? Over the next week or two, I would like to attempt to make this system work using the rackspace cloud files as the upload and media store.
Thanks again. Justin
For now, you can read the comments for $wgFileBackend and $wgLocalFileRepo in DefaultSettings.php. Also, have a look at how http://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php handles those vars. Which will be getting changed with Swift.