Extension talk:SwiftMedia

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
Class Error502:11, 3 May 2012

Class Error

Good morning Russ/all,

I am having an error with the classes

Here is my LocalSettings.php section:

    1. 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 );

  1. 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

Jwestyp (talk)16:41, 25 April 2012

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.

Aaron (talk)20:40, 26 April 2012
 

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 (talk)22:53, 28 April 2012

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

96.228.72.3201:48, 29 April 2012
Edited by author.
Last edit: 02:11, 3 May 2012

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.

Aaron (talk)20:30, 2 May 2012

Aaron,

Thanks for the reply. I will be installing 1.19 onto a development server and working on the swift integration myself. I will move any discussion over to the swift media page discussion tab.

Thanks again. Justin

Jwestyp (talk)20:34, 2 May 2012
 
 
 
 
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox