Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fatal error: Class 'FileStyles' not found in /home/hoslot5/public_html/sites/all/modules/media_youtube/includes/media_youtube.styles.inc on line 129
Comments
Comment #1
cakka CreditAttribution: cakka commentedsame problem with me, i got :
Fatal error: Class 'FileStyles' not found in modules/media_youtube/includes/media_youtube.styles.inc on line 130
Comment #2
gosmart CreditAttribution: gosmart commentedSame here! (line 130)
Comment #3
effulgentsia CreditAttribution: effulgentsia commentedHow 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)?
Comment #4
bjlewis2 CreditAttribution: bjlewis2 commentedI 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.
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.
Comment #5
effulgentsia CreditAttribution: effulgentsia commentedThanks 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.