เว็บสำเร็จรูป เว็บสำเร็จรูปภาครัฐ เว็บโรงเรียน เว็บไซต์ส่วนตัว ระบบบริหารจัดการเว็บไซต์ (CMS) ฟรี

สอบถามปัญหาการติดตั้งครับ

Deprecated: Non-static method gcms::testDir() should not be called statically, assuming $this from incompatible context in C:xampphtdocslansai.ac.thbinclass.cache.php on line 10
05 ม.ค. 2558 5 2,960

เป็นปัญหาที่ Server ครับ ไม่ทราบว่าใช้ php เวอร์ชั่นอะไร



ถ้าไม่ลำบากนัก รบกวนส่งข้อมูล Server ให้ผมที ทางอีเมล์ admin@goragod.com (ข้อมูล ftp+phpmyadmin user+password) ผมจะดำเนินการตรวจสอบให้ครับ
ความคิดเห็น #1 05 ม.ค. 2558 223.206.xx.xxx

เดาว่าน่าจะเป็น PHP 5.6 นะครับ



การแก้ไขเบื้องต้น สามารถทำได้ 2 ทาง

1.ปิดการแจ้ง error ของ PHP เนื่องจากข้อความข้างต้น เป็นเพียงการ "แจ้งเตือน" เท่านั้น ดังนั้น การปิดการแจ้เตือน สามารถทำได้โดยไม่มีผลกระทบ สามารถปิดได้ที่ display_error off ใน php.ini

2. เปลี่ยนมาใช้ PHP 5.4-5.5 แทน
ความคิดเห็น #2 06 ม.ค. 2558 223.206.xxx.xxx

เปลี่ยนแล้วครับ

ยัง Error : mysql_connect() Message : Connection error

Deprecated: Non-static method gcms::testDir() should not be called statically, assuming $this from incompatible context in

และ

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in



ครับ

ความคิดเห็น #3 09 ต.ค. 2558 182.53.xxx.xx

อ้างอิงจาก ความคิดเห็น #3เปลี่ยนแล้วครับ



จาก



; http://php.net/display-errors

;display_errors=On (ของเก่า)

display_errors=Off



ยัง Error : mysql_connect() Message : Connection error

Deprecated: Non-static method gcms::testDir() should not be called statically, assuming $this from incompatible context in

และ

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in



ครับ

ความคิดเห็น #4 09 ต.ค. 2558 182.53.xxx.xx

// debug mode

// true ถ้าต้องการให้แสดง error

// false ปิดการแสดงผล error (ตอนใช้งานจริง)

define('DEBUG_MODE', false);



กำหนดค่า DEBUG_MODE เป็น false ใน bin/load.php
ความคิดเห็น #5 09 ต.ค. 2558 223.204.xx.xxx
ความคิดเห็น
ไฟล์อัปโหลด ชนิด jpg, jpeg, gif, png ขนาดไฟล์ไม่เกิน 1024
^