Zum Inhalt springen

problem mit der installation

Erstellt am 20. Januar 2005 · 4 Antworten · letzte Antwort am 31. Januar 2005

Tags: Frage

sandic ·

hallo, ich habe versucht die news extension nach der dokumentation von dieser seite (die nebenbei bemerkt auch sehr hilfreich war) zu installieren(typo3;v3.7). alles funktionierte auch einwandfrei bis auf das wenn ich ein neues news element anlegen will die folgende fehlermeldung bekomme:

"Table 'baset.tt_news_cat' doesn't exist This may indicate a table defined in tables.php is not existing in the database! "

bzw.

"2: SQL error: 'Table 'baset.tt_news' doesn't exist' (tt_news:NEW41ef9b7b5838e)"

- ich bin mir darüber im klaren das ich wahrscheinlich nur die tabelle anlegen muss, da ich aber keine erfahrung mit sql habe währe ich sehr dankbar wenn mir jmd. sagen könnte wie das geht.

warum typo3 die tabellen-trotz mehrmaliger de- und anschließender reinstallation nicht angelegt hat verstehe ich nicht. würde mich freuen wenn mir jmd hilft..
habe das problem auch schon in anderen foren gefunden, allerdings keine problem lösung..

mfg

Hille ·

Hallo erstmal,

"Table 'baset.tt_news_cat' doesn't exist This may indicate a table defined in tables.php is not existing in the database! "

bzw.

"2: SQL error: 'Table 'baset.tt_news' doesn't exist' (tt_news:NEW41ef9b7b5838e)"

Ja, ja... die alte Leier.

Schau mal unter phpMyAdmin nach, ob du die Tabelle hast.
Wenn nicht, kannst Du diesen SQL-Code

CREATE TABLE tt_news (
  uid int(11) unsigned auto_increment,
  pid int(11) DEFAULT '0' NOT NULL,
  tstamp int(11) unsigned DEFAULT '0' NOT NULL,
  crdate int(11) unsigned DEFAULT '0' NOT NULL,
  deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
  hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
  starttime int(11) unsigned DEFAULT '0' NOT NULL,
  endtime int(11) unsigned DEFAULT '0' NOT NULL,
  fe_group int(11) unsigned DEFAULT '0' NOT NULL,
  title tinytext NOT NULL,
  datetime int(11) unsigned DEFAULT '0' NOT NULL,
  image tinyblob NOT NULL,
  imagecaption text NOT NULL,
  related int(11) DEFAULT '0' NOT NULL,
  short text NOT NULL,
  bodytext mediumtext NOT NULL,
  author tinytext NOT NULL,
  author_email tinytext NOT NULL,
  category int(11) DEFAULT '0' NOT NULL,

  news_files tinyblob NOT NULL,
  links text NOT NULL,
  type tinyint(4) DEFAULT '0' NOT NULL,
  page int(11) DEFAULT '0' NOT NULL,
  keywords text NOT NULL,
  archivedate int(11) DEFAULT '0' NOT NULL,
  ext_url tinytext NOT NULL,
  
  sys_language_uid int(11) DEFAULT '0' NOT NULL,
  l18n_parent int(11) DEFAULT '0' NOT NULL,
  l18n_diffsource mediumblob NOT NULL,
  
  t3ver_oid int(11) unsigned DEFAULT '0' NOT NULL,
  t3ver_id int(11) unsigned DEFAULT '0' NOT NULL,
  t3ver_label varchar(30) DEFAULT '' NOT NULL,

  
  PRIMARY KEY (uid),
  KEY parent (pid)
  KEY t3ver_oid (t3ver_oid)
);

einfügen und ausführen.
Der Witz daran ist, dass MySQL in den neueren Versionen keinen DEFAULT 0 NOT NULL in auto_incement Feldern annimmt.

Prüfe die anderen Codes, die Tabellen für die tt_news anlegen und ändere den Code entsprechend.
Falls es noch zu einem Fehler beim anlegen des indexes auf das Feld

KEY t3ver_oid (t3ver_oid)

kommt, kannst du die Zeile entfernen, die Tabellen anlegen, und zum Schluss legst Du in der Struktur-Übersicht der Tabelle tt_news den Index einfach an.
Und PENG alles läuft wie geschmiert.
OK soweit?
Gruß
Hille

God Luck
😉

sandic ·

vielen dank erstmal würde den vorrschlag gerne ausprobieren..bekomme hier beim anlegen in sql - die fehler meldung das die syntax falsch ist - woran kanns liegen ? m´fg

die felermeldung:
#1064 - 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 'KEY t3ver_oid

Hille ·
sandic schrieb

die felermeldung:
#1064 - 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 'KEY t3ver_oid

Gucks Du hier:

http://www.typo3.net/viewtopic.php?p=76319&highlight=#76319

Gruß
Hille