Ergebnis 1 bis 12 von 12

Thema: Path is not inside the Contao root dir

  1. #1
    Alter Contao-Hase
    Registriert seit
    06.07.2009.
    Beiträge
    1.493

    Standard Path is not inside the Contao root dir

    Hallo,

    ich habe ein Upload-Feld welches auf einen Ordner files/antraege verweist. Den Ordner habe ich via Dateiverwaltung angelegt.

    Beim Absenden des Formulars bekomme ich aber immer folgende Fehlermeldung:

    Code:
    [2022-02-02 13:28:35] app.CRITICAL: An exception occurred. {"exception":"[object] (InvalidArgumentException(code: 0): Path \"files/antraege\" is not inside the Contao root dir at D:\\htdocs\\contao\\vendor\\contao\\core-bundle\\src\\Resources\\contao\\library\\Contao\\StringUtil.php:1186)"} []
    Auch wenn ich einen anderen Ordner auswähle... es kommt immer der gleiche Fehler!

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.114
    Partner-ID
    10107

    Standard

    Nutze den Debug-Modus und poste den Stack Trace.
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Alter Contao-Hase
    Registriert seit
    06.07.2009.
    Beiträge
    1.493

    Standard

    Okay wie genau starte ich den Debug MOdus?

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.114
    Partner-ID
    10107
    » sponsor me via GitHub or PayPal or Revolut

  5. #5
    Alter Contao-Hase
    Registriert seit
    06.07.2009.
    Beiträge
    1.493

    Standard

    Code:
    InvalidArgumentException:
    Path "files/ci_antraege" is not inside the Contao root dir
    
      at vendor\contao\core-bundle\src\Resources\contao\library\Contao\StringUtil.php:1186
      at Contao\StringUtil::stripRootDir('files/ci_antraege')
         (vendor\contao\core-bundle\src\Resources\contao\forms\Form.php:437)
      at Contao\Form->processFormData(array('name' => 'xx', 'email' => 'xx', 'Produkttitel' => '', 'Umsetzungsart' => '', 'Format' => '__mm / __px / DIN-Format', 'Formatausrichtung' => 'Hochfortmat', 'Texte' => 'Ja', 'Bilder' => 'Ja', 'Ziel' => 'sdfsdf', 'Vorgaben' => 'sfsdf', 'Altversion' => 'Ja', 'Termin' => 'fsdf', 'cc' => ''), array('name' => 'Ihr Name', 'email' => 'Ihre Email', 'Produkttitel' => 'Produkttitel', 'Umsetzungsart' => 'Umsetzungsart:', 'Format' => 'Format', 'Formatausrichtung' => 'Formatausrichtung', 'Texte' => 'Texte vorhanden?', 'Bilder' => 'Bilder vorhanden?', 'Ziel' => 'Welches Ziel / Botschaft hat das Werbemittel?', 'Vorgaben' => 'Gibt es konkrete Vorgaben, Ideen und eigene Vorstellungen?', 'Altversion' => 'Existiert das Werbemittel bereits in einer älteren Form?', 'Termin' => 'Welchen Fertigstellungstermin gibt es?', 'Datei1' => 'Datei 1'), array('name' => object(FormFieldModel), 'email' => object(FormFieldModel), 'Produkttitel' => object(FormFieldModel), 'Umsetzungsart' => object(FormFieldModel), 'Format' => object(FormFieldModel), 'Formatausrichtung' => object(FormFieldModel), 'Texte' => object(FormFieldModel), 'Bilder' => object(FormFieldModel), 'Ziel' => object(FormFieldModel), 'Vorgaben' => object(FormFieldModel), 'Altversion' => object(FormFieldModel), 'Termin' => object(FormFieldModel), 'Datei1' => object(FormFieldModel), 'cc' => object(FormFieldModel), object(FormFieldModel)))
         (vendor\contao\core-bundle\src\Resources\contao\forms\Form.php:256)
      at Contao\Form->compile()
         (vendor\contao\core-bundle\src\Resources\contao\classes\Hybrid.php:235)
      at Contao\Hybrid->generate()
         (vendor\contao\core-bundle\src\Resources\contao\forms\Form.php:88)
      at Contao\Form->generate()
         (vendor\contao\core-bundle\src\Resources\contao\library\Contao\Controller.php:477)
      at Contao\Controller::getContentElement(object(ContentModel), 'main')
         (vendor\contao\core-bundle\src\Resources\contao\modules\ModuleArticle.php:182)
      at Contao\ModuleArticle->compile()
         (vendor\contao\core-bundle\src\Resources\contao\modules\Module.php:219)
      at Contao\Module->generate()
         (vendor\contao\core-bundle\src\Resources\contao\modules\ModuleArticle.php:64)
      at Contao\ModuleArticle->generate(false)
         (vendor\contao\core-bundle\src\Resources\contao\library\Contao\Controller.php:417)
      at Contao\Controller::getArticle(object(ArticleModel), false, false, 'main')
         (vendor\contao\core-bundle\src\Resources\contao\library\Contao\Controller.php:279)
      at Contao\Controller::getFrontendModule('0', 'main')
         (vendor\contao\core-bundle\src\Resources\contao\pages\PageRegular.php:176)
      at Contao\PageRegular->prepare(object(PageModel))
         (vendor\contao\core-bundle\src\Resources\contao\pages\PageRegular.php:46)
      at Contao\PageRegular->getResponse(object(PageModel), true)
         (vendor\contao\core-bundle\src\Resources\contao\controllers\FrontendIndex.php:308)
      at Contao\FrontendIndex->renderPage(object(Collection))
         (vendor\contao\core-bundle\src\Resources\contao\controllers\FrontendIndex.php:74)
      at Contao\FrontendIndex->run()
         (vendor\contao\core-bundle\src\Controller\FrontendController.php:42)
      at Contao\CoreBundle\Controller\FrontendController->indexAction()
         (vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php:151)
      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)

  6. #6
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.114
    Partner-ID
    10107

    Standard

    Welche Contao Version genau?
    » sponsor me via GitHub or PayPal or Revolut

  7. #7
    Alter Contao-Hase
    Registriert seit
    06.07.2009.
    Beiträge
    1.493

    Standard

    4.4.57

  8. #8
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.114
    Partner-ID
    10107

    Standard

    Welche Extensions sind installiert?
    » sponsor me via GitHub or PayPal or Revolut

  9. #9
    Alter Contao-Hase
    Registriert seit
    06.07.2009.
    Beiträge
    1.493

    Standard

    Code:
    ausi/slug-generator                           v1.1.1           Slug Generator
    bugbuster/contao-be_user_online-bundle        1.0.2            Contao 4 CMS Online Status Icon for Backend and Fro...
    cliffparnitzky/form-dependent-mandatory-field 2.2.1            Provides an additional option for form field to be ...
    clue/stream-filter                            v1.5.0           A simple and modern approach to stream filtering in...
    codefog/contao-events_subscriptions           2.13.3           events_subscriptions extension for Contao Open Sour...
    codefog/contao-haste                          4.25.0           haste extension for Contao Open Source CMS
    codefog/contao-mobile_menu                    2.7.1            mobile_menu extension for Contao Open Source CMS
    composer/ca-bundle                            1.2.11           Lets you find a path to the system CA bundle, and i...
    contao-community-alliance/composer-plugin     3.1.5            Composer plugin that provides installers for contao...
    contao-components/ace                         1.4.13           ACE code editor integration for Contao Open Source CMS
    contao-components/chosen                      1.2.4            Chosen integration for Contao Open Source CMS
    contao-components/colorbox                    1.6.6            Colorbox integration for Contao Open Source CMS
    contao-components/colorpicker                 1.5.1            Color picker integration for Contao Open Source CMS
    contao-components/compass                     0.12.2.1         Compass integration for Contao Open Source CMS
    contao-components/contao                      7.1.6            Contao Open Source CMS components
    contao-components/datepicker                  2.3.2            Date picker integration for Contao Open Source CMS
    contao-components/dropzone                    4.3.0            DropZone integration for Contao Open Source CMS
    contao-components/highlight                   8.9.1            Highlight.js integration for Contao Open Source CMS
    contao-components/html5shiv                   3.7.3            HTML5 Shiv integration for Contao Open Source CMS
    contao-components/installer                   1.4.1            Contao components installer
    contao-components/jquery                      1.12.4           jQuery integration for Contao Open Source CMS
    contao-components/jquery-ui                   1.12.1.1         jQuery UI integration for Contao Open Source CMS
    contao-components/mediabox                    1.5.5            Mediabox integration for Contao Open Source CMS
    contao-components/mediaelement                4.2.14           MediaElement.js integration for Contao Open Source CMS
    contao-components/mootools                    1.6.0.6          MooTools integration for Contao Open Source CMS
    contao-components/respimage                   1.4.2            Respimage.js integration for Contao Open Source CMS
    contao-components/simplemodal                 2.1.1            SimpleModal integration for Contao Open Source CMS
    contao-components/swipe                       2.2.0            A JavaScript touch slider with dot menu
    contao-components/tablesort                   4.0.1            Contao Open Source CMS tablesort
    contao-components/tablesorter                 2.31.3           jQuery tablesorter integration for Contao Open Sour...
    contao-components/tinymce4                    4.6.7.3          TinyMCE 4 integration for Contao Open Source CMS
    contao/calendar-bundle                        4.4.57           Adds calendar functionality to Contao 4
    contao/comments-bundle                        4.4.57           Adds comments functionality to Contao 4
    contao/conflicts                              dev-main b52fb0f Contao 4 conflicting packages
    contao/core-bundle                            4.4.57           Contao 4 core bundle
    contao/faq-bundle                             4.4.57           Adds FAQ functionality to Contao 4
    contao/image                                  0.3.9            Contao image library
    contao/imagine-svg                            0.2.3            Contao Imagine SVG library
    contao/installation-bundle                    4.4.57           Required to install and update Contao 4
    contao/listing-bundle                         4.4.57           Allows to list arbitrary data in the Contao 4 front...
    contao/manager-bundle                         4.4.57           Contao 4 manager bundle
    contao/manager-plugin                         2.11.0           Contao 4 manager plugin
    contao/news-bundle                            4.4.57           Adds news functionality to Contao 4
    contao/newsletter-bundle                      4.4.57           Adds newsletter functionality to Contao 4
    doctrine/annotations                          1.13.2           Docblock Annotations Parser
    doctrine/cache                                1.12.1           PHP Doctrine Cache library is a popular cache imple...
    doctrine/collections                          1.6.8            PHP Doctrine Collections library that adds addition...
    doctrine/common                               2.13.3           PHP Doctrine Common project is a library that provi...
    doctrine/dbal                                 2.13.4           Powerful PHP database abstraction layer (DBAL) with...
    doctrine/deprecations                         v0.5.3           A small layer on top of trigger_error(E_USER_DEPREC...
    doctrine/doctrine-bundle                      1.12.13          Symfony DoctrineBundle
    doctrine/doctrine-cache-bundle                1.4.0            Symfony Bundle for Doctrine Cache
    doctrine/event-manager                        1.1.1            The Doctrine Event Manager is a simple PHP event sy...
    doctrine/inflector                            1.4.4            PHP Doctrine Inflector is a small library that can ...
    doctrine/lexer                                1.2.1            PHP Doctrine Lexer parser library that can be used ...
    doctrine/persistence                          1.3.8            The Doctrine Persistence project is a set of shared...
    doctrine/reflection                           1.2.2            The Doctrine Reflection project is a simple library...
    eluceo/ical                                   0.16.1           The eluceo/iCal package offers a abstraction layer ...
    erdmannfreunde/euf_overlay                    1.3.0            Contao Extension to add an overlay to a webpage. Th...
    fig/link-util                                 1.1.2            Common utility implementations for HTTP links
    friendsofsymfony/http-cache                   2.11.0           Tools to manage HTTP caching proxies with PHP
    friendsofsymfony/http-cache-bundle            2.9.2            Set path based HTTP cache headers and send invalida...
    guzzlehttp/guzzle                             6.5.5            Guzzle is a PHP HTTP client library
    guzzlehttp/promises                           1.5.0            Guzzle promises library
    guzzlehttp/psr7                               1.8.3            PSR-7 message implementation that also provides com...
    imagine/imagine                               1.2.4            Image processing for PHP 5.3
    jdorn/sql-formatter                           v1.2.17          a PHP SQL highlighting library
    jeremykendall/php-domain-parser               3.0.0            Public Suffix List based URL parsing implemented in...
    knplabs/knp-menu                              2.6.1            An object oriented menu library
    knplabs/knp-menu-bundle                       v2.3.0           This bundle provides an integration of the KnpMenu ...
    knplabs/knp-time-bundle                       v1.10.0          Knplabs time bundle makes your dates look sensible ...
    league/uri                                    4.2.2            URI manipulation library
    lexik/maintenance-bundle                      v2.1.5           This bundle allows you to place your website in mai...
    matthiasmullie/minify                         1.3.66           CSS & JavaScript minifier, in PHP. Removes whitespa...
    matthiasmullie/path-converter                 1.1.3            Relative path converter
    menatwork/contao-multicolumnwizard            3.3.17           MultiColumWizard for Contao OpenSource CMS
    michelf/php-markdown                          1.9.0            PHP Markdown
    monolog/monolog                               1.26.1           Sends your logs to files, sockets, inboxes, databas...
    nelmio/cors-bundle                            1.5.6            Adds CORS (Cross-Origin Resource Sharing) headers s...
    nelmio/security-bundle                        v2.10.3          Extra security-related features for Symfony: signed...
    numero2/contao-proper-filenames               v2.1.3           Replaces special characters in filenames right afte...
    oneup/contao-ical-export                      2.0.2            A contao module for downloading ical files generate...
    oyejorge/less.php                             v1.7.0.14        PHP port of the Javascript version of LESS http://l...
    paragonie/random_compat                       v9.99.100        PHP 5.x polyfill for random_bytes() and random_int(...
    patchwork/utf8                                v1.3.3           Portable and performant UTF-8, Unicode and Grapheme...
    php-http/client-common                        1.11.0           Common HTTP Client implementations and tools for HT...
    php-http/discovery                            1.14.1           Finds installed HTTPlug implementations and PSR-7 m...
    php-http/guzzle6-adapter                      v1.1.1           Guzzle 6 HTTP Adapter
    php-http/httplug                              v1.1.0           HTTPlug, the HTTP client abstraction for PHP
    php-http/message                              1.12.0           HTTP Message related tools
    php-http/message-factory                      v1.0.2           Factory interfaces for PSR-7 HTTP Message
    php-http/promise                              1.1.0            Promise used for asynchronous HTTP requests
    phpspec/php-diff                              v1.1.3           A comprehensive library for generating differences ...
    phpunit/php-token-stream                      3.1.3            Wrapper around PHP's tokenizer extension.
    psr/cache                                     1.0.1            Common interface for caching libraries
    psr/container                                 1.1.1            Common Container Interface (PHP FIG PSR-11)
    psr/http-message                              1.0.1            Common interface for HTTP messages
    psr/link                                      1.0.0            Common interfaces for HTTP links
    psr/log                                       1.1.4            Common interface for logging libraries
    psr/simple-cache                              1.0.1            Common interfaces for simple caching
    ralouphie/getallheaders                       3.0.3            A polyfill for getallheaders.
    scssphp/scssphp                               v1.8.1           scssphp is a compiler for SCSS written in PHP.
    sensio/distribution-bundle                    v5.0.25          Base bundle for Symfony Distributions
    sensiolabs/ansi-to-html                       v1.1.3           A library to convert a text with ANSI codes to HTML
    sensiolabs/security-checker                   v6.0.3           A security checker for your composer.lock
    simplepie/simplepie                           1.5.6            A simple Atom/RSS parsing library for PHP
    swiftmailer/swiftmailer                       v5.4.12          Swiftmailer, free feature-rich PHP mailer
    symfony/deprecation-contracts                 v2.4.0           A generic function and convention to trigger deprec...
    symfony/http-client                           v5.3.8           Provides powerful methods to fetch HTTP resources s...
    symfony/http-client-contracts                 v2.4.0           Generic abstractions related to HTTP clients
    symfony/mime                                  v5.3.8           Allows manipulating MIME messages
    symfony/monolog-bundle                        v3.6.0           Symfony MonologBundle
    symfony/polyfill-apcu                         v1.23.0          Symfony polyfill backporting apcu_* functions to lo...
    symfony/polyfill-ctype                        v1.23.0          Symfony polyfill for ctype functions
    symfony/polyfill-intl-icu                     v1.23.0          Symfony polyfill for intl's ICU-related data and cl...
    symfony/polyfill-intl-idn                     v1.23.0          Symfony polyfill for intl's idn_to_ascii and idn_to...
    symfony/polyfill-intl-normalizer              v1.23.0          Symfony polyfill for intl's Normalizer class and re...
    symfony/polyfill-mbstring                     v1.23.1          Symfony polyfill for the Mbstring extension
    symfony/polyfill-php56                        v1.20.0          Symfony polyfill backporting some PHP 5.6+ features...
    symfony/polyfill-php70                        v1.20.0          Symfony polyfill backporting some PHP 7.0+ features...
    symfony/polyfill-php72                        v1.23.0          Symfony polyfill backporting some PHP 7.2+ features...
    symfony/polyfill-php73                        v1.23.0          Symfony polyfill backporting some PHP 7.3+ features...
    symfony/polyfill-php80                        v1.23.1          Symfony polyfill backporting some PHP 8.0+ features...
    symfony/service-contracts                     v2.4.0           Generic abstractions related to writing services
    symfony/swiftmailer-bundle                    v2.6.7           Symfony SwiftmailerBundle
    symfony/symfony                               v3.4.49          The Symfony PHP framework
    tecnickcom/tcpdf                              6.4.2            TCPDF is a PHP class for generating PDF documents a...
    terminal42/contao-conditionalformfields       2.3.3            conditionalformfields extension for Contao Open Sou...
    terminal42/dcawizard                          2.4.8            dcaWizard extension for Contao Open Source CMS
    terminal42/header-replay-bundle               1.5.3            Send preflight requests for user context headers an...
    terminal42/notification_center                1.6.1            Notification Center extension for Contao Open Sourc...
    toflar/psr6-symfony-http-cache-store          2.3.1            An alternative store implementation for Symfony's H...
    true/punycode                                 v2.1.1           A Bootstring encoding of Unicode for Internationali...
    twig/twig                                     v1.44.5          Twig, the flexible, fast, and secure template langu...
    ua-parser/uap-php                             v3.9.14          A multi-language port of Browserscope's user agent ...
    webmozart/assert                              1.10.0           Assertions to validate method input/output with nic...
    webmozart/path-util                           2.3.0            A robust cross-platform utility for normalizing, co...

  10. #10
    Alter Contao-Hase
    Registriert seit
    06.07.2009.
    Beiträge
    1.493

    Standard

    Das Lustige: Die Datei wird hochgeladen.

    Die Fehlermeldung erscheint dennoch.

  11. #11
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.114
    Partner-ID
    10107

    Standard

    Das ist ein Fehler, der vermutlich von numero2/contao-proper-filenames ausgelöst wird. Da hast du nicht die neueste Version installiert.

    Davon abgesehen: bevor du dich um Probleme kümmerst, solltest du sicherstellen, dass du die neuesten Versionen aller installierten Paket hast. Darüberhinaus hat Contao 4.4 das Lebensende erreicht und du musst auf Contao 4.9 oder 4.13 aktualisieren.
    » sponsor me via GitHub or PayPal or Revolut

  12. #12
    Alter Contao-Hase
    Registriert seit
    06.07.2009.
    Beiträge
    1.493

    Standard

    Du hattest recht... das update der Erweiterung hat geholfen.

    Und ja, ein update auf Contao 4.9 müsste getan werden...

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •