ตัวหนังสือตัวสุดท้ายหายไป - getID3 bug

  • warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.
  • warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.

Drupal 5.1
Module audio
getID3 version: 1.7.8-b1

เมื่อหาวิธีแก้ไขภาษต่างดาวในโมดูล audio ได้แล้ว ก็มาเจออีกปัญหารหนึ่งก็คือ
อักขระตัวสุดท้ายมันหายไป ก็เลยหาข้อมูลจาก
drupal>module>audio>getID3>support
ได้ข้อมูลสำหรับการแก้ไขตามนี้ครับ

You must edit the file "module.tag.id3v2.php"
on line 646 you must put an equlity sign == double equals sign intead of the single = sign

if ($string[strlen($string)-1] = "\x00")

becomes

if ($string[strlen($string)-1] == "\x00")

ที่มา: http://www.getid3.org/phpBB2/viewtopic.php?t=727

ตอนนี้ก็เลยหมดปัญหาไปแล้ว

ปล. กระทู้นี้เขียนเอาไว้เผื่อใครมีปัญหาเดียวกัน

sugree's picture

เอ้ย known problem แล้วทำไมเค้าไม่แก้ซะให้จบๆ ไป

ย้าย Codenone

ประกาศย้าย Codenone ไปใช้ Forum ของ Blognone แทนครับ ตามไปตั้งกระทู้ต่อได้ที่ Codenone Forum (รายละเอียดอ่านจากกระทู้ ย้าย Codenone ไปรวมกับ Blognone)

กระทู้เก่าๆ จะย้ายตามไปในภายหลัง ตอนนี้ปิดการโพสต์กระทู้ไว้ เหลือไว้เฉพาะอ้างอิงเท่านั้น