Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

3.0 und 2.11: Fehlermeldung Benutzergruppen #5217

Closed
georgi56 opened this Issue · 5 comments

2 participants

georgi56 Leo Feyer
georgi56

Ich will, dass mein Redakteur einen normalen Text einstellen und ein Bild hinzufügen darf. Dazu soll er die "Breite und Höhe" des Bildes und die Ausrichtung bestimmen düfen. NICHT aber den "Bildabstand" (das regele ich über CSS).
Dazu nehme ich in der Benutzergruppenverwaltung unter tl_content den Haken bei "Bildabstand" heraus. Wenn sich jetzt der Redakteur anmeldet, Text und Bild einstellt und mit speichern und zurück abschließt, erscheint sowohl im BE als auch im FE folgende Fehlermeldung:

Warning: Illegal string offset 'top' in /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php on line 2104

#0 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(2104): __error(2, 'Illegal string ...', '/homepages/28/d...', 2104, Array)
#1 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(3017): Contao\Controller::generateMargin('', 'padding')
#2 /homepages/28/d37771296/htdocs/live/system/modules/core/elements/ContentText.php(79): Contao\Controller::addImageToTemplate(Object(Contao\FrontendTemplate), Array)
#3 /homepages/28/d37771296/htdocs/live/system/modules/core/elements/ContentElement.php(151): Contao\ContentText->compile()
#4 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(426): Contao\ContentElement->generate()
#5 /homepages/28/d37771296/htdocs/live/system/cache/dca/tl_content.php(999): Contao\Controller->getContentElement('611')
#6 /homepages/28/d37771296/htdocs/live/system/modules/core/drivers/DC_Table.php(3852): tl_content->addCteType(Array)
#7 /homepages/28/d37771296/htdocs/live/system/modules/core/drivers/DC_Table.php(351): Contao\DC_Table->parentView()
#8 /homepages/28/d37771296/htdocs/live/system/modules/core/classes/Backend.php(382): Contao\DC_Table->showAll()
#9 /homepages/28/d37771296/htdocs/live/contao/main.php(121): Contao\Backend->getBackendModule('article')
#10 /homepages/28/d37771296/htdocs/live/contao/main.php(319): Main->run()
#11 {main}


Warning: Illegal string offset 'right' in /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php on line 2105

#0 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(2105): __error(2, 'Illegal string ...', '/homepages/28/d...', 2105, Array)
#1 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(3017): Contao\Controller::generateMargin('', 'padding')
#2 /homepages/28/d37771296/htdocs/live/system/modules/core/elements/ContentText.php(79): Contao\Controller::addImageToTemplate(Object(Contao\FrontendTemplate), Array)
#3 /homepages/28/d37771296/htdocs/live/system/modules/core/elements/ContentElement.php(151): Contao\ContentText->compile()
#4 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(426): Contao\ContentElement->generate()
#5 /homepages/28/d37771296/htdocs/live/system/cache/dca/tl_content.php(999): Contao\Controller->getContentElement('611')
#6 /homepages/28/d37771296/htdocs/live/system/modules/core/drivers/DC_Table.php(3852): tl_content->addCteType(Array)
#7 /homepages/28/d37771296/htdocs/live/system/modules/core/drivers/DC_Table.php(351): Contao\DC_Table->parentView()
#8 /homepages/28/d37771296/htdocs/live/system/modules/core/classes/Backend.php(382): Contao\DC_Table->showAll()
#9 /homepages/28/d37771296/htdocs/live/contao/main.php(121): Contao\Backend->getBackendModule('article')
#10 /homepages/28/d37771296/htdocs/live/contao/main.php(319): Main->run()
#11 {main}


Warning: Illegal string offset 'bottom' in /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php on line 2106

#0 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(2106): __error(2, 'Illegal string ...', '/homepages/28/d...', 2106, Array)
#1 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(3017): Contao\Controller::generateMargin('', 'padding')
#2 /homepages/28/d37771296/htdocs/live/system/modules/core/elements/ContentText.php(79): Contao\Controller::addImageToTemplate(Object(Contao\FrontendTemplate), Array)
#3 /homepages/28/d37771296/htdocs/live/system/modules/core/elements/ContentElement.php(151): Contao\ContentText->compile()
#4 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(426): Contao\ContentElement->generate()
#5 /homepages/28/d37771296/htdocs/live/system/cache/dca/tl_content.php(999): Contao\Controller->getContentElement('611')
#6 /homepages/28/d37771296/htdocs/live/system/modules/core/drivers/DC_Table.php(3852): tl_content->addCteType(Array)
#7 /homepages/28/d37771296/htdocs/live/system/modules/core/drivers/DC_Table.php(351): Contao\DC_Table->parentView()
#8 /homepages/28/d37771296/htdocs/live/system/modules/core/classes/Backend.php(382): Contao\DC_Table->showAll()
#9 /homepages/28/d37771296/htdocs/live/contao/main.php(121): Contao\Backend->getBackendModule('article')
#10 /homepages/28/d37771296/htdocs/live/contao/main.php(319): Main->run()
#11 {main}


Warning: Illegal string offset 'left' in /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php on line 2107

#0 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(2107): __error(2, 'Illegal string ...', '/homepages/28/d...', 2107, Array)
#1 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(3017): Contao\Controller::generateMargin('', 'padding')
#2 /homepages/28/d37771296/htdocs/live/system/modules/core/elements/ContentText.php(79): Contao\Controller::addImageToTemplate(Object(Contao\FrontendTemplate), Array)
#3 /homepages/28/d37771296/htdocs/live/system/modules/core/elements/ContentElement.php(151): Contao\ContentText->compile()
#4 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Controller.php(426): Contao\ContentElement->generate()
#5 /homepages/28/d37771296/htdocs/live/system/cache/dca/tl_content.php(999): Contao\Controller->getContentElement('611')
#6 /homepages/28/d37771296/htdocs/live/system/modules/core/drivers/DC_Table.php(3852): tl_content->addCteType(Array)
#7 /homepages/28/d37771296/htdocs/live/system/modules/core/drivers/DC_Table.php(351): Contao\DC_Table->parentView()
#8 /homepages/28/d37771296/htdocs/live/system/modules/core/classes/Backend.php(382): Contao\DC_Table->showAll()
#9 /homepages/28/d37771296/htdocs/live/contao/main.php(121): Contao\Backend->getBackendModule('article')
#10 /homepages/28/d37771296/htdocs/live/contao/main.php(319): Main->run()
#11 {main}


Warning: Cannot modify header information - headers already sent by (output started at /homepages/28/d37771296/htdocs/live/system/helper/functions.php:69) in /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Template.php on line 277

#0 [internal function]: __error(2, 'Cannot modify h...', '/homepages/28/d...', 277, Array)
#1 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Template.php(277): header('Vary: User-Agen...', false)
#2 /homepages/28/d37771296/htdocs/live/system/modules/core/classes/BackendTemplate.php(156): Contao\Template->output()
#3 /homepages/28/d37771296/htdocs/live/contao/main.php(310): Contao\BackendTemplate->output()
#4 /homepages/28/d37771296/htdocs/live/contao/main.php(125): Main->output()
#5 /homepages/28/d37771296/htdocs/live/contao/main.php(319): Main->run()
#6 {main}


Warning: Cannot modify header information - headers already sent by (output started at /homepages/28/d37771296/htdocs/live/system/helper/functions.php:69) in /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Template.php on line 278

#0 [internal function]: __error(2, 'Cannot modify h...', '/homepages/28/d...', 278, Array)
#1 /homepages/28/d37771296/htdocs/live/system/modules/core/library/Contao/Template.php(278): header('Content-Type: t...')
#2 /homepages/28/d37771296/htdocs/live/system/modules/core/classes/BackendTemplate.php(156): Contao\Template->output()
#3 /homepages/28/d37771296/htdocs/live/contao/main.php(310): Contao\BackendTemplate->output()
#4 /homepages/28/d37771296/htdocs/live/contao/main.php(125): Main->output()
#5 /homepages/28/d37771296/htdocs/live/contao/main.php(319): Main->run()
#6 {main}

Erst, wenn ich den den Haken bei "Bildabstand" setze, ensteht die Fehlermeldung nicht mehr.

Ich möchte den Redakteur aber eine möglichst einfache Maske und wenig Spielmöglichkeiten geben. Aufgrund des Verhaltens von Conatao (mE erst seit 2.11.7) musste ich "Bildabstand" mit dem Hinweis an den Redakteur hinzugeben, er möge es ignorieren und dort nichts einsetzen.

Ist das so gewollt? Oder ist das ein Bug?

Gruß Georgi

Leo Feyer
Owner

Tritt das Problem mit der 2.11.8 auch auf? Ich kann es nämlich hier nicht reproduzieren.

georgi56
georgi56

So, heute Update auf 2.11.8: Fehlermeldung bei Bildabstand "ausblenden" in tl_content wie folgt:

Warning: Illegal string offset 'top' in /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php on line 2564

#0 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(2564): __error(2, 'Illegal string ...', '/homepages/28/d...', 2564, Array)
#1 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(3587): Controller->generateMargin('', 'padding')
#2 /homepages/28/d37771296/htdocs/CMS/system/modules/frontend/ContentText.php(74): Controller->addImageToTemplate(Object(FrontendTemplate), Array)
#3 /homepages/28/d37771296/htdocs/CMS/system/modules/frontend/ContentElement.php(139): ContentText->compile()
#4 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(511): ContentElement->generate()
#5 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/dca/tl_content.php(820): Controller->getContentElement('496')
#6 /homepages/28/d37771296/htdocs/CMS/system/drivers/DC_Table.php(3687): tl_content->addCteType(Array)
#7 /homepages/28/d37771296/htdocs/CMS/system/drivers/DC_Table.php(344): DC_Table->parentView()
#8 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/Backend.php(287): DC_Table->showAll()
#9 /homepages/28/d37771296/htdocs/CMS/contao/main.php(120): Backend->getBackendModule('article')
#10 /homepages/28/d37771296/htdocs/CMS/contao/main.php(230): Main->run()
#11 {main}


Warning: Illegal string offset 'right' in /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php on line 2565

#0 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(2565): __error(2, 'Illegal string ...', '/homepages/28/d...', 2565, Array)
#1 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(3587): Controller->generateMargin('', 'padding')
#2 /homepages/28/d37771296/htdocs/CMS/system/modules/frontend/ContentText.php(74): Controller->addImageToTemplate(Object(FrontendTemplate), Array)
#3 /homepages/28/d37771296/htdocs/CMS/system/modules/frontend/ContentElement.php(139): ContentText->compile()
#4 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(511): ContentElement->generate()
#5 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/dca/tl_content.php(820): Controller->getContentElement('496')
#6 /homepages/28/d37771296/htdocs/CMS/system/drivers/DC_Table.php(3687): tl_content->addCteType(Array)
#7 /homepages/28/d37771296/htdocs/CMS/system/drivers/DC_Table.php(344): DC_Table->parentView()
#8 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/Backend.php(287): DC_Table->showAll()
#9 /homepages/28/d37771296/htdocs/CMS/contao/main.php(120): Backend->getBackendModule('article')
#10 /homepages/28/d37771296/htdocs/CMS/contao/main.php(230): Main->run()
#11 {main}


Warning: Illegal string offset 'bottom' in /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php on line 2566

#0 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(2566): __error(2, 'Illegal string ...', '/homepages/28/d...', 2566, Array)
#1 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(3587): Controller->generateMargin('', 'padding')
#2 /homepages/28/d37771296/htdocs/CMS/system/modules/frontend/ContentText.php(74): Controller->addImageToTemplate(Object(FrontendTemplate), Array)
#3 /homepages/28/d37771296/htdocs/CMS/system/modules/frontend/ContentElement.php(139): ContentText->compile()
#4 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(511): ContentElement->generate()
#5 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/dca/tl_content.php(820): Controller->getContentElement('496')
#6 /homepages/28/d37771296/htdocs/CMS/system/drivers/DC_Table.php(3687): tl_content->addCteType(Array)
#7 /homepages/28/d37771296/htdocs/CMS/system/drivers/DC_Table.php(344): DC_Table->parentView()
#8 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/Backend.php(287): DC_Table->showAll()
#9 /homepages/28/d37771296/htdocs/CMS/contao/main.php(120): Backend->getBackendModule('article')
#10 /homepages/28/d37771296/htdocs/CMS/contao/main.php(230): Main->run()
#11 {main}


Warning: Illegal string offset 'left' in /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php on line 2567

#0 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(2567): __error(2, 'Illegal string ...', '/homepages/28/d...', 2567, Array)
#1 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(3587): Controller->generateMargin('', 'padding')
#2 /homepages/28/d37771296/htdocs/CMS/system/modules/frontend/ContentText.php(74): Controller->addImageToTemplate(Object(FrontendTemplate), Array)
#3 /homepages/28/d37771296/htdocs/CMS/system/modules/frontend/ContentElement.php(139): ContentText->compile()
#4 /homepages/28/d37771296/htdocs/CMS/system/libraries/Controller.php(511): ContentElement->generate()
#5 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/dca/tl_content.php(820): Controller->getContentElement('496')
#6 /homepages/28/d37771296/htdocs/CMS/system/drivers/DC_Table.php(3687): tl_content->addCteType(Array)
#7 /homepages/28/d37771296/htdocs/CMS/system/drivers/DC_Table.php(344): DC_Table->parentView()
#8 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/Backend.php(287): DC_Table->showAll()
#9 /homepages/28/d37771296/htdocs/CMS/contao/main.php(120): Backend->getBackendModule('article')
#10 /homepages/28/d37771296/htdocs/CMS/contao/main.php(230): Main->run()
#11 {main}


Warning: Cannot modify header information - headers already sent by (output started at /homepages/28/d37771296/htdocs/CMS/system/functions.php:161) in /homepages/28/d37771296/htdocs/CMS/system/libraries/Template.php on line 267

#0 [internal function]: __error(2, 'Cannot modify h...', '/homepages/28/d...', 267, Array)
#1 /homepages/28/d37771296/htdocs/CMS/system/libraries/Template.php(267): header('Vary: User-Agen...', false)
#2 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/BackendTemplate.php(161): Template->output()
#3 /homepages/28/d37771296/htdocs/CMS/contao/main.php(221): BackendTemplate->output()
#4 /homepages/28/d37771296/htdocs/CMS/contao/main.php(123): Main->output()
#5 /homepages/28/d37771296/htdocs/CMS/contao/main.php(230): Main->run()
#6 {main}


Warning: Cannot modify header information - headers already sent by (output started at /homepages/28/d37771296/htdocs/CMS/system/functions.php:161) in /homepages/28/d37771296/htdocs/CMS/system/libraries/Template.php on line 268

#0 [internal function]: __error(2, 'Cannot modify h...', '/homepages/28/d...', 268, Array)
#1 /homepages/28/d37771296/htdocs/CMS/system/libraries/Template.php(268): header('Content-Type: t...')
#2 /homepages/28/d37771296/htdocs/CMS/system/modules/backend/BackendTemplate.php(161): Template->output()
#3 /homepages/28/d37771296/htdocs/CMS/contao/main.php(221): BackendTemplate->output()
#4 /homepages/28/d37771296/htdocs/CMS/contao/main.php(123): Main->output()
#5 /homepages/28/d37771296/htdocs/CMS/contao/main.php(230): Main->run()
#6 {main}

Contao Open Source CMS 2.11.8

Aktivieren von Bildabstand und dann Artikel neu speichern, lässt die Fehlermeldung verschwinden.

=> Weiterer Fehler: In der Mediabox lässt sich kein mp4 Video abspielen (unter 3.0.3 kein Problem). Alles wie in Forum beschrieben ohne Erfolg ausprobiert.

=> 3.0.x Fehler im css-Editor (nicht der eigene, sondern der mitgelieferte im ER): css-editor stellt beim Speichern den Kommentar dem selector vor Selector hat dan fogenden Inhalt: "stylsheet für mobile #left"
Wo soll ich das mal melden?

Gruß Georgi

Leo Feyer
Owner

Behoben in 73f9b64.

Leo Feyer leofeyer closed this
georgi56

2.11.8: Danke Leo das war's wohl: Fehlermeldung kommt nicht mehr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.