Erweiterung manuell installieren
Hallo,
ich habe es nach dieser Anleitung probiert: https://www.cyon.ch/blog/Contao-4.2-...-ohne-Composer
Es passiert einfach gar nichts. Im Install-Tool wird mir kein Datenbank-Update vorgeschlagen und im Backend ist die Erweiterung nicht sichtbar.
Unter „app“ gab es bei mir auch keine AppKernel.php. Die Datei habe ich selbst angelegt. Oder läuft das bei 4.4 anders als bei 4.2?
Gibt es schon eine Lösung und ich bin blind?
Hab bei mir das gleiche Problem...
Zitat:
Zitat von
e9li
Ich muss eine neue Erweiterung schreiben und möchte das gleich in der richtigen Umgebung (Managed Edition) machen. Die Erweiterung wird nicht öffentlich werden, deshalb sollte ich das irgendwie in Contao 4.4 reinbringen. Bis jetzt habe ich das aber nicht geschafft.
Struktur ist:
Code:
vendor
- user
-- bundle
--- src
---- ContaoManager
------ Plugin.php
---- Resources
----- contao
------ config
------ dca
------ languages
------ xyz...
----- public
---- Bundle.php
--- composer.json
Composer.json:
Code:
{
"name": "user/bundle",
"type": "contao-bundle",
"description": "Contao Bundle....",
"license": "LGPL-3.0+",
"authors": [
{
"name": "Name",
"homepage": "https://www.domain.com"
}
],
"require": {
"php": ">=7.0",
"symfony/framework-bundle": "^3.3",
"contao/core-bundle": "^4.4"
},
"require-dev": {
"contao/manager-plugin": "^2.0"
},
"conflict": {
"contao/core": "*",
"contao/manager-plugin": "<2.0 || >=3.0"
},
"autoload": {
"psr-4": {
"User\\Bundle\\": "src/"
},
"classmap": [
"src/Resources/contao/",
],
"exclude-from-classmap": [
"src/Resources/contao/config/",
"src/Resources/contao/dca/",
"src/Resources/contao/languages/",
"src/Resources/contao/templates/"
]
},
"autoload-dev": {
"psr-4": {
"User\\Bundle\\Tests\\": "tests/"
}
},
"config": {
"preferred-install": "dist"
},
"extra": {
"contao-manager-plugin": "User\\Bundle\\ContaoManager\\Plugin"
}
}
Dann:
composer install --optimize-autoloader
Cache löschen
Installtool aufrufen
Erweiterung wir nicht geladen und Datenbank wird nicht aktualisiert.
Was habe ich vergessen oder ist das der falsche Weg? Müssen neue Erweiterungen Symfony Bundles sein ohne DCA usw.?
Contao 4.4 Erweiterungen installieren | Fatal Error: Out of memory
Hallo Leute :),
ich bin Neuling und hab Contao 4.4 frisch installiert, es läuft bei 1und1 (Unlimited Plus / PHP 7.1). Wollte die für ein Template (opensauce-1.5.5-contao-4.4-4.5) notwendigen Pakete über den Manager installieren - leider vergeblich. Egal welche Pakte ich installieren möchte es kommt immer der Fehler "Out of memory" :eek:
Das gleiche passiert über SSH...
SSH:
Code:
(uiserver):u93401434:~$ php
php php-config6 php5 php5.5 phpize4.4 phpize7.1
php-config4.4 php-config7.1 php5.2 php5.5-cli phpize5.2
php-config5.2 php4 php5.2-cli php6 phpize5.4
php-config5.4 php4.4 php5.4 php7.1 phpize5.5
php-config5.5 php4.4-cli php5.4-cli php7.1-cli phpize6
(uiserver):u93401434:~$ php7.1-cli composer.phar require madeyourday/contao-rocksolid-custom-elements
Using version ^2.2 for madeyourday/contao-rocksolid-custom-elements
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 620765184) (tried to allocate 36864 bytes) in phar:///homepages/45/d735372432/htdocs/composer.phar/src/Composer/DependencyResolver/Pool.php on line 205
Manager:
Code:
Using version ^2.2 for madeyourday/contao-rocksolid-custom-elements
/homepages/45/d735372432/htdocs/C4.4/composer.json has been updated
Loading composer repositories with package information
Updating dependencies
Error: "Out of memory (allocated 481304576) (tried to allocate 16777224 bytes)" in phar:///homepages/45/d735372432/htdocs/C4.4/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/DependencyResolver/RuleSet.php on 83
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
In RuleSet.php line 83:
[Symfony\Component\Debug\Exception\OutOfMemoryException]
Error: Out of memory (allocated 481304576) (tried to allocate 16777224 byte
s)
Exception trace:
tenside:runtask [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--disable-events] [--] <command> <taskId>
Process terminated with exit code 255
Reason: Unknown error
Kann mir da freundlicherweise jemand weiterhelfen?
LG