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.
After installing brightcove 7.x-6.x-dev branch and brightcove PHP MAPI WRAPPER, Status page throws and error of "The Brightcove PHP Wrapper is missing."
Looking in code suggest that library_detect function trying to look for "PHP-API-WRAPPER" library.
Can someone confirm which library php-wrapper library is being used. I am trying using brightcove warpper for php https://github.com/BrightcoveOS/PHP-MAPI-Wrapper
Comment | File | Size | Author |
---|---|---|---|
#7 | Screen Shot 2015-09-18 at 9.22.42 am.png | 11.5 KB | jaydee1818 |
#5 | Screen Shot 2015-09-17 at 2.29.15 pm.png | 50.49 KB | jaydee1818 |
Comments
Comment #1
tariqinam CreditAttribution: tariqinam commentedComment #2
tariqinam CreditAttribution: tariqinam commentedOk, There is a different API library you need to use as defined in this commit http://cgit.drupalcode.org/brightcove/commit/?id=de01c76
download this repository https://github.com/brightcove/PHP-API-Wrapper and include in your /sites/all/libraries/PHP-API-Wrapper
Comment #3
tariqinam CreditAttribution: tariqinam commentedI have updated documentation page to use specific library for the 7.x-6.x branch
Comment #4
jaydee1818 CreditAttribution: jaydee1818 commentedI am also having this issue ... I have followed the advise above and used the recommended version of the PHP API Wrapper but I continue to get a white screen with the following message whenever I try to save an API Client:
Fatal error: Class 'Brightcove\API\Client' not found in /../sites/all/modules/contrib/brightcove/brightcove.client.inc on line 311
Comment #5
jaydee1818 CreditAttribution: jaydee1818 commentedJust further to that, if I open that file and look at line 311 in my IDE, it detects an "Undefined namespace" error (see attached image). If I look at other files in the module, this same error is repeated all over the place ... could it be possible the code that defines these namespaces is missing?
Comment #6
tamasd CreditAttribution: tamasd at Pronovix commentedFor the 7.x-6.x branch, you have to use the PHP-API-Wrapper, for earlier version you have to use the PHP-MAPI-Wrapper. Make sure that you have downloaded the latest PHP-API-Wrapper (0.3 at the moment), placed it under sites/all/libraries.
Comment #7
jaydee1818 CreditAttribution: jaydee1818 commentedThere seems to be an issue with the PHP-API-Wrapper version. I have downloaded this version: https://github.com/brightcove/PHP-API-Wrapper/archive/0.3.tar.gz
The Status page reports it as successfully installed but using 0.1 (see attached)
Is the right library definitely being served from that github address?
Comment #8
jaydee1818 CreditAttribution: jaydee1818 commentedOK - got it working ... I think that version is being mis-reported in the status page
Comment #9
tamasd CreditAttribution: tamasd at Pronovix commentedComment #10
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commented