●架設主機作業系統:Windows Xp Pro (sp2版)
●快速架站程式:無
●您的上網方式:Hinet ADSL 2M/256k
●您安裝的程式:apache_2.0.47 + php_5.0.5 + postgreSQL_8.0.0
●您的 phpBB2 版本:phpBB 2.0.16
●您的 domain(網域名稱) :127.0.0.1
●錯誤狀態:Fatal error: Only variables can be passed by reference in D:\Program Files\Apache Group\Apache2\htdocs\phpBB2\posting.php on line 554
請大大幫幫忙
[問題] phpBB發表主題的時候發生錯誤~>"<~
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
建議不要用php5
請用回php4,
但如果一定要用php5,
請作以下修改:
打開
代碼:
posting.php
找到
替換成
打開
includes/functions_search.php
尋找
替換成:
存檔收工!
資料由問題狂提供!!!
請用回php4,
但如果一定要用php5,
請作以下修改:
打開
代碼:
posting.php
找到
代碼: 選擇全部
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length); 替換成
代碼: 選擇全部
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;
$temp1=str_replace("\'", "''", $username);
$temp2= str_replace("\'", "''", $subject);
$temp3=str_replace("\'", "''", $message);
$temp4= str_replace("\'", "''", $poll_title);
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, $temp1, $temp2, $temp3, $temp4, $poll_options, $poll_length);打開
includes/functions_search.php
尋找
代碼: 選擇全部
$search_raw_words = array();
$search_raw_words['text'] = split_words(clean_words('post', $post_text, $stopword_array, $synonym_array));
$search_raw_words['title'] = split_words(clean_words('post', $post_title, $stopword_array, $synonym_array)); 替換成:
代碼: 選擇全部
if (!strstr($multibyte_charset, $lang['ENCODING']))
{
$temp1 = stripslashes($search_keywords);
$temp2 = clean_words('search', $temp1, $stopword_array, $synonym_array); $split_search = split_words($temp2, 'search');
}
else
{
$split_search = split(' ', $search_keywords);
}存檔收工!
資料由問題狂提供!!!

