ติดต่อลงโฆษณา [email protected]

ผู้เขียน หัวข้อ: SMF 1.1 ขึ้นไป มี bug กับ firefox 1.5  (อ่าน 4869 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ nicky

  • [root@localhost]$
  • New Member
  • *
  • กระทู้: 4
  • [root@localhost]$
    • ดูรายละเอียด
SMF 1.1 ขึ้นไป มี bug กับ firefox 1.5
« เมื่อ: 26/01/06, 22:29:59 »
พอดีเปิดไปอ่าน ใน thaiadmin เจอ เลยไปหาวิธีแก้ เอามา บอกไว้ที่นี่ ด้วยแล้วกัน

สรุปก็คือคนที่ใช้ firefox เปิดเว็บ SMF มันจะมีการ reload เว็บเพจโดยที่เราไม่รู้ตัวอยู่เบื้องหลังมากมาย จนทำให้ server ต้องรับภาระหนัก คล้ายๆ กับโดน DoS

ส่วนวิธี fix bug ก็ดูข้างล่างนะครับ

อ้างถึง

Bug in Firefox 1.5 Causing Server Issues with SMF 1.1

It's come to our attention that a bug in Firefox 1.5 is causing some issues on SMF forums. The bug causes Firefox to time its javascript functions incorrectly, which in turn results in a page reloading in the background many, many times. It's possible that some hosts may incorrectly flag this as a Denial of Service (DoS) attack due to the ferocity of the calls. If you are having problems with your server, with many calls looking like: "index.php?action=keepalive", then it almost certainly is this Firefox bug - in this case we recommend you following the advanced information included in this post.

To minimize the risk to this happening when viewing an SMF forum, we've created a work around for the bug which should solve this issue. If you are using SMF 1.1 RC1 or RC2 we recommend you simply replace the current script.js file found in your Themes/default directory with the attached file. This does not affect uses running SMF 1.0.5 or lower.

Advanced Information:
If you are currently experiencing these issues, replacing script.js with the attached should solve them for all new users, but existing users may hold a cached version of the file in their browser. If you are still experiencing issues after changing the file, we recommend editing your copy of index.template.php in your themes and searching for:
Code:
Copy to clipboardCode:
$settings['default_theme_url'], '/script.js?

After this line, regardless of what currently follows the "?", simply add a "j", this will invalidate any cached data and force clients to refetch the document.

Regards,

Simple Machines


FIX :

This was original index.template.php :

โค้ด: [เลือก]
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2p"></script>
And this is changed:

โค้ด: [เลือก]
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?jrc2p"></script>

From : http://www.simplemachines.org/community/index.php?topic=66862.0
From : http://www.thaiadmin.org/board/index.php?topic=17012.0

[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]