Ergebnis 1 bis 2 von 2

Thema: Contao 4.9 und Custum Elements

  1. #1
    Alter Contao-Hase
    Registriert seit
    18.07.2012.
    Ort
    Löbau
    Beiträge
    1.140

    Standard Contao 4.9 und Custum Elements

    Habe aktuell nach umstellung auf php 8.1 folgendes fehler


    Code:
    sprintf(): Argument #1 ($format) must be of type string, array given
    Code:
    TypeError:
    sprintf(): Argument #1 ($format) must be of type string, array given
    
      at vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:816
      at sprintf(array('Preise'), 1)
         (vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:816)
      at MadeYourDay\RockSolidCustomElements\CustomElements->createDcaItem('rsce_field_', 'zeit', array('inputType' => 'list', 'fields' => array('tag' => array('label' => array('Tag'), 'inputType' => 'text', 'eval' => array('tl_class' => 'clr')), 'uhrzeit' => array('label' => array('Uhrzeit'), 'inputType' => 'text', 'eval' => array('tl_class' => 'clr'))), 'label' => 'Zeit', 'elementLabel' => array('Preise'), 'minItems' => 0, 'maxItems' => null), array('rsce_field_zeit_rsce_list_start', 'rsce_field_zeit__rsce_dummy_rsce_list_item_start', 'rsce_field_zeit__rsce_dummy__tag', 'rsce_field_zeit__rsce_dummy__uhrzeit', 'rsce_field_zeit__rsce_dummy_rsce_list_item_stop'), object(DC_Table), false)
         (vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:633)
      at MadeYourDay\RockSolidCustomElements\CustomElements->createDca(object(DC_Table), 'rsce_zeiten', false, null)
         (vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:101)
      at MadeYourDay\RockSolidCustomElements\CustomElements->onloadCallback(object(DC_Table))
         (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:197)
      at Contao\DC_Table->__construct('tl_content', array('tables' => array('tl_article', 'tl_content'), 'table' => array('Contao\\CoreBundle\\Controller\\BackendCsvImportController', 'importTableWizardAction'), 'list' => array('Contao\\CoreBundle\\Controller\\BackendCsvImportController', 'importListWizardAction')))
         (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:409)
      at Contao\Backend->getBackendModule('article', null)
         (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:169)
      at Contao\BackendMain->run()
         (vendor/contao/core-bundle/src/Controller/BackendController.php:48)
      at Contao\CoreBundle\Controller\BackendController->mainAction()
         (vendor/symfony/http-kernel/HttpKernel.php:169)
      at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
         (vendor/symfony/http-kernel/HttpKernel.php:81)
      at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
         (vendor/symfony/http-kernel/Kernel.php:201)
      at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
         (web/index.php:31)
    scheinbar liegt das ja an der php 8.1 gibt es dafür ein fix? Umstellung zurück auf 7.4 macht auch nur probleme und update auf 4.13 kommt auch nicht so wirklich in frage

    EDIT: elementLabel darf wohl kein array sein....
    Geändert von WebRoxx (04.05.2023 um 07:12 Uhr)
    Liebe Grüße
    WebRoxx


  2. #2
    Contao-Nutzer
    Registriert seit
    10.06.2021.
    Beiträge
    242
    Contao-Projekt unterstützen

    Support Contao

    Standard

    elementLabel darf kein Array sein, sondern ein String. Musst mal durch deine Custom Elemente schauen, wo das überall so ist und anpassen.

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
  •