Seite 1 von 2

Categories & Forum Icon DEBUG MODE?

Verfasst: 25.05.2005 17:09
von tomtom
Nach dem Einbau des MOD
###############################################
##
## MOD Title: Categories & Forum Icon
## MOD Version: 1.0.0
## Author: Anh Le Minh < netanh@zapo.net >
## Website: http://www.netanh.com
## Forum: http://forum.netanh.com
## Description: This Mod gives 1 images beside your categories name, forum name on
## index page
erhalte ich beim Anlegen neuer Foren im ACP den Fehler:
Couldn't insert row in categories table

DEBUG MODE

SQL Error : 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 ')' at line 2

INSERT INTO phpbb_categories (cat_title, cat_order, cat_icon) VALUES ('Ballett & Tanz', 10, )

Line : 524
File : admin_forums.php
admin_forums

Wer kann helfen?

Verfasst: 25.05.2005 17:11
von kratzer54847
was hat das jetzt mit der index_body zu tun?
verlink mal lieber die admin_forums.php ;-)

mfg Johny

Verfasst: 25.05.2005 17:12
von tomtom
sorry, schon passiert :)

Verfasst: 25.05.2005 17:15
von kratzer54847
also, es liegt daran,dass $caticon nicht erkannt wurde(tippe da mal auf nen register_globals-Fehler). Jetzt brauch ich die forum_edit_body.tpl

mfg Johny

Verfasst: 25.05.2005 17:17
von tomtom

Verfasst: 25.05.2005 17:20
von kratzer54847
setz mal vor

Code: Alles auswählen

$sql = "INSERT INTO " . CATEGORIES_TABLE . " (cat_title, cat_order, cat_icon)

folgendes:

Code: Alles auswählen

$cat_icon = $HTTP_POST_VARS['forumicon'];

Verfasst: 25.05.2005 17:24
von tomtom
jetzt ist der fehler in z. 525. aber der gleiche... :(

Verfasst: 25.05.2005 17:26
von kratzer54847
wie lautet die Fehlermeldung? immernoch dieselbe?

Verfasst: 25.05.2005 17:27
von tomtom
Ja,
Couldn't insert row in categories table

DEBUG MODE

SQL Error : 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 ')' at line 2

INSERT INTO phpbb_categories (cat_title, cat_order, cat_icon) VALUES ('ddd', 10, )

Line : 525
File : admin_forums.php

Verfasst: 25.05.2005 17:37
von kratzer54847
ok gefunden...

ersetz mal den ganzen SQL-Part mit:

Code: Alles auswählen

$sql = "INSERT INTO " . CATEGORIES_TABLE . " (cat_title, cat_order, cat_icon)
            VALUES ('" . $HTTP_POST_VARS['categoryname'] . "', $next_order, '$caticon')";
mfg Johny