Zum Inhalt springen

mysql_fetch_row(): supplied argument is not a valid MySQL re

Erstellt am 17. März 2005 · 7 Antworten · letzte Antwort am 26. April 2005

Tags: tt_news, Datenbank, Frage

radyserb ·

Hallo,
nach Aktivierung der Erweiterung "News" im Extension-Manager erscheint die Fehlermeldung:

mysql_fetch_row(): supplied argument is not a valid MySQL result resource 
in .../typo3/t3lib/class.t3lib_db.php on line 736
Warning: Cannot modify header information - headers already sent by (output started at /.../typo3/t3lib/class.t3lib_db.php:736) in /.../typo3/template.php on line 601

Kennt jemand das Problem? Kann mir jemand weiterhelfen?

slp-web ·

ja kenn ich. das bedeutet häcjstwahrscheinich, dass in in /.../typo3/template.php on line 601 nach dem end-tag von php (php?> oder so, weiss nimmer genau), noch leerzeilen oder andere zeichen drinnen sind. einfach aus der datei rauslöschen und s'passt.

uschi ·

und wenn's das nicht ist? bei mir ist in der datei alles i.o.
ich habe tt_news nicht installiert, nur tt_board. ich hab meine seite auf den neuen server exportiert und seither kommt diese meldung. auf dem alten server läuft sie nach wie vor problemlos...
hast du noch andere ideen?

danke und gruss
uschi

simba ·

hallo zusammen,

wie prüft man denn, ob alle tabellen angelegt wurden?

ich habe tt_board installiert und im backend folgende fehlermeldung gekriegt.

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/evbgch/public_html/typo3/t3lib/class.t3lib_db.php on line 702

Warning: Cannot modify header information - headers already sent by (output started at /home/evbgch/public_html/typo3/t3lib/class.t3lib_db.php:702) in /home/evbgch/public_html/typo3/template.php on line 596

dazu gibt es bei der extension im installationsstatus noch enige fehlermeldungen:

Database status:	Table error!
Probably one or more required fields/tables are missing in the database!

tx_ttboard	
Errors:	Some tables or fields are of wrong type!	
Naming errors:	[exception]	
Files changed?	
A difference between the originally installed version and the current was detected!

Modified files:
class.tx_ttboard_wizicon.php
ext_tables.php
tca.php
pi/#board_template2.tmpl#
pi/board_submit.inc
pi/class.tx_ttboard.php
doc/manual.sxw
ext_icon__h.gif
locallang_csh_ttboard.php

könnt ihr was damit anfangen und mir sagen, wie ich weiter vorgehen soll?

merci und gruss

markus

Space-Teddy ·

*push*

hm hab auch den fehler bei dem tt_board ...
wundersamer weise auf meinem localen test server keine fehlermeldung

sobald es auf dem offiziellen webserver lauffen soll ... gleiche fehlermeldung ....

wollte mal hören ob es da noch einen lösungs ansatz gibt ...

--------edited
hm gut ....wie bekomm ich denn die tt_board tabellen ins mysql ...wenn er das beim ext installl nit macht ....

gibts da ne alternatieve ....zum hand anlegen ;D
--------edited

hm beim versuch die ext_table.sql von der tt_board extension
per phpmyadmin in die mysql daten bank zu laden ... bekomme ich folgende fehlermeldung

Fehler

SQL-Befehl : 

CREATE TABLE tt_board(
uid int( 11 ) unsigned DEFAULT '0' NOT NULL AUTO_INCREMENT ,
pid int( 11 ) unsigned DEFAULT '0' NOT NULL ,
deleted tinyint( 3 ) unsigned DEFAULT '0' NOT NULL ,
tstamp int( 11 ) unsigned DEFAULT '0' NOT NULL ,
crdate int( 11 ) unsigned DEFAULT '0' NOT NULL ,
author varchar( 80 ) DEFAULT '' NOT NULL ,
email varchar( 80 ) DEFAULT '' NOT NULL ,
subject tinytext NOT NULL ,
message text NOT NULL ,
hidden tinyint( 4 ) unsigned DEFAULT '0' NOT NULL ,
parent int( 10 ) unsigned DEFAULT '0' NOT NULL ,
notify_me tinyint( 3 ) unsigned DEFAULT '0' NOT NULL ,
doublePostCheck int( 11 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( uid ) ,
KEY parent( pid ) ,
KEY parent_select( pid, parent )
)

MySQL meldet: 

#1067 - Invalid default value for 'uid'

hätte evtl jemand eine funktionierende .sql datei für mich

Space-Teddy ·

lösungs verweis ...falls jemand die gleich ****** hat

hab die lösung hier gefunden ... nach na flasche rotwein und langem quälen der such funktion ;D

#19673

mein ext_tables.sql

sieht jetzt so aus und damit ging es irgendwie ,D

#
# Table structure for table 'tt_board'
#
CREATE TABLE tt_board (
  uid int(11) unsigned  NOT NULL auto_increment,
  pid int(11) unsigned DEFAULT '0' NOT NULL,
  deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
  tstamp int(11) unsigned DEFAULT '0' NOT NULL,
  crdate int(11) unsigned DEFAULT '0' NOT NULL,
  author varchar(80) DEFAULT '' NOT NULL,
  email varchar(80) DEFAULT '' NOT NULL,
  subject tinytext NOT NULL,
  message text NOT NULL,
  hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
  parent int(10) unsigned DEFAULT '0' NOT NULL,
  notify_me tinyint(3) unsigned DEFAULT '0' NOT NULL,
  doublePostCheck int(11) DEFAULT '0' NOT NULL,
  PRIMARY KEY (uid),
  KEY parent (pid),
  KEY parent_select (pid,parent)
);