Fatal error: Class 'FileStyles' not found in /home/hoslot5/public_html/sites/all/modules/media_youtube/includes/media_youtube.styles.inc on line 129


cakka’s picture

Assigned: Unassigned » cakka
Priority: Normal » Critical

same problem with me, i got :

Fatal error: Class 'FileStyles' not found in modules/media_youtube/includes/media_youtube.styles.inc on line 130

gosmart’s picture

Same here! (line 130)

effulgentsia’s picture

How do you trigger this error? Is it from a fresh Drupal install, or an update? Which versions of Styles and Media modules are you using? If this was caused during an update, what versions were you updating from? When does the error occur (what page)?

bjlewis2’s picture

I got this error immediately after installing the module using the dev versions of all the modules. When I clicked the button to save changes (enable modules) I got a white screen with this message.

Fatal error: Class 'FileStyles' not found in /Users/Brian/Sites/lhpdrupal/sites/all/modules/media_youtube/includes/media_youtube.styles.inc on line 129

If I hit refresh I am taken back to the modules list page, with no errors. Every time I enable new modules though, I get this error again.

effulgentsia’s picture

Status: Active » Fixed

Thanks for the info. I was able to reproduce the problem when Styles and Styles UI is enabled, but File Styles is not, which is now possible, because the dev version of Media no longer requires Styles. Fixed this bug by moving MediaYouTubeStyles class definition to its own file (see commit http://drupalcode.org/project/media_youtube.git/commitdiff/14db851?hp=e9...), which should not get invoked unless File Styles module is enabled. So now, whether or not File Styles module is enabled, this bug shouldn't happen.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.