Plugins BIGINT无符号值超出范围错误(错误号:1690)
当我尝试删除vBulletin 4中的线程时,出现此错误。这不是vBulletin问题,因为它是一个附加修改。下面是我正在使用的代码。比如说,如果他们在帖子中有15个单词,而我删除了该线程,那么即使删除的是15个单词,我也会得到错误,将他们的单词数设置回零,而不是负数Plugins BIGINT无符号值超出范围错误(错误号:1690),plugins,vbulletin,Plugins,Vbulletin,当我尝试删除vBulletin 4中的线程时,出现此错误。这不是vBulletin问题,因为它是一个附加修改。下面是我正在使用的代码。比如说,如果他们在帖子中有15个单词,而我删除了该线程,那么即使删除的是15个单词,我也会得到错误,将他们的单词数设置回零,而不是负数 $threadinfo = fetch_threadinfo($threadid); $postinfo = fetch_postinfo($threadinfo['firstpostid']); $userdm =&
$threadinfo = fetch_threadinfo($threadid);
$postinfo = fetch_postinfo($threadinfo['firstpostid']);
$userdm =& datamanager_init('User', $this->registry, ERRTYPE_SILENT);
$userdm->set_existing($postinfo);
$userdm->set('totalwords', 'totalwords - ' . str_word_count($postinfo['pagetext']), false);
$userdm->save();
unset($userdm);
谁能告诉我我错过了什么
$threadinfo = fetch_threadinfo($threadid);
$postinfo = fetch_postinfo($threadinfo['firstpostid']);
$userdm =& datamanager_init('User', $this->registry, ERRTYPE_SILENT);
$userdm->set_existing($postinfo);
$userdm->set('totalwords', 'totalwords' - . str_word_count($postinfo['pagetext']), false);
$userdm->save();
unset($userdm);