Seite 1 von 1

SQL ERROR [ mysql4 ]

Verfasst: 01.04.2008 21:42
von Hemo
Hallo zusammen :)
Ich habe einen ganz bösen Fehler.
Das Forum ist lauffähig und wird schon mehrere Jahre benutzt hat auch schon diverse Konvertierungen und Backups mitgemacht..

Nun heute hab ich ein zweites Forum auf den Server geladen und wollte die Struktur von meinem alten als Vorlage fürs neue benutzen.
Das neue Forum hat logischerweise einen anderen Tabellenpräfix. Hab im alten Forum kurzerhand ein Backup der Struktur gemacht, danach hab ich die Struktur in das neue Forum übernommen und jetzt hab ich den Salat..
[phpBB Debug] PHP Notice: in file /includes/session.php on line 490: Undefined index: user_id
[phpBB Debug] PHP Notice: in file /includes/session.php on line 497: Undefined index: user_type
[phpBB Debug] PHP Notice: in file /includes/session.php on line 511: Undefined index: user_type
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 187: Undefined index: rand_seed
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 189: Undefined index: rand_seed
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/auth.php on line 66: Undefined index: user_permissions
[phpBB Debug] PHP Notice: in file /includes/auth.php on line 345: Undefined index: user_type
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1290: Undefined index: user_lang
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1293: Undefined index: user_dateformat
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1294: Undefined index: user_timezone
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1295: Undefined index: user_dst
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1366: Undefined index: user_style

Allgemeiner Fehler
SQL ERROR [ mysql4 ]

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 'AND t.template_id = s.template_id AND c.theme_id = s.theme_id AND i.imag' at line 4 [1064]

SQL

SELECT s.style_id, t.template_storedb, t.template_path, t.template_id, t.bbcode_bitfield, c.theme_path, c.theme_name, c.theme_storedb, c.theme_id, i.imageset_path, i.imageset_id, i.imageset_name FROM phpbb3_styles s, phpbb3_styles_template t, phpbb3_styles_theme c, phpbb3_styles_imageset i WHERE s.style_id = AND t.template_id = s.template_id AND c.theme_id = s.theme_id AND i.imageset_id = s.imageset_id

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal_mysql->sql_error()

FILE: includes/session.php
LINE: 1375
CALL: dbal_mysql->sql_query()

FILE: index.php
LINE: 26
CALL: user->setup()
Jo ich kann garnichts mehr machen das Forum ist dicht.
Hoffentlich kann mir jemand helfen.
Mfg
Hemo

Verfasst: 01.04.2008 22:11
von franki
Du mußt in den Tabellen von dem Backup auch den Prefix ändert.
In dem Backup ist der Präfix ja von dem alten Forum vorhanden.

Ein Beispiel:
Der Präfix im Backup zB.

Code: Alles auswählen

CREATE TABLE phpbb_config (........
Jetzt musst Du in dem Backup von allen SQL-Einträgen den Präfix "phpbb_" in "deinPräfix_" ändern.

//Edit
Ich hoffe ja, dass Du eine zweite Datenbank erstellt hast.

Verfasst: 01.04.2008 23:35
von Hemo
Hallo

Ja leider hab ich das nicht gemacht..
Ich hab gerade gemerkt das ich nun so mein altes Forum über das neue vernichtet habe!
DROP TABLE IF EXISTS phpbb3_acl_groups;
CREATE TABLE `phpbb3_acl_groups`
Beide Foren waren in der selben Datenbank, was sonst kein Problem darstellt.
Aber bei dieser SQL ist kla was passiert ist, auch wenn sie von einem anderen Forum ausgeführt worden ist. :(

Warum beide Foren nicht mehr funktioniert haben weiß ich nun nicht.

Ganz ganz böses Backup :evil:

Ich werde nun ein Backup von gestern einspielen...
MFG
Hemo

Verfasst: 02.04.2008 16:53
von Boecki91
Die von dir genannte Fehlermeldung ist ein Fehlermeldung von phpBB3, und so etwas kann noch nicht "mehrere Jahre" gelaufen haben, oder wie ist das gemeint?

Gut das du ein Backup gemacht hast :D