codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
43 stars 24 forks source link

Installation error under contao 4.11 #159

Closed markocupic closed 3 years ago

markocupic commented 3 years ago

When I try to install contao-haste localy on a clean Contao 4.11 installation, it comes to an error while building the cache:

In ContaoKernel.php line 94:

  Notice: Undefined property: Contao\ManagerBundle\HttpKernel\ContaoKernel::$rootDir  

15:30:41 CRITICAL  [console] Error thrown while running command "--ansi". Message: "An error occurred while executing the "C:\xampp\php\php.exe C:/xampp/htdocs/contao411/vendor/contao/manager-
bundle/bin/contao-console cache:clear --no-warmup --env=dev --ansi" command:
In ContaoKernel.php line 94:

  Notice: Undefined property: Contao\ManagerBundle\HttpKernel\ContaoKernel::$rootDir  

" ["exception" => RuntimeException { …},"command" => "--ansi","message" => """  An error occurred while executing the "C:\xampp\php\php.exe C:/xampp/htdocs/contao411/vendor/contao/manager-bund
le/bin/contao-console cache:clear --no-warmup --env=dev --ansi" command: \r\n  \e[33mIn ContaoKernel.php line 94:\e[39m\r\n  \e[37;41m
                            \e[39;49m\r\n  \e[37;41m  Notice: Undefined property: Contao\ManagerBundle\HttpKernel\ContaoKernel::$rootDir  \e[39;49m\r\n  \e[37;41m
                                                        \e[39;49m\r\n  \r\n  """]

In ContaoSetupCommand.php line 128:

  An error occurred while executing the "C:\xampp\php\php.exe C:/xampp/htdocs/contao411/vendor/contao/manager-bundle/bin/contao-console cache:clear --no-warmup --env=dev --ansi" command:   
  In ContaoKernel.php line 94:                                                                                                                                                     

    Notice: Undefined property: Contao\ManagerBundle\HttpKernel\ContaoKernel::$rootDir  

contao:setup

composer.json (root)

{
    "name": "contao/managed-edition",
    "type": "project",
    "description": "Contao Managed Edition",
    "license": "LGPL-3.0-or-later",
    "require": {
        "contao/calendar-bundle": "^4.11",
        "contao/comments-bundle": "^4.11",
        "contao/conflicts": "@dev",
        "contao/faq-bundle": "^4.11",
        "contao/listing-bundle": "^4.11",
        "contao/manager-bundle": "4.11.*",
        "contao/news-bundle": "^4.11",
        "contao/newsletter-bundle": "^4.11",
        "codefog/contao-haste": "^4.24"
    },
    "conflict": {
        "contao-components/installer": "<1.3"
    },
    "extra": {
        "contao-component-dir": "assets"
    },
    "scripts": {
        "post-install-cmd": [
            "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
        ],
        "post-update-cmd": [
            "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
        ]
    }
}
aschempp commented 3 years ago

Non of the error messages contain haste and Haste does not contain rootDir in any of its code. Are you sure the problem is related to Haste?

markocupic commented 3 years ago

Installing php extension sodium brought the solution. ??? Sorry for the inconveniences. BR Marko