Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: NPCAdam - tammikuu 30, 2005, 11:56:46 AP

Otsikko: Moving Topics
Kirjoitti: NPCAdam - tammikuu 30, 2005, 11:56:46 AP
Whenever I move a topic, and click "post a redirection topic"

It gives the error:

Duplicate entry '0-7' for key 3
File: /home/chrisirh/public_html/forum/Sources/MoveTopic.php
Line: 215

=====================

If I don' t do the redirect thing, it says

You already submitted this post! You might have accidently double clicked, or tried to refresh.

==========================

So I'm not sure whats wrong, only thing I can think its conflicting with is the Redirect Mod I have installed.

// Add the new topic.
db_query("
INSERT INTO {$db_prefix}topics
(ID_BOARD, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, locked, numReplies, numViews)
VALUES ($board, $ID_MEMBER, $ID_MEMBER, 1, 0, 0)", __FILE__, __LINE__);
$remnantTopic = db_insert_id();
$remnantSubject = addslashes($txt['smf56'] . ': ' . $subject);

$_POST['reason'] = htmlspecialchars($_POST['reason'], ENT_QUOTES);
preparsecode($_POST['reason']);


(ID_BOARD, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, locked, numReplies, numViews) is line 215

Otsikko: Re: Moving Topics
Kirjoitti: [Unknown] - helmikuu 06, 2005, 05:32:16 AP
Admin -> Forum Maintenance -> Find and repair all forum errors.

-[Unknown]