Hallo!
Da ich zu meinem ersten Problem bei meiner Suche nur hierauf gestoßen bin und zu dem anderen Fehler keine Infos gefunden habe, erstelle ich mal einen neuen Beitrag.
1. Lokal: Keine Installation mit https
Bei der Installation des Composers in einem frischen Contao 3.1.0 (mit „Easy Company“-Template) kam nach der Aktivierung der Fehlerausgabe folgende Meldung:
Kann ich folgende Codeänderung problemlos vornehmen? Mit dieser scheint wohl alles einwandfrei zu laufen.Code:Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Downloader.php on line 52 #0 [internal function]: __error(2, 'file_get_conten...', 'D:\xampp\htdocs...', 52, Array) #1 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Downloader.php(52): file_get_contents('https://getcomp...') #2 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Downloader.php(24): ContaoCommunityAlliance\Contao\Composer\Downloader::fgetDownload('https://getcomp...', 'D:\xampp\htdocs...') #3 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Runtime.php(114): ContaoCommunityAlliance\Contao\Composer\Downloader::download('https://getcomp...', 'D:\xampp\htdocs...') #4 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\ClientBackend.php(234): ContaoCommunityAlliance\Contao\Composer\Runtime::updateComposer() #5 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\ClientBackend.php(117): ContaoCommunityAlliance\Contao\Composer\ClientBackend->loadComposer() #6 […]\system\modules\core\classes\Backend.php(266): ContaoCommunityAlliance\Contao\Composer\ClientBackend->generate() #7 […]\contao\main.php(129): Contao\Backend->getBackendModule('composer') #8 […]\contao\main.php(271): Main->run() #9 {main} Warning: file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: Invalid argument in […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Downloader.php on line 52 #0 [internal function]: __error(2, 'file_get_conten...', 'D:\xampp\htdocs...', 52, Array) #1 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Downloader.php(52): file_get_contents('https://getcomp...') #2 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Downloader.php(24): ContaoCommunityAlliance\Contao\Composer\Downloader::fgetDownload('https://getcomp...', 'D:\xampp\htdocs...') #3 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Runtime.php(114): ContaoCommunityAlliance\Contao\Composer\Downloader::download('https://getcomp...', 'D:\xampp\htdocs...') #4 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\ClientBackend.php(234): ContaoCommunityAlliance\Contao\Composer\Runtime::updateComposer() #5 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\ClientBackend.php(117): ContaoCommunityAlliance\Contao\Composer\ClientBackend->loadComposer() #6 […]\system\modules\core\classes\Backend.php(266): ContaoCommunityAlliance\Contao\Composer\ClientBackend->generate() #7 […]\contao\main.php(129): Contao\Backend->getBackendModule('composer') #8 […]\contao\main.php(271): Main->run() #9 {main} Fatal error: Uncaught exception UnexpectedValueException with message internal corruption of phar "[…]\composer\composer.phar" (truncated entry) thrown in […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Runtime.php on line 376 #0 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\Runtime.php(376): Phar->__construct('D:\xampp\htdocs...') #1 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\ClientBackend.php(239): ContaoCommunityAlliance\Contao\Composer\Runtime::registerComposerClassLoader() #2 […]\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\ClientBackend.php(117): ContaoCommunityAlliance\Contao\Composer\ClientBackend->loadComposer() #3 […]\system\modules\core\classes\Backend.php(266): ContaoCommunityAlliance\Contao\Composer\ClientBackend->generate() #4 […]\contao\main.php(129): Contao\Backend->getBackendModule('composer') #5 […]\contao\main.php(271): Main->run() #6 {main}
In der Datei „[…]\system\modules\!composer\ContaoCommunityAlliance\ Contao\Composer\Downloader.php“
in Zeile 112 das „s“ in „https“ entfernen:
Hängt dies eventuell damit zusammen, dass die Installation lokal vorliegt (Xampp, Windows)?Code:$url = 'https://getcomposer.org/composer.phar';
2. Online: Datei/Ordner-Fehlermeldung
In den entsprechenden Zeilen wird auf „COMPOSER_DIR_ABSOULTE“ verwiesen.Code:Nach der Installation bei meiner Online-Contao-Installation erscheint folgender Fehler oben auf allen Seiten: Warning: file_put_contents([…]/composer/.htaccess): failed to open stream: No such file or directory in system/modules/!composer/ContaoCommunityAlliance/Contao/Composer/Runtime.php on line 61 #0 [internal function]: __error(2, 'file_put_conten...', '/[…]...', 61, Array) #1 system/modules/!composer/ContaoCommunityAlliance/Contao/Composer/Runtime.php(61): file_put_contents('[…]...', 'initialize() #5 system/initialize.php(139): Contao\Config::getInstance() #6 index.php(18): require('[…]...') #7 {main} Warning: file_put_contents([…]/composer/composer.json): failed to open stream: No such file or directory in system/modules/!composer/ContaoCommunityAlliance/Contao/Composer/Runtime.php on line 85 #0 [internal function]: __error(2, 'file_put_conten...', '[…]...', 85, Array) #1 system/modules/!composer/ContaoCommunityAlliance/Contao/Composer/Runtime.php(85): file_put_contents('[…]...', '{?? "name": ...') #2 system/cache/config/config.php(483): ContaoCommunityAlliance\Contao\Composer\Runtime::initialize() #3 system/modules/core/library/Contao/Config.php(134): include('[…]...') #4 system/modules/core/library/Contao/Config.php(112): Contao\Config->initialize() #5 system/initialize.php(139): Contao\Config::getInstance() #6 index.php(18): require('[…]...') #7 {main}
Weiß jemand Rat? Vielen Dank im Voraus.
Lesezeichen