儿童教育测试论坛 在数据库执行的过程中出现了一些问题。
请点击刷新按钮重新尝试。如果问题依旧存在,请与管理员[email=]联系[/email]。
对此造成的不便我们感到十分遗憾。
数据库出现错误:
查询失败:
SELECT forumid,threadid AS importthreadid,dateline,postuserid AS userid,title,open,lastposter,sticky,views, replycount AS post, firstpostid,lastpost,votetotal,attach,d.primaryid AS isdelete,goodnees AS quintessence, visible,first
FROM mx.vb3_thread t
LEFT JOIN mx.vb3_deletionlog d on t.threadid=d.primaryid AND d.type='thread'
ORDER BY importthreadid
LIMIT 0,5000
MySQL 错误: Unknown column 'first' in 'field list'
想把上面的帖子改一下,提交后没有反应了,改不了。
上面11楼的,原来是两列数字,现在怎么变成几行数字了?
http://www.etjy.com/showpost.php?p=299037&postcount=9
这样一个帖子,字数多些,就转不过去了,原来可以转过去的。
提示:
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 690213 bytes) in /var/www/test/mx2/includes/functions_codeparse.php on line 93
[quote]刚又重新装了一个,导到
帖子 #11062 已成功导入。
就停止不动了[/quote]
这样看来,应该是 ID为 11062 或 11062 的下一帖 导致导入停止的。
把这两帖的内容发来看看吧。
直接发上来会影响显示,
把它保存成文本,发到附件里吧。
注意:这时的 id 11062 是已转换后在 molyx 数据库的 id ,
若要找到在vbb里的帖子id,你应该看看这时molyx 数据库 post 表的末尾有个临时字段 importpostid,
你就会明白!
这个帖子是挺大,我本想复制下来在本机测一下,结果提交时报 sql 执行超时的错误! :embarassed: :embarassed:
从提示信息来看,是内存耗尽了
这样吧,
在我修改的这个 import_vbulletin3.php 版本里,
导入主题时有两段会有些影响效率,你把它注释掉试试。
在1100多行找到:
$ipost['pagetext'] = str_replace($oldsmile, $newsmile, $ipost['pagetext']);
改成这样:
// $ipost['pagetext'] = str_replace($oldsmile, $newsmile, $ipost['pagetext']);
继续在下面找:
// 计算隐藏贴
if ($ipost['replypost']) {
$hidepost = array('type'=>111,'cond'=>'','attach'=>'','buyers'=>array());
$ipost['hidepost'] = addslashes(serialize($hidepost));
} else if ($ipost['postnum']) {
$hidepost = array('type'=>4,'cond'=>$ipost['postnum'],'attach'=>'','buyers'=>array());
$ipost['hidepost'] = addslashes(serialize($hidepost));
} else if ($ipost['postprice']) {
$buyerids = explode(',',$ipost['postbuyerids']);
foreach($buyerids as $k => $v) {
if (empty($v)) {
unset($buyerids[$k]);
} else {
$buyerids[$k] = $newuserid[$v];
}
}
ksort($buyerids);
$hidepost = array('type'=>1,'cond'=>$ipost['postprice'],'attach'=>'','buyers'=>$buyerids);
$ipost['hidepost'] = addslashes(serialize($hidepost));
}
改为:(就是前后分别加注释符: /*,*/)
/*
// 计算隐藏贴
if ($ipost['replypost']) {
$hidepost = array('type'=>111,'cond'=>'','attach'=>'','buyers'=>array());
$ipost['hidepost'] = addslashes(serialize($hidepost));
} else if ($ipost['postnum']) {
$hidepost = array('type'=>4,'cond'=>$ipost['postnum'],'attach'=>'','buyers'=>array());
$ipost['hidepost'] = addslashes(serialize($hidepost));
} else if ($ipost['postprice']) {
$buyerids = explode(',',$ipost['postbuyerids']);
foreach($buyerids as $k => $v) {
if (empty($v)) {
unset($buyerids[$k]);
} else {
$buyerids[$k] = $newuserid[$v];
}
}
ksort($buyerids);
$hidepost = array('type'=>1,'cond'=>$ipost['postprice'],'attach'=>'','buyers'=>$buyerids);
$ipost['hidepost'] = addslashes(serialize($hidepost));
}
*/
但是这样vbb的回复帖,金钱帖,帖子里的部分表情还有一些bbcode的问题就不能解决了,
注意,导入大量数据时,不要有其他操作。