Wenn ich das hier alles so lese, muss ich erstmal ein DANKE an Spooky für seine Geduld und Hilfsbereitschaft geben!
Bisher hab ich alle meine Composer-Probleme selbst lösen können, aber bei einem Web dreh ich mich im Kreis. Im Backend->Composer kommt:
Code:
Fatal error: Uncaught exception BadMethodCallException with message Entry res/cacert.pem does not exist
Ok - erster Gedanke: Composer aktualisieren
Code:
su - benutzer
php composer.phar self-update
Bringt leider nichts. Immernoch der gleiche Fehler. Also habe ich mal die composer.phar runtergeladen und per PHPStorm reingeschaut. Und siehe da: res/cacert.pem ist da
Ok, dann mal ein Update per Konsole:
Code:
php composer.phar update
Fehler! Ok, da muss noch was im Cache sein: manuell gelöscht
Code:
rm -R composer/cache/*
Aha, und in der composer.json ist auch noch eine alter Composer-Client drin (0.12) - geändert in >=0.16.3.0
Testweise mal ein Composer-Update per Konsole gemacht - schon wieder ein Fehler.
Ok, diesmal alles in composer/cache und composer/vendor gekillt und ein php composer.phar install gestartet:
Code:
...
Warning: Contao core was about to get installed but has been found in project root, to recover from this problem please restart the operation
Jaja, ok. Dann halt nochmal:
Code:
~/htdocs/contao/composer $ php composer.phar install
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing leafo/scssphp (v0.6.3)
- Removing michelf/php-markdown (1.6.0)
- Removing oyejorge/less.php (v1.7.0.10)
- Removing phpspec/php-diff (v1.1.0)
- Removing simplepie/simplepie (1.4)
- Removing swiftmailer/swiftmailer (v5.4.1)
- Removing tecnick.com/tcpdf (6.2.11)
- Removing true/punycode (1.1.0)
- Removing contao-components/compass (0.12.2)
- Installing contao-community-alliance/composer-client (0.16.3)
Downloading: 100%
- installed 110 files
- Installing dklemmt/contao_dk_mmenu (1.5.1)
Downloading: 100%
- installed 60 files
- Installing jrgregory/m17-sticky-backend-footer (2.0.5)
Downloading: 100%
- installed 6 files
- Installing bugbuster/backend_user_online (3.2.0)
Downloading: 100%
- installed 16 files
- Installing contao-legacy/backupdb (3.2.2.9013)
Downloading: 100%
- installed 50 files
- not overwriting already present userfile /var/www/web14/htdocs/contao/files/AutoBackupDB/.htaccess
- Installing menatwork/contao-multicolumnwizard (3.3.4)
Downloading: 100%
- installed 19 files
- Installing felixpfeiffer/subcolumns (3.1.6)
Downloading: 100%
- installed 85 files
- Installing stefansl/divider (1.2.2)
Downloading: 100%
- installed 18 files
- Installing terminal42/contao-changelanguage (2.2.11)
Downloading: 100%
- installed 28 files
- Installing terminal42/contao-easy_themes (2.1.3)
Downloading: 100%
- installed 24 files
Writing lock file
Generating autoload files
Runonce created with 2 updates
Clean contao internal config cache
Clean contao internal dca cache
Clean contao internal language cache
Clean contao internal sql cache
Aha! Dann mal zum Test ein php composer.phar update
Code:
~/htdocs/contao/composer $ php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
Clean contao internal config cache
Clean contao internal dca cache
Clean contao internal language cache
Clean contao internal sql cache
Sehr gut. Also ab ins Backend, internen Cache löschen und auf zum Composer:
Code:
Fatal error: Uncaught exception BadMethodCallException with message Entry res/cacert.pem does not exist
Greift der auf einen anderen composer zu? res/cacert.pem ist doch da. und die benutzerrechte stimmen auch. Global ist der Composer jedenfalls auf der Maschine nicht installiert.
Btw. meine composer.json:
PHP-Code:
{
"name": "local/website",
"description": "A local website project",
"type": "project",
"license": "proprietary",
"require": {
"bugbuster/backend_user_online": ">=3.2.0.0,<3.3-dev",
"contao-community-alliance/composer-client": ">=0.16.3.0",
"contao-legacy/backupdb": "~3.2",
"dklemmt/contao_dk_mmenu": ">=1.5.1.0,<1.6-dev",
"felixpfeiffer/subcolumns": ">=3.1.4.0,<3.2-dev",
"jrgregory/m17-sticky-backend-footer": ">=2.0.5.0,<2.1-dev",
"stefansl/divider": ">=1.2.1.0,<1.3-dev",
"terminal42/contao-changelanguage": ">=2.2.9.0,<2.3-dev",
"terminal42/contao-easy_themes": ">=2.1.2.0,<2.2-dev"
},
"prefer-stable": true,
"minimum-stability": "dev",
"config": {
"preferred-install": "dist",
"cache-dir": "cache",
"component-dir": "../assets/components"
},
"repositories": [
{
"type": "composer",
"url": "https://legacy-packages-via.contao-community-alliance.org/"
},
{
"type": "artifact",
"url": "packages"
}
],
"extra": {
"contao": {
"migrated": "done"
}
}
}
Lesezeichen