Seite 1 von 1
You have an error in your SQL syntax;...
Verfasst: 30.04.2009 19:19
von jerikool
Ich halte mich mal kurz. Und zwar wird folgender Fehler angezeigt wenn ich versuche auf mein phpBB Forum besuchen will.
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2136: strtr() [function.strtr]: The second argument is not an array.
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 poster_id !=' at line 4 [1064]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
Mein Webhost hat folgendes dazu gesagt:
Hallo Herr ...,
das einzige Auffällige an der Meldung ist das "mysql 4". Sollte 4 die Version
sein könnte der Fehler daran liegen. Auf Ihrem Server ist MySQL 5
installiert.
Gegebenfalls wenden Sie sich am besten an den Entwicklern der Software.
Mit freundlichen Grüßen,
Firma5 - Support
Ich hoffe ihr könnt mir helfen das Problem zu lösen.
Re: You have an error in your SQL syntax;...
Verfasst: 30.04.2009 20:34
von Dr.Death
Hallo,
Du hast ein benutzerdefiniertes Profilfeld angelegt aber es nicht in alle Sprachen übersetzt.
Siehe dazu auch:
ACP -->
Benutzer und Gruppen -->
Benutzerdefinierte Profilfelder -->
Gehe dann auf das grüne Zahnrad Deines erstellten Profilfeldes -->
Bei den "Sprachspezifische Optionen [ de ]" hast du wahrscheinlich etwas eingetragen.... aber nicht den Button "Spezifische Option der Feldart" angeklickt -->
danach dann --> Sprachspezifische Option anklicken -->
Sprache [ en ] ausfüllen und absenden.
Dann sollte der von Dir genannte "Fehler" auch nicht mehr auftauchen.
Re: You have an error in your SQL syntax;...
Verfasst: 30.04.2009 23:49
von jerikool
Ich habe kein Zugriff auf die Seite, bekomme doch die Fehlermeldung. Ich habe mal den Debug Modus freigeschaltet und hier ist die Fehlermeldung die ich bekomme.
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3577: Undefined index: user_id
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3580: Undefined index: LOGOUT_USER
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3580: Undefined index: username
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3589: Undefined index: user_id
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3589: Undefined index: session_last_visit
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2090: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2136: strtr() [function.strtr]: The second argument is not an array.
[phpBB Debug] PHP Notice: in file /includes/ban_list.php on line 47: Undefined index: allow_ban_list
[phpBB Debug] PHP Notice: in file /includes/ban_list.php on line 52: Undefined index: allow_ban_list
[phpBB Debug] PHP Notice: in file /includes/ban_list.php on line 57: Undefined index: allow_ban_list
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3666: Undefined index: user_new_download
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3728: Undefined index: is_registered
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3753: Undefined index: user_lastvisit
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3754: Undefined index: user_id
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 poster_id !=' at line 4 [1064]
SQL
SELECT COUNT(post_id) as count FROM phpbb_posts WHERE forum_id != 195 AND post_time > AND poster_id !=
BACKTRACE
FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()
FILE: includes/functions.php
LINE: 3755
CALL: dbal_mysql->sql_query()
FILE: antispam/umil.php
LINE: 165
CALL: page_header()
FILE: antispam/update_asacp.php
LINE: 27
CALL: umil->umil()
FILE: antispam/asacp.php
LINE: 24
CALL: include('antispam/update_asacp.php')
FILE: common.php
LINE: 227
CALL: require('antispam/asacp.php')
FILE: index.php
LINE: 20
CALL: include('common.php')
Re: You have an error in your SQL syntax;...
Verfasst: 01.05.2009 01:11
von nickvergessen
outsch...
Hast du zufällig den Anonymous Benutzer gelöscht?
Re: You have an error in your SQL syntax;...
Verfasst: 01.05.2009 02:32
von jerikool
Nein, nicht das ich wüsste

Re: You have an error in your SQL syntax;...
Verfasst: 01.05.2009 20:49
von oxpus
Vielleicht die Konstante dazu in der includes/constants.php?
Also diese Zeile:
Re: You have an error in your SQL syntax;...
Verfasst: 02.05.2009 02:44
von jerikool
Problem hat sich erledigt. Der Coder MSSTI (
www.mssti.com) hat die Probleme gelöst. Ich würde ja einen Lösungsweg posten aber das wäre zu viel. Sollte jemand mal das gleiche Problem haben dann wendet euch entweder an MSST oder einen anderen professionellen Coder.
Re: You have an error in your SQL syntax;...
Verfasst: 02.05.2009 08:12
von Dr.Death
Es wäre jetzt aber interessant zu wissen ob der Fehler von phpBB3 oder einem eingebauten MOD ausging.
Re: You have an error in your SQL syntax;...
Verfasst: 02.05.2009 12:08
von jerikool
Soweit ich was kam es zu einigen Fehlermeldungen da meine Seite teilweise 2 Datenbanken nutzte und ich eine gelöscht habe (die meiner Testseite). Außerdem hat noch der UMIL Ordner gefehlt den ich nochmal hochladen musste. Das ist alles was ich weiss. Die ganzen Fehler wurden durch die Löschung der Datenbank verursacht, nicht von phpBB.
Re: You have an error in your SQL syntax;...
Verfasst: 02.05.2009 16:28
von oxpus
Also dann wohl doch kein Bug in phpBB...