โอ้ มันไม่เตือนแล้วครับ ทำตามที่ คุณ sputtaro บอกไว้ครับ ขอบคุณมากๆ ครับ
แล้วอันนี้คืออะไรเหรอครับ
PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument
มันมาจากโค้ดนี้ครับ
function sp_filter_tooltip_display($content, $status) {
global $spThisUser;
#save unedited content
$original = $content;
# can the current user view this post?
if (!$spThisUser->moderator && $status == 1) {
$content = sp_text('Post Awaiting Approval by Forum Administrator');
} else {
$content = addslashes($content);
$content = sp_filter_save_nohtml($content);
# remove shortcodes to prevent messing up tooltip
$content = strip_shortcodes($content);
$length = apply_filters('sph_tooltip_length_chars', 300);
if (strlen($content) > $length) {
$pos = strpos($content, ' ', $length);
if ($pos === false) $pos = $length;
$content = substr($content, 0, $pos).'...';
}
$content = htmlspecialchars($content, ENT_QUOTES, 'UTF-8'); // บรรทัดนี้ครับ ผมไปหาข้อมูลมา มีคนบอกให้ใส่ UTF-8 เพิ่ม แต่ของเดิมมันก็มีอยู่แล้วครับ
$content = str_replace('&', '&', $content);
}
$content = apply_filters('sph_display_tooltip_filter', $content, $original, $status);
return $content;
}
พวกที่ไม่บอกว่าเตือนจากไฟล์ไหน เราจะมีวิธีหาไหมครับ ว่ามันเป็นโค้ดไฟล์ไหน
มันขึ้นแค่ว่า undefined เท่านั้นเองครับ
PHP Notice: Undefined offset: 1
PHP Notice: Undefined offset: 4
PHP Notice: Undefined index: topicname
PHP Notice: Undefined index: 36