|
Written by Administrator
Thursday, 03 June 2010 17:52
|
|
In admin.docman.php, find
mosRedirect('index2.php', _DML_NOT_AUTH);- and remove it or comment it out.
Fixed the _DML_NOT_AUTH error in SVN, should have been _DML_NOT_AUTHORIZED
- ปัญหาที่ 1 หลังจากทำการปรับแต่ง Themes ของ DOCMan เกิด error
Fatal error: Cannot redeclare class DOCMAN_Config in /administrator/components/com_docman/classes/DOCMAN_config.class.php on line 18
วิธี แก้ไข เปิดไฟล์
/administrator/components/com_docman/includes/themes.php
ค้น หา บรรทัดที่ 134
require($_DOCMAN->getPath('classes', 'config'));
แทน ที่
require_once($_DOCMAN->getPath('classes', 'config'));
หลัง จากทำการบันทึกการตั้งค่า Themes ของ DOCMan ก็จะไม่ปรากฏ error ออกมาแล้ว -------------------------------------------------------------------
ปัญหา ที่ 2 ไม่สามารถค้นหาด้วยคำภาษาไทยได้ วิธีแก้ไข เปิดไฟล์
/administrator/components/com_docman/classes/DOCMAN_utils.class.php
ค้น หา บรรทัดที่ 1057
$text = htmlentities($text, ENT_QUOTES);
แทน ที่ด้วย
$text = htmlspecialchars($text, ENT_QUOTES);
คราว นี้ก็ค้นหาได้ปกติแล้วล่ะครับ.
|