Kommentiere die betroffene Zeile in der system/modules/dependency-container/config/config.php einfach aus und führe "Pakete aktualisieren" noch einmal aus. Danach den Kommentar entfernen. Das sollte gehen.
Kommentiere die betroffene Zeile in der system/modules/dependency-container/config/config.php einfach aus und führe "Pakete aktualisieren" noch einmal aus. Danach den Kommentar entfernen. Das sollte gehen.
Hab ich gemacht, nur bis zu "Pakete aktualisieren" komme ich nicht. Jetzt erscheint Backend und Frontend diese Meldung:
PHP-Code:
Warning: in_array() expects parameter 2 to be array, null given in system/modules/core/library/Contao/System.php on line 110
#0 [internal function]: __error(2, 'in_array() expe...', '/kunden/...', 110, Array)
#1 system/modules/core/library/Contao/System.php(110): in_array('getInstance', NULL)
#2 system/modules/core/library/Contao/Template.php(270): Contao\System->import('ThemePlus\Theme...')
#3 system/modules/core/classes/BackendTemplate.php(37): Contao\Template->parse()
#4 system/modules/core/classes/BackendTemplate.php(149): Contao\BackendTemplate->parse()
#5 contao/index.php(115): Contao\BackendTemplate->output()
#6 contao/index.php(124): Index->run()
#7 {main}
Fatal error: Class 'ThemePlus\ThemePlus' not found in /kunden/.../.../.../system/modules/core/library/Contao/System.php on line 110
Argh, warum zerschießt Composer in letzter Zeit eigentlich immer öffters die autoload Informationen?
Kommentiere mal den Hook hier aus https://github.com/bit3/contao-theme...config.php#L48
die sollte bei dir in system/modules/theme-plus/config/config.php zu finden sein.
Puh, danke, reanimiert.
Soll ich die Auskommentierung wieder entfernen?
Hallo zusammen,
Ich kann auch keine Erweiterungen installieren.
Hat jemand eine Idee?
Du hast, warum auch immer, das Composer-Plugin in der Version 2.0 installiert. Geh mal in die composer.json im Ordner composer/ und schreibe mir hier mal den ganzen Inhalt. Dann lösch ich dir die entsprechenden Zeilen weg und liefer dir die neuen benötigten Zeilen die du stattdessen einfügen musst. Das musst du leider einmal manuell machen, danach gehts wieder via Klicki Bunti im Backend.
Hast du in den Einstellungen die Option "Minimale Stabilität" geändert?
Für das Plugin musst du aktuell auf "Entwickler Releases" gehen, "Stabile Pakete bevorzugen" sollte dann auch aktiviert sein.
Oder klick im Backend im Composer auf "Einstellungen" und dann "Expertenmodus". Den Inhalt kannst du auch nehmen, ist nur ein anderer Weg zur Information.
Was mich grad wundert ist, warum sind Installer UND Plugin installiert
Kannst du vorher mal deine composer.json und composer.lock posten, bevor du was änderst!
composer.json
Danke dir. Steht auf "Entwickler Release" / stabile Versionen bevorzugen. /ArchivCode:{ "name": "local/website", "description": "A local website project", "type": "project", "license": "proprietary", "require": { "contao-legacy/theme_plus": "4.2.0.9002", "contao-legacy/gallery_creator": "4.4.0.9010", "contao-community-alliance/composer-installer": "1.7.1.0", "menatwork/semantic_html5": "1.1.12.0", "contao-community-alliance/composer": "0.9.0.0-beta6", "contao-community-alliance/composer-plugin": "2.0.0.0-beta2", "contao-legacy/metapalettes": "1.5.1.9002", "contao-legacy/multicolumnwizard": "3.1.0.9003", "contao-legacy/twig": "1.6.2.9006", "menatwork/contao-multicolumnwizard": "3.1.0.0" }, "minimum-stability": "dev", "prefer-stable": true, "config": { "preferred-install": "dist", "cache-dir": "cache" }, "repositories": [ ], "extra": { "contao": { "migrated": "done", "version-locks": { "contao-community-alliance/composer-plugin": "2.0.0.0@beta", "contao-community-alliance/composer": "0.8.13.0", "contao-legacy/gallery_creator": ">=4.6.0.9023,<4.7-dev", "contao-legacy/theme_plus": "4.2.0.9002", "contao-legacy/metapalettes": null, "contao-legacy/multicolumnwizard": null } } } }
composer.lock
Code:{ "_readme": [ "This file locks the dependencies of your project to a known state", "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" ], "hash": "4ee03adf5e96632376779d113eed6692", "packages": [ { "name": "contao-community-alliance/composer", "version": "0.9-beta6", "source": { "type": "git", "url": "https://github.com/contao-community-alliance/composer.git", "reference": "f85f8dafa76673ee1c858317813c0e9bca452721" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/contao-community-alliance/composer/zipball/f85f8dafa76673ee1c858317813c0e9bca452721", "reference": "f85f8dafa76673ee1c858317813c0e9bca452721", "shasum": "" }, "require": { "contao-community-alliance/composer-plugin": "~2", "contao/core": ">=2.11", "php": ">=5.3.4" }, "type": "contao-module", "extra": { "contao": { "sources": { "src/system/modules/!composer": "system/modules/!composer" } }, "branch-alias": { "dev-master": "0.8.x-dev", "dev-develop": "0.9.x-dev" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPLv3" ], "authors": [ { "name": "Tristan Lins", "email": "tristan.lins@bit3.de", "homepage": "http://bit3.de", "role": "Developer" }, { "name": "Christian Schiffler", "email": "c.schiffler@cyberspectrum.de", "homepage": "http://www.cyberspectrum.de", "role": "Developer" }, { "name": "Dominik Zogg", "email": "dominik.zogg@gmail.com" } ], "description": "composer integration into the contao cms", "keywords": [ "client", "composer", "contao" ], "time": "2014-03-18 06:58:30" }, { "name": "contao-community-alliance/composer-plugin", "version": "2.0.0-beta2", "source": { "type": "git", "url": "https://github.com/contao-community-alliance/composer-plugin.git", "reference": "8a0986f9c2e7a5a4ce1a9406cd46b0c15ec23e76" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/contao-community-alliance/composer-plugin/zipball/8a0986f9c2e7a5a4ce1a9406cd46b0c15ec23e76", "reference": "8a0986f9c2e7a5a4ce1a9406cd46b0c15ec23e76", "shasum": "" }, "require": { "composer-plugin-api": "1.0.0" }, "conflict": { "contao-community-alliance/composer": "<0.9-dev", "contao/core": "3.0.*" }, "replace": { "contao-community-alliance/composer-installer": "1.7.1" }, "require-dev": { "bit3/php-coding-standard": "*", "composer/composer": "dev-master", "pdepend/pdepend": "1.1.*", "phpunit/phpunit": ">=3.7.10,<4-dev" }, "type": "composer-plugin", "extra": { "class": "ContaoCommunityAlliance\\Composer\\Plugin\\Plugin", "branch-alias": { "dev-develop": "2.0.x-dev" } }, "autoload": { "psr-0": { "ContaoCommunityAlliance\\Composer\\Plugin": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-3.0+" ], "description": "Composer plugin that provide contao integration and installer.", "time": "2014-03-18 16:28:47" }, { "name": "contao-legacy/ajax", "version": "1.1.6.9003", "dist": { "type": "zip", "url": "http://legacy-packages-via.contao-community-alliance.org/er2-proxy/ajax/10010069/3", "reference": "1.1.6.9003", "shasum": null }, "require": { "contao-community-alliance/composer-installer": "*", "contao/core": ">=2.9.0,<4.0.0-dev" }, "type": "legacy-contao-module", "extra": { "contao": { "userfiles": [ ] } }, "notification-url": "http://legacy-packages-via.contao-community-alliance.org/downloads/", "license": [ "LGPL" ], "authors": [ { "name": "terminal42 gmbh", "homepage": "http://www.terminal42.ch/", "role": "lead" } ], "description": "Simplier and faster usage of AJAX in TYPOlight.", "homepage": "http://www.terminal42.ch/", "keywords": [ "ajax", "developer" ], "time": "2013-05-13 22:00:00" }, { "name": "contao-legacy/assetic", "version": "1.1.2.9008", "dist": { "type": "zip", "url": "http://legacy-packages-via.contao-community-alliance.org/er2-proxy/Assetic/10010029/8", "reference": "1.1.2.9008", "shasum": null }, "require": { "contao-community-alliance/composer-installer": "*", "contao-legacy/metapalettes": ">=1.3.6,<2.0.0-dev", "contao-legacy/multicolumnwizard": ">=2.0.0-RC,<4.0.0-dev", "contao-legacy/twig": ">=1.4.1,<2.0.0-dev", "contao/core": ">=3.0.0-RC,<4.0.0-dev" }, "type": "legacy-contao-module", "extra": { "contao": { "userfiles": [ ] } }, "notification-url": "http://legacy-packages-via.contao-community-alliance.org/downloads/", "license": [ "LGPL" ], "authors": [ { "name": "bit3 UG (haftungsbeschränkt)", "homepage": "http://bit3.de", "role": "lead" } ], "description": "Integration of the assetic framework for contao.", "homepage": "http://bit3.de", "keywords": [ "Assetic", "Compression", "Javascript", "style sheet", "theme" ], "time": "2013-05-27 22:00:00" }, { "name": "contao-legacy/gallery_creator", "version": "4.4.0.9010", "dist": { "type": "zip", "url": "http://legacy-packages-via.contao-community-alliance.org/er2-proxy/gallery_creator/40040009/10", "reference": "4.4.0.9010", "shasum": null }, "require": { "contao-community-alliance/composer-installer": "*", "contao-legacy/ajax": ">=1.1.0,<2.0.0-dev", "contao/core": ">=3.1.1,<4.0.0-dev" }, "type": "legacy-contao-module", "extra": { "contao": { "userfiles": [ ] } }, "notification-url": "http://legacy-packages-via.contao-community-alliance.org/downloads/", "license": [ "GNU Lesser Public License (LGPL)" ], "authors": [ { "name": "Marko Cupic", "role": "lead" } ], "description": "Create webgalleries in the backend and display them in the frontend.", "keywords": [ "JavaUploader", "Webgallery", "gallery", "images", "multifileupload" ], "time": "2012-08-07 22:00:00" }, { "name": "contao-legacy/metapalettes", "version": "1.5.1.9002", "dist": { "type": "zip", "url": "http://legacy-packages-via.contao-community-alliance.org/er2-proxy/MetaPalettes/10050019/2", "reference": "1.5.1.9002", "shasum": null }, "require": { "contao-community-alliance/composer-installer": "*", "contao/core": ">=2.8.3,<4.0.0-dev" }, "type": "legacy-contao-module", "extra": { "contao": { "userfiles": [ ] } }, "notification-url": "http://legacy-packages-via.contao-community-alliance.org/downloads/", "license": [ "LGPL" ], "authors": [ { "name": "bit3 UG (haftungsbeschränkt)", "homepage": "http://bit3.de", "role": "lead" } ], "description": "Create palettes dynamical with arrays.", "homepage": "http://bit3.de", "keywords": [ "Developertools", "dca", "developer", "palette" ], "time": "2013-08-28 22:00:00" }, { "name": "contao-legacy/multicolumnwizard", "version": "3.1.0.9003", "dist": { "type": "zip", "url": "http://legacy-packages-via.contao-community-alliance.org/er2-proxy/MultiColumnWizard/30010009/3", "reference": "3.1.0.9003", "shasum": null }, "require": { "contao-community-alliance/composer-installer": "*", "contao/core": ">=2.10.0,<4.0.0-dev" }, "type": "legacy-contao-module", "extra": { "contao": { "userfiles": [ ] } }, "notification-url": "http://legacy-packages-via.contao-community-alliance.org/downloads/", "license": [ "LGPL" ], "authors": [ { "name": "MEN AT WORK Werbeagentur GmbH", "homepage": "http://www.men-at-work.de", "role": "lead" } ], "description": "Define unlimited dca fields with the MultiColumnWizard", "homepage": "http://www.men-at-work.de", "keywords": [ "widget" ], "time": "2013-05-04 22:00:00" }, { "name": "contao-legacy/theme_plus", "version": "4.2.0.9002", "dist": { "type": "zip", "url": "http://legacy-packages-via.contao-community-alliance.org/er2-proxy/theme_plus/40020009/2", "reference": "4.2.0.9002", "shasum": null }, "require": { "contao-community-alliance/composer-installer": "*", "contao-legacy/assetic": ">=1.1.2,<2.0.0-dev", "contao-legacy/metapalettes": ">=1.3.6,<2.0.0-dev", "contao/core": ">=3.1.0-beta,<4.0.0-dev" }, "type": "legacy-contao-module", "extra": { "contao": { "userfiles": [ ] } }, "notification-url": "http://legacy-packages-via.contao-community-alliance.org/downloads/", "license": [ "LGPL" ], "authors": [ { "name": "bit3 UG (haftungsbeschränkt)", "homepage": "http://bit3.de", "role": "lead" } ], "description": "Improved asset management for Contao.", "homepage": "http://bit3.de", "keywords": [ "Javascript", "css", "pagespeed", "theme" ], "time": "2013-09-25 22:00:00" }, { "name": "contao-legacy/twig", "version": "1.6.2.9006", "dist": { "type": "zip", "url": "http://legacy-packages-via.contao-community-alliance.org/er2-proxy/twig/10060029/6", "reference": "1.6.2.9006", "shasum": null }, "require": { "contao-community-alliance/composer-installer": "*", "contao/core": ">=2.11.5,<4.0.0-dev" }, "type": "legacy-contao-module", "extra": { "contao": { "userfiles": [ ] } }, "notification-url": "http://legacy-packages-via.contao-community-alliance.org/downloads/", "license": [ "LGPL" ], "authors": [ { "name": "bit3 UG (haftungsbeschränkt)", "homepage": "http://bit3.de", "role": "lead" } ], "description": "Allow to use twig in Contao.", "homepage": "http://bit3.de", "keywords": [ "Twig", "template" ], "time": "2013-08-26 22:00:00" }, { "name": "contao/core", "version": "3.2.8", "dist": { "type": "zip", "url": "https://github.com/contao/core/archive/3.2.8.zip", "reference": "3.2.8", "shasum": "3.2.8" }, "require": { "contao-community-alliance/composer": "*" }, "provide": { "swiftmailer/swiftmailer": "4.3.1.0" }, "type": "metapackage" } ], "packages-dev": [ ], "aliases": [ ], "minimum-stability": "dev", "stability-flags": [ ], "platform": [ ], "platform-dev": [ ] }
Geändert von djo (03.04.2014 um 14:36 Uhr)
Mh, strange, geh mal über "Packetverwaltung -> Einstellungen -> Expertenmodus" und ändere die composer.json mal folgendermaßen ab:
Brauchst du die twig Erweiterung und den MCW explizit? Sonst kannst du die zwei auch raus nehmen:Code:"require": { "contao-community-alliance/composer": "*", "contao-community-alliance/composer-plugin": "*", "bit3/contao-theme-plus": "4.2.*", "bit3/contao-twig": "1.6.*", "menatwork/semantic_html5": "1.1.*", "menatwork/contao-multicolumnwizard": "3.1.*", "contao-legacy/gallery_creator": "4.4.*" },
die werden dann installiert, wenn sie benötigt werden.Code:"bit3/contao-twig": "1.6.*", "menatwork/contao-multicolumnwizard": "3.1.*",
Wichtig, der Eintrag muss RAUS:
"contao-community-alliance/composer-installer": "1.7.1.0",
Dann sollte er eigentlich vernünftig aktualisieren.
Okay, also laut der composer.lock war auch nur das plugin installiert, man könnte jetzt zwar noch mal in die vendor/composer/installed.json schauen, aber ich denke dass beide angezeigt wurden, war nur ein Anzeigefehler.
Danke dir!
Jetzt erhalte ich die Meldung, dass die Contao-Version nicht auf theme_plus passt:
Kann ich den Composer mal komplett runterhauen und neu installieren ohne Erweiterungen zu beschädigen?Code:Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for bit3/contao-theme-plus 4.2.* -> satisfiable by bit3/contao-theme-plus[4.2]. - bit3/contao-theme-plus 4.2 requires contao/core >=3,<3.2 -> no matching package found. Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see for more details. Read for further common problems.
Ich glaube ich setze noch mal neu auf. Das ist ja komplettes Neuland ... eher was für Leute, die jeden Tag mit Code arbeiten. Ich kratze nur an der Oberfläche. :-)
Die 2.0.0 beta habe ich aus dem Repository, welche dann alles automatisiert umschreiben lies.
Geändert von djo (03.04.2014 um 15:23 Uhr)
Nein, nicht neu aufsetzen. Änder einfach die Theme+ Version auf 4.3.5
Jetzt erhalte ich die Meldung
Die 0.9Beta6 lässt sich jedenfalls nicht in die 0.8 stable umschreiben ...Code:Could not completely delete /composer/vendor/contao-community-alliance/composer, aborting.
Geändert von djo (04.04.2014 um 14:12 Uhr)
Hostest du bei All-inkl?
So, ich habe wieder mal ein Problem beim Installieren von Erweiterungen über den Composer, wobei ich den Verdacht habe, dass es am Hoster liegt.
Eckdaten:
Contao 3.2.17
Composer 0.9.5
Egal welche Erweiterung ich zu installieren versuche, ich bekomme eine Meldung wie diese:
oder:Code:Fatal error: Uncaught exception Composer\Downloader\TransportException with message The "http://packagist.org/p/madeyourday/contao-rocksolid-slider$83dbb550c28a7fe068c9f0ea7f28e08d18aa1867dfff2a8332438b8fd78c4d93.json" file could not be downloaded: file_get_contents(http://packagist.org/p/madeyourday/contao-rocksolid-slider$83dbb550c28a7fe068c9f0ea7f28e08d18aa1867dfff2a8332438b8fd78c4d93.json) [function.file-get-contents]: failed to open stream: Permission denied thrown in phar://composer/composer.phar/src/Composer/Util/RemoteFilesystem.php on line 267
Die anderen Threads im Forum, die ich bei der Suche nach dieser Fehlermeldung gefunden habe, helfen mir auch nicht weiter.Code:Fatal error: Uncaught exception Composer\Downloader\TransportException with message The "http://packagist.org/p/menatwork/synccto$0f3b33a60a172bb3532bded7375cde168500187345e8c61339231e1fbc6f7f21.json" file could not be downloaded: file_get_contents(http://packagist.org/p/menatwork/synccto$0f3b33a60a172bb3532bded7375cde168500187345e8c61339231e1fbc6f7f21.json) [function.file-get-contents]: failed to open stream: Permission denied thrown in phar://composer/composer.phar/src/Composer/Util/RemoteFilesystem.php on line 267
Der Composer-Check gibt zwar grünes Licht, ich traue dem aber nicht, da dieser Hoster generell quälend langsam ist. Denke, das Problem wird irgendwo hier liegen. Ich habe einen Klon dieser Website bei mir auf dem Server (Managed Hosting domainfactory), da kann ich alle Erweiterungen tadellos installieren.
Kann mir jemand sagen, an welchen Eckdaten an Serverleistung ich noch schrauben kann, oder wäre ein Wechsel generell sinnvoller? Oder liegt das Problem doch ganz woanders?
Grüße, bibib
Also die Fehlermeldung ist schon interessant:
Das habe ich in dem Zusammenhang noch nie gesehen, sieht fast so aus als ob da irgendein Berechtigungsmechanismus deines Hosters dazwischen springt.failed to open stream: Permission denied
Eine Antwort wird dir hier vermutlich nur dein Hoster geben können, ich würde mal nachfragen.
Okay, danke, ich geb das mal so weiter. Wobei ich eh für einen Wechsel plädiere ...
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen