contao/import — Issue #2136: Exception bei Auswahl von Galerie Inhaltstyp
Author: importer
Created: 2011-11-29 19:06:06+00:00
State: open
Labels: backend, Defect

Bei der Auswahl des Galeri-Inhaltstyps im Backend wird folgender Fehler geworfen. Die Abfrage "SELECT pid FROM tl_article WHERE pid='3'" macht keinen Sinn. Das Ergebnis wird im vorliegenden Fall immer 3 sein.

```
Fatal error: Uncaught exception Exception with message Query error: Subquery returns more than 1 row (SELECT id FROM tl_page WHERE id=(SELECT pid FROM tl_article WHERE pid='3') LIMIT 0,1) thrown in /var/www/web114/html/system/libraries/Database.php on line 642

#0 /var/www/web114/html/system/libraries/Database.php(589): Database_Statement->query()
#1 /var/www/web114/html/system/modules/backend/dca/tl_content.php(977): Database_Statement->execute('3')
#2 /var/www/web114/html/system/libraries/Controller.php(2188): tl_content->getGalleryTemplates(Object(DC_Table))
#3 /var/www/web114/html/system/modules/backend/DataContainer.php(227): Controller->prepareForWidget(Array, 'galleryTpl', '', 'galleryTpl', 'tl_content')
#4 /var/www/web114/html/system/drivers/DC_Table.php(1639): DataContainer->row()
#5 /var/www/web114/html/system/modules/backend/Backend.php(212): DC_Table->edit()
#6 /var/www/web114/html/contao/main.php(101): Backend->getBackendModule('article')
#7 /var/www/web114/html/contao/main.php(297): Main->run()
#8 {main}
```

--- _Originally created by fwolf on June 14th, 2010, at 03:59pm (ID 2136)_