terminal42 / contao-mp_forms

Real step separation in the form generator of the Contao Open Source CMS
23 stars 12 forks source link

Contao 4.5.7 - Fehlermeldung #26

Closed mj1985 closed 5 years ago

mj1985 commented 6 years ago

Ich bekomme unter Contao 4.5.7 eine Fehlermeldung, sobald ich auf "Formulargenerator" klicke. PHP Version 7.1 auf einem vServer von Hostingwerk.

[2018-04-05 14:19:13] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Type error: preg_match() expects parameter 2 to be string, null given at /var/virtual/user/public/customer/vendor/contao/core-bundle/src/DataContainer/PaletteManipulator.php:220)"} []

Sobald mp_forms deinstalliert ist, kann ich wieder in den Formulargenerator. Weitere installierte Erweiterungen:


        "madeyourday/contao-rocksolid-antispam": "^2.0",
        "madeyourday/contao-rocksolid-custom-elements": "^2.2",
        "jrgregory/m17-sticky-backend-footer": "^2.0",
        "contao-bootstrap/bundle": "^2.0",
        "christianbarkowsky/tabcontrol": "^3.0",
        "delahaye/dlh_googlemaps": "^2.3",
        "terminal42/contao-easy_themes": "^2.2",
        "bugbuster/contao-cron-bundle": "^1.3",
        "fipps/contao-rssimport-bundle": "^4.0",
        "terminal42/contao-leads": "^1.4"```
dmolineus commented 5 years ago

Fehler tritt durch die Strict Type Deklaration in Contao 4.5 und einem überflüssigen ; in mp_forms auf. Mehr hier https://github.com/contao-bootstrap/form/issues/38#issuecomment-411779942

Toflar commented 5 years ago

3.0.8 ist released (https://github.com/terminal42/contao-mp_forms/commit/81d8b3cb412d6b796bc4887b9fe2fce80cea8b6f).

dive13 commented 5 years ago

Ich greife das Thema wieder auf, da ich unter Contao 4.6.10 plötzlich das gleiche Problem habe.

[2018-12-14 09:36:20] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\CoreBundle\Controller\BackendController::mainAction"},"request_uri":"http://projekt.tld/contao?do=form&id=1&ref=Fq95J5tT&rt=omLUROLuxcVinxFr5gFL0L73ukUwPsay62eU21dAk0c&table=tl_form_field","method":"GET"} []

[2018-12-14 09:36:20] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "preg_match() expects parameter 2 to be string, null given" at /kunden/projekt/vendor/contao/core-bundle/src/DataContainer/PaletteManipulator.php line 177 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): preg_match() expects parameter 2 to be string, null given at /kunden/projekt/vendor/contao/core-bundle/src/DataContainer/PaletteManipulator.php:177)"} []

Allerdings habe ich mp_forms gar nicht installiert, sondern folgende Erweiterungen:

    "backboneit/contao-navigation": "^1.8",
    "christianbarkowsky/contao-tiny-compress-images": "^1.0",
    "codefog/contao-mobile_menu": "^2.7",
    "codefog/contao-social_images": "^3.5",
    "contao-bootstrap/bundle": "^2.0",
    "delahaye/dlh_googlemaps": "^2.4",
    "derhaeuptling/contao-mega-menu": "^1.0",
    "derhaeuptling/contao-seo-serp-preview": "^3.0",
    "do-while/contao-backupdb-bundle": "^1.2",
    "hypergalaktisch/contao-animate": "^2.0",
    "madeyourday/contao-rocksolid-slider": "^2.0",
    "menatwork/semantic_html5": "^2.0",
    "netzmacht/contao-font-awesome": "^4.7",
    "netzmacht/contao-iconwizard": "^1.2",
    "terminal42/contao-easy_themes": "^2.2",
    "terminal42/contao-folderpage": "^2.0",
    "trilobit-gmbh/contao-cookiebar-bundle": "^1.0"

Wie lässt sich das Problem in den Griff bekommen?

dmolineus commented 5 years ago

Der Fehler kann durch jede Erweiterung hervorgerufen werden, die ein dca mitbringt. Vermutlich ist es ein Eintrag in tl_form_field, welches am Ende ein Semikolon besitzt. Daran verschluckt sich der PaletteManipulator von Contao.

Wie lässt sich das Problem in den Griff bekommen?

Durch den kompletten Stacktrace, einsehbar über den Aufruf mit app_dev.php. Dann bitte in der entsprechenden Erweiterung als Issue erstellen, da es nichts mit mp_forms zu tun hat.

dive13 commented 5 years ago

Danke für den Tipp! War sehr hilfreich, dadurch war rel. rasch klar, dass der "Übeltäter" pct_iconpicker ist. Da diese Erweiterung nicht über den Contao Manager kommt, hatte ich die gar nicht am Radar.