Nucleusインストール時の不具合
フォーラムのインストール時にプラグインIDがセットされませんが、その記事です。
// do this before calling getPlugin (in case the plugin id is used there)
$query = 'INSERT INTO '.sql_table('plugin').' (porder, pfile) VALUES ('.(++$numCurrent).',"'.addslashes($plugName).'")';
sql_query($query);
$iPid = mysql_insert_id(); //この行を追加
// get and install the plugin
$plugin =& $manager->getPlugin($plugName);
$plugin->plugid = $iPid; //この行を追加
$manager->clearCachedInfo('installedPlugins'); //この行を追加
if (!$plugin) {
sql_query('DELETE FROM ' . sql_table('plugin') . ' WHERE pfile=''. addslashes($plugName).''');
$numCurrent--;
array_push($aErrors, 'Unable to install plugin ' . $plugName);
continue;
}
$plugin->install();
}
トラックバックURL:http://blog.bitocean.net/item/39/catid/2.trackback
トラックバック
このエントリにトラックバックはありません
このトラックバックURLを使ってこの記事にトラックバックを送ることができます。
もしあなたのブログがトラックバック送信に対応していない場合にはこちらのフォームからトラックバックを送信することができます。.
コメント
コメントの追加