Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16943

Composer error on installing extensions via catalog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.0-a1
    • 4.0.0-a1
    • ACP
    • None
    • PHP 8.0 / Windows 11
      PHP 8.1 / Ubuntu 18.04

      Composer throws error on attempt of installing any extension from catalog:

       

      Loading config file composer-ext.json (/var/www/html/40/composer-ext.json)
      Failed to initialize global composer: Composer could not find the config file: /var/www/html/40/store/composer/composer.json
       
      Cannot update only a partial set of packages without a lock file present. Run `composer update` to generate a lock file.
      

       

      Additionally, there's PHP warning on Ubuntu (not sure if it's related, probably just some permissions issue but composer-ext.json is set to 777):

      [phpBB Debug] PHP Warning: in file [ROOT]/vendor/composer/composer/src/Composer/Json/JsonFile.php on line 172: file_put_contents(composer-ext.json): Failed to open stream: Permission denied

       

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: