Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello I'm using:
Drupal: 7.16
Media: 7.x-2.0-unstable6
Media Browser Plus: 7.x-2.x-dev from 19. October
after Updating to the newest Version of Media Browser Plus i always get this Error if i try to add a Media with the WYSIWYG Button:
Fatal error: Cannot instantiate abstract class MediaBrowserLibrary in /www/htdocs/XXXX/sites/all/modules/media/includes/media.browser.inc on line 76
It's also described in this: #1818000: Fatal Error after upgrade to 7.16 Issue.
I think it's a MBP issue, caused by this patch: #1804570: "Library plus" is not functioning
Hope for Help :)
Comment | File | Size | Author |
---|---|---|---|
#4 | media_browser_plus-1820876-cannot_instantiate_abstract-4.patch | 688 bytes | firebird |
#3 | media_browser_plus-1820876-cannot_instantiate_abstract-3.patch | 535 bytes | firebird |
Comments
Comment #1
Nightwalker3000 CreditAttribution: Nightwalker3000 commentedI've now found a Workaround by partially revert the Commit from 18. October:
Override the whole file:
sites/all/modules/media_browser_plus/includes/MediaBrowserPlusLibrary.inc
with this Code:
We're deleting the the compatible for the newest MediaBrowserPlugin class but Media Works again :)
If you not Copy/Paste from above, take care that the Class decleration must be change from:
class MediaBrowserPlusLibrary extends MediaBrowserLibrary
to:
class MediaBrowserPlusLibrary extends MediaBrowserPlugin
Comment #2
TechNikh CreditAttribution: TechNikh commentedI fixed my issue by modifying MediaBrowserPlusLibrary.inc code with
Comment #3
firebird CreditAttribution: firebird commentedHere's the change from #1 rolled into a patch.
Comment #4
firebird CreditAttribution: firebird commentedOops. Try this one instead.
Comment #5
JimmyAx CreditAttribution: JimmyAx commentedBumping this one as it prevents attaching any media.
The patch in #4 applies fine and solves the problem for me. Looks RTBC.
Comment #6
kbasarab CreditAttribution: kbasarab commentedI had this same error without using the WYSIWYG option. In my case it happened when opening the Media Browser directly from the Select Media button. Patch in #4 applied and resolved error for me as well.
Comment #7
salvis