Guten Tag,
im Zuge eines mehrsprachigen Aufbaus der Seitenstruktur habe ich die Rootpage kopiert / eingefügt / mit Sprachkürzel versehen und an das untere Ende des Seitenbaumes verschoben.
Seitdem bekomme ich beim Versuch die Seitenstruktur einzusehen die Fehlermeldung:
Fatal error: Uncaught exception Exception with message Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY sorting' at line 1 (SELECT id,pid FROM tl_article WHERE pid IN() ORDER BY sorting) thrown in system/modules/core/library/Contao/Database/Statement.php on line 297
in Zeile 297 steht:
PHP-Code:
/**
* Directly send a query string to the database
*
* @param string $strQuery The query string
*
* @return \Database\Result|\Database\Statement The result object or the statement object if there is no result set
*
* @throws \Exception If the query cannot be executed
*/
public function query($strQuery='')
{
if (!empty($strQuery))
{
$this->strQuery = trim($strQuery);
}
// Make sure there is a query string
if ($this->strQuery == '')
{
throw new \Exception('Empty query string');
}
$this->intQueryStart = microtime(true);
// Execute the query
if (($this->resResult = $this->execute_query()) == false)
{
throw new \Exception(sprintf('Query error: %s (%s)', $this->error, $this->strQuery));
}
$this->intQueryEnd = microtime(true);
// No result set available
if (!is_resource($this->resResult) && !is_object($this->resResult))
{
$this->debugQuery();
return $this;
}
// Instantiate a result object
$objResult = $this->createResult($this->resResult, $this->strQuery);
$this->debugQuery($objResult);
return $objResult;
}
Gibt es eine Möglichkeit die neue Rootpage zu entfernen ohne den Weg über die Seitenstruktur des Backend zu gehen ?
Lesezeichen