drupal-tome / tome-docker

Contains a Docker image for Tome, published to Docker Hub at mortenson/tome
1 stars 3 forks source link

Image is currently broken due to PHP version #3

Open elgandoz opened 1 year ago

elgandoz commented 1 year ago

Running the install snippet on a local environment (docker run --rm -it -v "$(pwd)":/var/www/tome mortenson/tome init) results in an error:

The command "/usr/local/bin/drush tome:export --yes --uri=default --root=/var/www/tome/web" failed.        

  Exit Code: 1(General error)                                                                                

  Working directory:                                                                                         

  Output:                                                                                                    
  ================                                                                                           
  ParseError: syntax error, unexpected '|', expecting ';' or '{' in Composer\  
  Autoload\includeFile() (line 37 of /var/www/tome/web/modules/contrib/tome/modules/tome_sync/src/Normalize  
  r/EntityReferenceRevisionItemNormalizer.php).           

I believe this is also the reason why spinning an instance of https://github.com/drupal-tome/tome-project with Gitpod (or anything using this repo image) results with a loading screen stuck (I couldn't find any log).

I believe it has to do with the PHP version (7.4) being too low for the latest Drupal 9.5.x (although this doesn't happen with the Netifly job).

This has also been flagged on the Drupal module page: https://www.drupal.org/project/tome/issues/3359312

The current version of Drupal 9 should run on PHP 8.1 https://www.drupal.org/docs/getting-started/system-requirements/php-requirements#versions

Screenshot 2023-07-29 at 00 41 54
kburakozdemir commented 2 months ago

I think that this issue is no longer relevant because this commit https://github.com/drupal-tome/tome-docker/commit/9703bbe244c32de48bea682940ac1d678d65d5b5 had upgraded the PHP version.