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 updating the Brightcove Connect module to version 7.x-6.5, I am getting a fatal error.
I note this message in my log:
Fatal error: Access to undeclared static property: Brightcove\API\Client::$consumer in /my-site/sites/all/modules/brightcove/brightcove.module on line 113
Comments
Comment #2
tamasd CreditAttribution: tamasd at Pronovix commentedWhat is your wrapper version? Make sure that you update to the latest wrapper release.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI updated to the 1.0 PHP-API-Wrapper, as well as trying 0.8. We're getting 500 errors when trying to add a client and the module won't recognize the API client after.
Comment #4
tamasd CreditAttribution: tamasd at Pronovix commentedYou can see here that this property is declared: https://github.com/brightcove/PHP-API-Wrapper/blob/1.0/lib/Brightcove/AP...
Have you ran composer install, so that the autoload file is generated?
Comment #5
jaydee1818 CreditAttribution: jaydee1818 commentedI haven't tried updating the version of the PHP-API-Wrapper as there was no mention of doing so in the Release Notes, which at best could be described as minimalist.
Comment #6
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commentedI've added the 7.x-6.5 wrapper requirement under Dependencies on the project page, and the installation/upgrade guides can be found here: https://www.drupal.org/docs/7/modules/brightcove/brightcove-7x-6x