Hmm,
Code:
[21-Apr-2016 14:02:56 Europe/Berlin] PHP Fatal error: Uncaught exception 'Exception' with message 'Too few arguments to build the query string' thrown in /var/www/virtual/xxx/system/modules/core/library/Contao/Database/Statement.php on line 331
#0 /var/www/virtual/xxx/system/modules/core/library/Contao/Database/Statement.php(262): Contao\Database\Statement->replaceWildcards(Array)
#1 /var/www/virtual/xxx/system/modules/core/library/Contao/Model.php(1166): Contao\Database\Statement->execute('1')
#2 /var/www/virtual/xxx/templates/nav_siblings.php(4): Contao\Model::countBy('pid = ?', '1')
#3 /var/www/virtual/xxx/system/modules/core/library/Contao/InsertTags.php(1113): include('/var/www/virtua...')
#4 /var/www/virtual/xxx/system/modules/core/library/Contao/Controller.php(692): Contao\InsertTags->replace('<!DOCTYPE html>...', false)
#5 /var/www/virtual/xxx/system/modules/core/classes/FrontendTemplate.php(100): Contao\Controller::replaceInsertTags('<!DOCTYPE html>...', false)
#6 /var/www/virtual/xxx/system/modules/core/pages/PageRegular.php(190): Contao\FrontendTemplate->output(true)
#7 /var/www/virtual/xxx/system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#8 /var/www/virtual/xxx/index.php(20): Contao\FrontendIndex->run()
#9 {main}
So wirft es keinen Fehler mehr, zeigt mir dafür aber immer noch eine einzelne Seite.
PHP-Code:
if (\PageModel::countByPid($objPage->pid) < 2)
return;