วันอังคารที่ 22 มีนาคม พ.ศ. 2559

แก้ปัญหา error tmp directory does not exist บน Drupal 7

สวัสดีครับ

วันนี้มาแก้ Error ที่ฟ้องตรงเมนู Reports > Status Report ใน Drupal กันครับ

The directory X:\xampp\tmp does not exist. You may need to set the correct directory at the file system settings page or change the current directory's permissions so that it is writable.



หรือ

See http://drupal.org/SA-CORE-2013-003 for information about the recommended .htaccess file which should be added to the X:\xampp\tmp directory to help protect against arbitrary code execution.



หรือ

Warning: file_put_contents(temporary:///.htaccess): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_create_htaccess() (line 494 of E:\xampp\htdocs\mysite\includes\file.inc).



สาเหตุที่เกิด Error นี้ เพราะ เรายังไม่มีโฟลเดอร์ tmp ในเว็บ Drupal ของเรานั้นเองดังนั้นเราจึงต้องไปสร้างโฟลเดอร์ tmp ขึ้นมาครับ โดยสร้างไว้ที่


"sites/default/files/"




กำหนด Permission ของโฟลเดอร์ tmp นี้ให้เป็น 777 ด้วยครับ

จากนัั้นไปที่เมนู Configuration > File system > ที่ Temporary directory ให้เปลี่ยนจาก X:\xampp\tmp เป็น sites/default/files/tmp > คลิกปุ่ม Save Configuration 





เมื่อกลับมาที่เมนู Reports > Status report ก็จะพบว่าไม่ฟ้อง Error ดังกล่าวแล้วครับ

ไม่มีความคิดเห็น:

แสดงความคิดเห็น