Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-16943

Composer error on installing extensions via catalog

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 4.0.0-a1
    • 4.0.0-a1
    • ACP
    • None
    • PHP 8.0 / Windows 11
      PHP 8.1 / Ubuntu 18.04

    Description

      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

       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: