hallo,
folgende probleme hab ich nach der neuinstallation des bb2:
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
unregistrierte gäste können nichts posten: (debug)
------------------------------------------------------------------------------------
SQL Error : 1064 You have an error in your SQL syntax near '
1032943499, 2, 0, 0, 0)' at line 1
INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time,
forum_id, topic_status, topic_type, topic_vote) VALUES ('test', ,
1032943499, 2, 0, 0, 0)
Line : 254
File : /forum/includes/functions_post.php
------------------------------------------------------------------------------------
und ich kann moderatoren in keine foren mehr einteilen (debug)
------------------------------------------------------------------------------------
SQL Error : 1064 You have an error in your SQL syntax near ' 1)'
at line 2
INSERT INTO phpbb_auth_access (forum_id, group_id, auth_mod)
VALUES (2, , 1)
Line : 385
File : /forum/admin/admin_ug_auth.php
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
ich hab das userdaten backup mit phpmyadmin gemacht und auch
wieder hochgespielt, hat alles geklappt, nur mit der zuteilung
funzt es nicht !
kann jemand helfen ?
gruß
alecs
error nach neuinstallation !!!
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
so?
----------------254-----------------------
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
-------------------------------------------
----------------385-----------------------
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update private forum permissions", "", __LINE__, __FILE__, $sql);
}
}
-------------------------------------------
----------------254-----------------------
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
-------------------------------------------
----------------385-----------------------
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update private forum permissions", "", __LINE__, __FILE__, $sql);
}
}
-------------------------------------------
besser?
-------------------------admin_ug_auth-----------------------------------
$sql = "INSERT INTO " . AUTH_ACCESS_TABLE . " (forum_id, group_id, $sql_field)
VALUES ($forum_id, $group_id, $sql_value)";
}
else
{
$sql_values = '';
while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) )
{
$sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . $auth_type . ' = ' . $value;
}
$sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . 'auth_mod = ' . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]);
$sql = "UPDATE " . AUTH_ACCESS_TABLE . "
SET $sql_values
WHERE group_id = $group_id
AND forum_id = $forum_id";
}
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update private forum permissions", "", __LINE__, __FILE__, $sql);
}
---------------------------------function_post-------------------------------
if ( $result = $db->sql_query($sql) )
{
if ( $row = $db->sql_fetchrow($result) )
{
if ( $row['last_post_time'] > 0 && ( $current_time - $row['last_post_time'] ) < $board_config['flood_interval'] )
{
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
}
}
else if ( $mode == 'editpost' )
{
remove_search_post($post_id);
}
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$topic_vote = ( !empty($poll_title) && count($poll_options) >= 2 ) ? 1 : 0;
$sql = ( $mode != "editpost" ) ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote WHERE topic_id = $topic_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
------
gruß
alecs

-------------------------admin_ug_auth-----------------------------------
$sql = "INSERT INTO " . AUTH_ACCESS_TABLE . " (forum_id, group_id, $sql_field)
VALUES ($forum_id, $group_id, $sql_value)";
}
else
{
$sql_values = '';
while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) )
{
$sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . $auth_type . ' = ' . $value;
}
$sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . 'auth_mod = ' . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]);
$sql = "UPDATE " . AUTH_ACCESS_TABLE . "
SET $sql_values
WHERE group_id = $group_id
AND forum_id = $forum_id";
}
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update private forum permissions", "", __LINE__, __FILE__, $sql);
}
---------------------------------function_post-------------------------------
if ( $result = $db->sql_query($sql) )
{
if ( $row = $db->sql_fetchrow($result) )
{
if ( $row['last_post_time'] > 0 && ( $current_time - $row['last_post_time'] ) < $board_config['flood_interval'] )
{
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
}
}
else if ( $mode == 'editpost' )
{
remove_search_post($post_id);
}
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$topic_vote = ( !empty($poll_title) && count($poll_options) >= 2 ) ? 1 : 0;
$sql = ( $mode != "editpost" ) ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote WHERE topic_id = $topic_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
------
gruß
alecs
..hast Du an diesen beiden Dateien bzw. Tabellen irgendwas geändert ? Und es ist eine reine Neuinstallation also ka Upgrade oder ein Konvert von einer anderen Boardsoftware ?
Du könntest ma versuchen die beiden Tabellen zu reparieren (phpmyadmin :: REPAIR). (Wenn Du scho ma dabei bist, kannst ma überprüfen, ob in der _groups Tabelle Einträge vorhanden sind, und ob diese mit der Anzahl der Einträge der _user_group Tabelle übereinstimmen.)
Hast Du den User Anonymous aus der Datenbank gelöscht ?
Du könntest ma versuchen die beiden Tabellen zu reparieren (phpmyadmin :: REPAIR). (Wenn Du scho ma dabei bist, kannst ma überprüfen, ob in der _groups Tabelle Einträge vorhanden sind, und ob diese mit der Anzahl der Einträge der _user_group Tabelle übereinstimmen.)
Hast Du den User Anonymous aus der Datenbank gelöscht ?