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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tariqinam’s picture

Issue summary: View changes
tariqinam’s picture

Ok, 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

tariqinam’s picture

Status: Active » Closed (fixed)

I have updated documentation page to use specific library for the 7.x-6.x branch

jaydee1818’s picture

Status: Closed (fixed) » Active

I 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

jaydee1818’s picture

Just 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?

tamasd’s picture

Category: Bug report » Support request
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

For 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.

jaydee1818’s picture

There 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?

jaydee1818’s picture

OK - got it working ... I think that version is being mis-reported in the status page

tamasd’s picture

Status: Postponed (maintainer needs more info) » Fixed
jan.mashat’s picture

Status: Fixed » Closed (fixed)