christianbarkowsky / contao-tabcontrol

Contao Extension :: Tabcontrol
https://brkwsky.de/tabcontrol-contao
8 stars 4 forks source link

4.6 und Hook von 3.5.x #33

Closed jankout closed 5 years ago

jankout commented 5 years ago

Hallo Christian,

ich habe deine neueste Version mit der letzten Contao 4.6.14 installiert. Dabei habe ich auch mein Modul mit dem (offensichtlich) alten Hook von der 3.5.x-Version genommen und unter system/modules gespeichert. Allerdings bekomme ich nun eine Fehlermeldung.

[2019-02-06 14:45:26] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function tabControlHook() on null" at /homepages/21/d357128910/htdocs/contao4/vendor/christianbarkowsky/tabcontrol/elements/ContentTabControl.php line 72 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function tabControlHook() on null at /homepages/21/d357128910/htdocs/contao4/vendor/christianbarkowsky/tabcontrol/elements/ContentTabControl.php:72)"} []

In der config/config.php steht

<?php

$GLOBALS['TL_HOOKS']['tabControlJS'][] = array('TabControlHook', 'tabControlHook');

Weißt du, was ich machen kann, um es zu reparieren? Danke.

christianbarkowsky commented 5 years ago

Puh ... hatten wir bei dir nicht eine Spezialversion gebaut?

jankout commented 5 years ago

Auf jeden Fall konnte ich auf ein anderes JavaScript zugreifen. Ich kann dir das gerne per Mail schicken.