Zum Inhalt springen

COMPARE-Fehler mysql_fetch_assoc()

Erstellt am 29. August 2008 · 1 Antwort · letzte Antwort am 29. August 2008

Tags: Datenbank, Frage

yes ·

Hallo,

ich bin ein TYPO3-Newbie und habe erfolgreich meien erste Seite erzeugt (Template, Pagecontent, ImageMagick funktionieren ohne Probleme). Wenn ich aber versuche, eine Extension zu installieren (z.B. tt_news oder TemplaVoila), bekomme ich folgende Fehlermeldungen:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\new\t3lib\class.t3lib_db.php on line 1009

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\new\t3lib\class.t3lib_db.php:1009) in C:\xampp\htdocs\new\typo3\sysext\install\mod\class.tx_install.php on line 4898

Die gleichen Meldungen bekomme ich auch wenn ich in Install Tool einen COMPARE mit der Datenbank mache.

Ich habe den Webserver mit Hilfe von XAMPP vor 2 Tagen installiert, also Apache, MySQL, und PHP sind auf dem neuesten Zustand.

Hat jemand eine Ahnung, was ich falsch gemacht habe?

Danke

yes ·

htdocs\new\t3lib\class.t3lib_db.php line 1009 ist folgendes:

function admin_get_fields($tableName) {
$output = array();

$columns_res = mysql_query('SHOW COLUMNS FROM `'.$tableName.'`', $this->link);
while($fieldRow = mysql_fetch_assoc($columns_res)) {
$output[$fieldRow['Field']] = $fieldRow;
}

return $output;
}

C:\xampp\htdocs\new\typo3\sysext\install\mod\class.tx_install.php line 4898 ist:

function output($content) {
header ('Content-Type: text/html; charset=' .
($GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset']?$GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset']:'iso-8859-1'));
echo $content;
}