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.
Just installing Brightcove module and changing to the correct ownership causes error running Drush
public_html/sites/all/modules/contrib]# drush cc all
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: syntax error, unexpected '[' in
/home/brite/public_html/sites/all/modules/contrib/brightcove/brightcove.install,
line 12
Parse error: syntax error, unexpected '[' in /home/brite/public_html/sites/all/modules/contrib/brightcove/brightcove.install on line 12
Php 7.6.30
Drupal 7.54
Drush 7.4
all dependencies Installed
Bootstrap Theme
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedweavingmedia created an issue. See original summary.
Comment #2
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commentedAssuming that by "Php 7.6.30" you're referring to php 5.6.30 and by "correct ownership" you mean enabling all permissions on the API - I wasn't able to reproduce your issue within this docker container: https://github.com/janmashat/docker-drupal7-brightcove6
The docker container defaults to the stable version of the brightcove module, but you had indicated 7.x-6.x-dev in the issue metadata - so I made this modification (before running docker build) to grab the latest dev release:
I ran the first cache-clear before adding an API client, and the 2nd one after adding it:
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedEven with clearing the Caches we are still getting the same error.
We used the latest stable release to get the API Wrapper to successfully install.
Ae are using Drush 7.4 is this an issue?
Any ideas?
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #5
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commentedDoes that mean my assumptions above were correct?
Maybe you can try with drush 8.1.11 to see if that's the culprit.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedI am still running drupal 6 on a few sites so I cannot update Drush for another month.
Comment #7
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commentedDrush 8 should be compatible with Drupal 6 according to http://docs.drush.org/en/master/install/
Comment #8
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commented