felixpfeiffer / Contao-Subcolumns

Subcolumns version 2
5 stars 9 forks source link

PHP 7-Kompatibilität Fehler bei aufruf von contao - toggleVisibility #37

Open css-umsetzung opened 8 years ago

css-umsetzung commented 8 years ago

Beim umschaltung von visible eines Elements im Backend / Artikel

Warning: func_get_arg(): Argument 12 not passed to function in system/modules/core/dca/tl_content.php on line 1705

0 [internal function]: __error(2, 'func_get_arg():...', '/var/www/vhosts...', 1705, Array)

1 system/modules/core/dca/tl_content.php(1705): func_get_arg(12)

2 system/modules/ce-access/CeAccess.php(148): tl_content->toggleIcon(Array, NULL, 'Sichtbarkeit \xC3\xA4...', 'Die Sichtbarkei...', 'visible.gif', ' class="toggle"...')

3 system/modules/core/classes/DataContainer.php(672): CeAccess->toggleButton(Array, NULL, 'Sichtbarkeit \xC3\xA4...', 'Die Sichtbarkei...', 'visible.gif', ' class="toggle"...', 'tl_content', NULL, NULL, false, NULL, '103', Object(Contao\DC_Table))

4 system/modules/core/drivers/DC_Table.php(4272): Contao\DataContainer->generateButtons(Array, 'tl_content', NULL, false, NULL, NULL, '103')

5 system/modules/core/drivers/DC_Table.php(378): Contao\DC_Table->parentView()

6 system/modules/core/classes/Backend.php(650): Contao\DC_Table->showAll()

7 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('article')

8 contao/main.php(20): Contao\BackendMain->run()

9 {main}

Fatal error: Uncaught exception TypeError with message Argument 1 passed to tl_content_sc::createPalette() must be an instance of Contao\DataContainer, instance of tl_content given, called in /var/www/vhosts/soccerio.de/httpdocs/system/modules/core/dca/tl_content.php on line 1761 thrown in system/modules/Subcolumns/dca/tl_content.php on line 166

0 system/modules/core/dca/tl_content.php(1761): tl_content_sc->createPalette(Object(tl_content))

1 system/modules/core/dca/tl_content.php(1705): tl_content->toggleVisibility('122', true, NULL)

2 system/modules/ce-access/CeAccess.php(148): tl_content->toggleIcon(Array, NULL, 'Sichtbarkeit \xC3\xA4...', 'Die Sichtbarkei...', 'visible.gif', ' class="toggle"...')

3 system/modules/core/classes/DataContainer.php(672): CeAccess->toggleButton(Array, NULL, 'Sichtbarkeit \xC3\xA4...', 'Die Sichtbarkei...', 'visible.gif', ' class="toggle"...', 'tl_content', NULL, NULL, false, NULL, '103', Object(Contao\DC_Table))

4 system/modules/core/drivers/DC_Table.php(4272): Contao\DataContainer->generateButtons(Array, 'tl_content', NULL, false, NULL, NULL, '103')

5 system/modules/core/drivers/DC_Table.php(378): Contao\DC_Table->parentView()

6 system/modules/core/classes/Backend.php(650): Contao\DC_Table->showAll()

7 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('article')

8 contao/main.php(20): Contao\BackendMain->run()

9 {main}