Jump to content

Topic on Extension talk:SwiftMedia

Jwestyp (talkcontribs)

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

Aaron Schulz (talkcontribs)

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 Schulz (talkcontribs)

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.

96.228.72.32 (talkcontribs)

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

Aaron Schulz (talkcontribs)
Jwestyp (talkcontribs)

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

Reply to "Class Error"