Habe erstmal alle Daten gesichert.
Dann im BE Systemwartung durchgeführt und Cache gelöscht.
Dann im Manager bei den Contao-Bundles auf dem Zahnrad geklickt und 4.7 eingetragen, dann auf UpDate geklickt
Habe erstmal alle Daten gesichert.
Dann im BE Systemwartung durchgeführt und Cache gelöscht.
Dann im Manager bei den Contao-Bundles auf dem Zahnrad geklickt und 4.7 eingetragen, dann auf UpDate geklickt
Wo hast Du auf Update geklickt? Wie schon gesagt: Du musst alle (!) Pakete gleichzeitig zum Update auswählen und den Updatejob anschließend starten.
Du kannst auch gerne mal Deine composer.json hier posten.
PHP-Code:
{
"name": "contao/managed-edition",
"type": "project",
"description": "Contao Open Source CMS",
"license": "LGPL-3.0+",
"authors": [
{
"name": "Leo Feyer",
"homepage": "https://github.com/leofeyer"
}
],
"require": {
"php": "^5.6|^7.0",
"codefog/contao-cookiebar": "^1.3",
"codefog/contao-mobile_menu": "^2.6",
"codefog/contao-news_categories": "^3.0",
"contao/calendar-bundle": "^4.7",
"contao/comments-bundle": "^4.7",
"contao/conflicts": "*@dev",
"contao/faq-bundle": "^4.7",
"contao/listing-bundle": "^4.7",
"contao/manager-bundle": "4.7.*",
"contao/news-bundle": "^4.7",
"contao/newsletter-bundle": "^4.7",
"derhaeuptling/contao-seo-serp-preview": "^3.0",
"jrgregory/m17-sticky-backend-footer": "^2.0",
"madeyourday/contao-rocksolid-frontend-helper": "^2.0",
"terminal42/contao-easy_themes": "^2.2",
"terminal42/contao-leads": "^1.4",
"terminal42/notification_center": "^1.4"
},
"conflict": {
"contao/core-bundle": "<4.4.1"
},
"config": {
"component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
],
"post-update-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
]
}
}
Hast Du es nochmals versucht, wie oben beschrieben?
Es zeigt mit diese Maske an, da hab ich unten geklickt:Wo hast Du auf Update geklickt? Wie schon gesagt: Du musst alle (!) Pakete gleichzeitig zum Update auswählen und den Updatejob anschließend starten.
Unbenannt-1.jpg
Lösche Deine composer.lock (oder benenne sie z. B. in composer.lock.bak um) und versuche es anschließend erneut.
Vielen Dank, jetzt hat es geklappt.
Warum lag dies an der composer.lock ?
Weil Du zuvor wahrscheinlich eben nicht alle Pakete zum Update ausgewählt hattest und die Abhängigkeitsauflösung vermutlich mit den via composer.lock bereits festgeschriebenen Versionsständen nicht mehr zurechtgekommen ist.
Hi,
eine kurze Frage, ich habe aktuell Contao 4.4.7, was empfiehlt ihr, für die 4.4.x updaten oder gleich auf die 4.7 bzw. 4.8 updaten?
Gibt es eine routine, wie man ein Update über den Contao Manger durchführt?
Auf 4.4.43 solltest du auf jeden Fall zuerst aktualisieren.
Für das Update von 4.4.7 auf 4.4.43 musst du nur den entsprechenden Button im Contao Manager klicken. Für ein Update auf 4.8.x musst du bei Contao Open Source CMS 4.8.* eintragen, dann alle Pakete zum Update markieren und dann die Aktualisierung durchführen.
Alles klar, dann werde ich erst mal auf 4.4.43 Updaten.
Dort brauche ich einfach nur alle Contao Pakete aktualisieren oder ALLE Pakete:
Screenshot_2019-09-17-Contao-Manager-1-1-7.jpg
Brauche ich dann hier noch etwas machen?
Screenshot_2019-09-17 Contao Manager 1 1 7-tool.png
Oben einfach auf "Pakete aktualisieren" klicken. Außerdem solltest du eine Weiterleitung auf HTTPS einrichten.
Vielen Dank.
Noch eine andere Frage, gibt es ein mehr oder weniger Standartverfahren um Daten auf Contao zu ex- und wieder importieren?
Grundsätzlich nicht. Welche Daten möchtest du exportieren oder importieren?
Das macht ja keinen Sinn. Solche Überlegungen macht man normalerweise ja nur, wenn man zwischen Major Versionen aktualisiert. Höchstens wenn man zwischen Minor Versionen aktualisiert. Aber doch nicht zwischen Bugfix Versionen? Außerdem solltet ihr Contao öfter aktualisieren. Zwischen 4.4.7 und 4.4.43 gab es einige Sicherheits Fixes, soweit ich mich erinnere.
Alles klar.
Weist du, ob diese fixes mit den Updates behoben wären?
HTML-Code:Important!! Core 'Hotfix' Had to do some changes in core files because custom elements seems to have issues with contao 4.4 \vendor\contao\core-bundle\src\Picker\PagePickerProvider.php public function supportsContext($context) { //@todo: uncomment access check if custom elements is fixed return in_array($context, ['page', 'link'], true); // && $this->getUser()->hasAccess('page', 'modules'); } \vendor\contao\core-bundle\src\Picker\FilePickerProvider public function supportsContext($context) { //@todo: uncomment access check if custom elements is fixed return in_array($context, ['file', 'link'], true); //&& $this->getUser()->hasAccess('files', 'modules'); } Another Core Bug manualy fixed: https://github.com/contao/core-bundle/pull/1142
In dem Code, den du gepostet hast, ist auch ein Link zu einem Pull Request. Da sieht man, dass der Pull Request ab Contao 4.4.8 im Core vorhanden ist.
Ok, dann werde ich erst einmal das Update auf dem Testsystem probieren.
Wie ist dann das nächste verfahren, wenn das update erfolgreich war, alles ins Git commiten und pushen und auf dem Livesystem einfach pullen oder fehlt dann da etwas?
Hallo zusammen,
beim Update kam dann diese Meldung:
Code:In Processor.php line 77: The dist file "app/config/parameters.yml.dist" does not exist. Check your d ist-file config or create it. install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]... # Process terminated with exit code 1 # Result: General error --- ### The background task has stopped unexpectedly ###
Nachdem ich die .dist Datei hinzugefügt habe, kommt diese Meldung:
Kann mir da jmd helfen?Code:InvalidArgumentException: Config file "/wwwroot.wwwnew/contao-manager/composer-install.set.json" does not exist. in phar:///wwwroot.wwwnew/web/contao-manager.phar.php/vendor/terminal42/background-process/src/AbstractProcess.php:52 Stack trace: #0 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/vendor/terminal42/background-process/src/ProcessRunner.php(175): Terminal42\BackgroundProcess\AbstractProcess::readConfig('/wwwroot.wwwnew...') #1 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/vendor/terminal42/background-process/src/ProcessRunner.php(106): Terminal42\BackgroundProcess\ProcessRunner->loadConfig() #2 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/vendor/terminal42/background-process/src/ProcessRunner.php(53): Terminal42\BackgroundProcess\ProcessRunner->wait(1) #3 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/vendor/terminal42/background-process/src/Command/ProcessRunnerCommand.php(36): Terminal42\BackgroundProcess\ProcessRunner->run() #4 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/vendor/symfony/console/Command/Command.php(255): Terminal42\BackgroundProcess\Command\ProcessRunnerCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/vendor/symfony/console/Application.php(987): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(Terminal42\BackgroundProcess\Command\ProcessRunnerCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/api/ApiApplication.php(76): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/vendor/symfony/console/Application.php(148): Contao\ManagerApi\ApiApplication->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 phar:///wwwroot.wwwnew/web/contao-manager.phar.php/api/console(84): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput)) #10 /wwwroot.wwwnew/web/contao-manager.phar.php(54): require('phar:///wwwroot...') #11 {main} # Process terminated with exit code 137 # Result: Kill (terminate immediately) [signal 9]
Update auf welche Contao Version?
Auf 4.4.43
Komisch, jetzt habe ich den Updateprozess noch einmal angestoßen und nun ließ es ohne Probleme.
Jetzt geht es erst einmal ans Testen, was noch funktioniert und was nicht.
Bisher alles super bis auf das Backend, wenn ich beim ersten Startpunkt, den Domainnamen ändern möchte, bekomme ich einen Fehler:
Und ich bekomme alle paar Minuten diese Fehler:Code:request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","_locale":"fr","alias":"modules-de-la-suite-de-commerce-intershop","_route":"contao_frontend"},"request_uri":"https://www.intershop.com/fr/modules-de-la-suite-de-commerce-intershop","method":"GET"} [] [2019-09-25 11:33:01] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} [] [2019-09-25 11:33:02] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Page not found: https://www.intershop.com/fr/modules-de-la-suite-de-commerce-intershop" at /wwwroot.wwwnew/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 112 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Page not found: https://www.intershop.com/fr/modules-de-la-suite-de-commerce-intershop at /wwwroot.wwwnew/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:112, Contao\\CoreBundle\\Exception\\PageNotFoundException(code: 0): Page not found: https://www.intershop.com/fr/modules-de-la-suite-de-commerce-intershop at /wwwroot.wwwnew/vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:74)"} []
Code:[2019-09-25 11:29:48] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","_locale":"en","alias":"autodiscover/autodiscover.xml","_route":"contao_frontend"},"request_uri":"https://www.intershop.com/en/autodiscover/autodiscover.xml","method":"POST"} [] [2019-09-25 11:29:48] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} [] [2019-09-25 11:29:49] app.CRITICAL: An exception occurred. {"exception":"[object] (Contao\\CoreBundle\\Exception\\InternalServerErrorHttpException(code: 0): Invalid request token. Please reload the page and try again. at /wwwroot.wwwnew/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:109, Contao\\CoreBundle\\Exception\\InvalidRequestTokenException(code: 0): Invalid request token. Please reload the page and try again. at /wwwroot.wwwnew/vendor/contao/core-bundle/src/Framework/ContaoFramework.php:453)"} []
Laut der Fehlermeldung wird die Seite https://www.intershop.com/fr/modules...erce-intershop nicht gefunden. Gibt es diese Seite? Wenn nicht, warum hast du sie aufgerufen?
Bei welcher Aktion kommt dieser Fehler?
Die Seite gibt es nicht, ich weis auch nicht wieso das kommt.
Bei welcher Aktion kommt dieser Fehler?[/QUOTE]
kann ich dir aktuell nicht genau sagen.
Was wir bei Contao 4.4.7 gemacht haben, diese Hotfixes eingespielt und dann konnte man schon mal wieder beim ersten Startpunkt auf Speichern klicken, ohne das ein Fehler kommt:
Code:\vendor\contao\core-bundle\src\Picker\PagePickerProvider.php public function supportsContext($context) { //@todo: uncomment access check if custom elements is fixed return in_array($context, ['page', 'link'], true); // && $this->getUser()->hasAccess('page', 'modules'); } \vendor\contao\core-bundle\src\Picker\FilePickerProvider public function supportsContext($context) { //@todo: uncomment access check if custom elements is fixed return in_array($context, ['file', 'link'], true); //&& $this->getUser()->hasAccess('files', 'modules'); }
Ich habe jetzt z.b. nur den Domainnamen beim zweiten Startpunkt von www auf dev geändert und ich bekomme diesen Fehler:
Wenn ich den ersten Startpunkt bearbeiten möchte, nichts bearbeite und dann auf "Speichern" klicke, kommt die typische Fehlermeldung "Ein Fehler ist aufgetreten" aber in der Log steht nix. Wie gesagt, mit dem Hotfix von oben war das behoben, ich dachte nur das wäre schon in der aktuellen Version drinnen.Code:[2019-09-25 12:02:39] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","_locale":"en","alias":"autodiscover/autodiscover.xml","_route":"contao_frontend"},"request_uri":"https://www.intershop.com/en/autodiscover/autodiscover.xml","method":"POST"} [] [2019-09-25 12:02:39] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} [] [2019-09-25 12:02:40] app.CRITICAL: An exception occurred. {"exception":"[object] (Contao\\CoreBundle\\Exception\\InternalServerErrorHttpException(code: 0): Invalid request token. Please reload the page and try again. at /wwwroot.wwwnew/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:109, Contao\\CoreBundle\\Exception\\InvalidRequestTokenException(code: 0): Invalid request token. Please reload the page and try again. at /wwwroot.wwwnew/vendor/contao/core-bundle/src/Framework/ContaoFramework.php:453)"} []
Ich glaube, dass ich im ersten Startpunkt nichts speichern kann, kann ich mit diesem Hotfix lösen aber gibt es da noch nichts anderes?
Code:\vendor\contao\core-bundle\src\Picker\PagePickerProvider.php public function supportsContext($context) { //@todo: uncomment access check if custom elements is fixed return in_array($context, ['page', 'link'], true); // && $this->getUser()->hasAccess('page', 'modules'); }
Benutze die app_dev.php und poste den kompletten Stack Trace des Fehlers beim speichern.
Wenn du die app_dev.php benutzt und ein Fehler aufgetreten ist, solltest du oben 3 Buttons haben. Einer davon müsste "Stack Trace" lauten.
Code:RuntimeException: No token provided at vendor/contao/core-bundle/src/Picker/AbstractPickerProvider.php:112 at Contao\CoreBundle\Picker\AbstractPickerProvider->getUser() (vendor/contao/core-bundle/src/Picker/PagePickerProvider.php:33) at Contao\CoreBundle\Picker\PagePickerProvider->supportsContext('link') (vendor/contao/core-bundle/src/Picker/PickerBuilder.php:111) at Contao\CoreBundle\Picker\PickerBuilder->supportsContext('link', null) (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:1090) at Contao\Backend::getDcaPickerWizard(array(), 'tl_cce_customer', 'vfc2ifoparrgo4b', 'vfc2ifoparrgo4b') (vendor/contao/core-bundle/src/Resources/contao/dca/tl_content.php:1580) at tl_content->pagePicker(object(DataContainerHelper)) (system/modules/pct_customelements/PCT/CustomElements/Core/Attribute.php:771) at PCT\CustomElements\Core\Attribute->generateWidget(object(DataContainerHelper)) (system/modules/pct_customelements/PCT/CustomElements/Core/Attribute.php:987) at PCT\CustomElements\Core\Attribute->prepareForDca(object(DataContainerHelper)) (system/modules/pct_customelements/PCT/CustomElements/Core/CustomElement.php:191) at PCT\CustomElements\Core\CustomElement->getFieldsForDca(object(DataContainerHelper)) (system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Attributes/CustomElement/config/config.php:86) at require_once('/wwwroot.wwwnew/system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Attributes/CustomElement/config/config.php') (system/modules/pct_customelements/PCT/CustomElements/Loader/AttributeLoader.php:81) at PCT\CustomElements\Loader\AttributeLoader::load('customelement') (system/modules/pct_customelements/PCT/CustomElements/Loader/AttributeLoader.php:109) at PCT\CustomElements\Loader\AttributeLoader::loadAll() (system/modules/pct_customelements/PCT/CustomElements/Loader/AttributeLoader.php:206) at PCT\CustomElements\Loader\AttributeLoader->loadOnSystem() (vendor/contao/core-bundle/src/Framework/ContaoFramework.php:434) at Contao\CoreBundle\Framework\ContaoFramework->triggerInitializeSystemHook() (vendor/contao/core-bundle/src/Framework/ContaoFramework.php:335) at Contao\CoreBundle\Framework\ContaoFramework->initializeFramework() (vendor/contao/core-bundle/src/Framework/ContaoFramework.php:159) at Contao\CoreBundle\Framework\ContaoFramework->initialize() (vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:64) at Contao\CoreBundle\Security\User\ContaoUserProvider->loadUserByUsername('backend') (vendor/contao/core-bundle/src/Security/ContaoAuthenticator.php:85) at Contao\CoreBundle\Security\ContaoAuthenticator->authenticateToken(object(AnonymousToken), object(ContaoUserProvider), 'backend') (vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Provider/SimpleAuthenticationProvider.php:42) at Symfony\Component\Security\Core\Authentication\Provider\SimpleAuthenticationProvider->authenticate(object(AnonymousToken)) (vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php:76) at Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager->authenticate(object(AnonymousToken)) (vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php:101) at Symfony\Component\Security\Http\Firewall\SimplePreAuthenticationListener->handle(object(GetResponseEvent)) (vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php:46) at Symfony\Bundle\SecurityBundle\Debug\WrappedListener->handle(object(GetResponseEvent)) (vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php:35) at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->handleRequest(object(GetResponseEvent), object(Generator)) (vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall.php:84) at Symfony\Component\Security\Http\Firewall->onKernelRequest(object(GetResponseEvent)) (vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php:48) at Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher)) (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:115) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher)) (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:214) at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent)) (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:143) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:127) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (web/app_dev.php:62)
Hm, da würde ich mal bei PCT diesbezüglich nachfragen.
Wieso?
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen