Zum Inhalt springen

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 'FROM tx_schoolnet_category WHERE uid='4' AND NOT…

Erstellt am 25. Februar 2015 · 2 Antworten · letzte Antwort am 26. Februar 2015

Tags: Datenbank, TYPO3 6, Frage

MartinBen ·

Hallo allerseits,

ich habe in Problem mit meiner Typo3 Testinstallation.
Um schön testen zu können habe ich eine Kopie meines Typo3 6.2.9 Systems auf eine andere Domain gezogen. Es hat auch alles geklappt.
Jetzt habe ich jedoch im installtool bei "Configuration Presets" > "Development / Production settings" von "Production" auf "Development" umgeschaltet, um mehr Infos zu bekommen.
Dabei erscheint auf einigen Seiten nun diese Fehlermeldung:

caller TYPO3\CMS\Core\Database\DatabaseConnection::exec_SELECTquery
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 'FROM tx_schoolnet_category WHERE uid='4' AND NOT deleted' at line 1
lastBuiltQuery SELECT FROM tx_schoolnet_category WHERE uid='4' AND NOT deleted
debug_backtrace require(rc-6.2.9/typo3/sysext/cms/tslib/index_ts.php),rc-6.2.9/index.php#28 // TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript#232 // TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->recursivelyReplaceIntPlaceholdersInContent#3609 // TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript_process#3641 // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->USER#3693 // TYPO3\CMS\Frontend\ContentObject\UserContentObject->render#861 // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction#41 // call_user_func_array#6603 // TYPO3\CMS\Extbase\Core\Bootstrap->run# // TYPO3\CMS\Extbase\Core\Bootstrap->handleRequest#184 // TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler->handleRequest#195 // TYPO3\CMS\Extbase\Mvc\Dispatcher->dispatch#56 // TYPO3\CMS\Extbase\Mvc\Controller\ActionController->processRequest#69 // TYPO3\CMS\Extbase\Mvc\Controller\ActionController->callActionMethod#157 // call_user_func_array#322 // Netzrezepte\Netzschool\Controller\SchoolController->breadAction# // Netzrezepte\Netzschool\Controller\SchoolController->processArticle#2341 // TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder->build#2431 // TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder->buildFrontendUri#567 // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->typoLink_URL#640 // TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->typoLink#6253 // TYPO3\CMS\Core\TypoScript\TemplateService->linkData#6080 // TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction#1540 // call_user_func_array#4254 // tx_realurl->encodeSpURL# // tx_realurl->encodeSpURL_doEncode#269 // tx_realurl->encodeSpURL_gettingPostVarSets#406 // tx_realurl->encodeSpURL_setSequence#500 // tx_realurl->lookUpTranslation#650 // TYPO3\CMS\Core\Database\DatabaseConnection->exec_SELECTquery#1943 // TYPO3\CMS\Core\Database\DatabaseConnection->debug#289

Das erstaunliche ist jedoch, dass der Fehler nicht erscheint, wenn ich "Development" in der Live-Umgebung aktiviere.

Irgendwie habe ich das Gefühl, dass dies ein Bug in der Version 6.2.9 ist. Kann das sein? Denn das Problem hatte ich in früheren Version des 6.2er Zweiges nicht. Außerdem habe ich ähnlich Fehler auch im Cache von großen Seiten gefunden, z.B. bei fti.de: http://webcache.googleusercontent.com/search?q=cache:GjKLlQ1PN8gJ:www.fti.de/reiseangebote/hotel/griechenland/molos_insel_korfu/attika_beach_villa.html+&cd=2&hl=de&ct=clnk&gl=de

Vielen Dank für jede Mühe!

Mit besten Grüßen,

Markus Dange

jenses ·

Unterschiedliche PHP/MySQL-Versionen auf den beiden Servern?
WHERE uid='4' - einfache Anführungszeichen um einen int-Wert,
vielleicht stört sich die eine MySQL-Installation7Konfiguration dran?

MartinBen ·

Danke für den Hinweis, aber die Datenbanken und MySQL-Versionen sind identisch und auf demselben Server.
Der Idee WHERE uid='4' könnte das Problem verursachen, werde ich mal genauer verfolgen, konnte aber auf den ersten Blick hier keinen Fehler im Code finden.

Beste Grüße,

Markus Dange