Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Sync Files Causes "Internal Server Error" - linked to file extensions?


Go to End


2 Posts   1301 Views

Avatar
3pointross

Community Member, 19 Posts

13 September 2014 at 3:46am

I've just upgraded a clients site from 2.4 to 3.1.5 and I'm getting an internal server error when I try and sync the files through the SS admin.

Checking the error log I see:

[Fri Sep 12 08:42:11 2014] [error] [client 173.162.42.189] PHP Fatal error: Class 'MP3' not found in /framework/filesystem/Folder.php on line 128, referer: http://wwcsd.net/admin/assets/
[Fri Sep 12 08:42:16 2014] [error] [client 173.162.42.189] PHP Fatal error: Class 'FLV' not found in /framework/filesystem/Folder.php on line 128, referer: http://wwcsd.net/admin/assets/show/0

It appears to be related to specific file extensions. Oddly enough I can upload MP3 and FLV files without issue through the admin, it's just when trying to sync them.

I've tried adding the file extensions to my config.yml without luck.

Any direction would be awesome
-Ross

Avatar
dbenton

Community Member, 23 Posts

24 April 2015 at 11:33am

I had the same issue and was able to resolve it by changing all mp3s in the File database table from ClassName "MP3" to "File". For my database, that meant:

UPDATE `databasename`.`File` SET `ClassName` = REPLACE(`ClassName`, 'MP3', 'File') WHERE `ClassName` LIKE '%MP3%' COLLATE utf8_bin