โดย mindphp » 15/10/2018 12:27 pm
ถ้าเจอ Error ที่หน้าบอร์ด phpBB 3.0 แบบนี้
string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
เปิดไฟล์
includes/session.php
แก้ไข
โค้ด: เลือกทั้งหมด
return strtr(@gmdate($date_cache[$format]['format_long'], $gmepoch + $zone_offset), $date_cache[$format]['lang']);
เป็น
โค้ด: เลือกทั้งหมด
return @strtr(@gmdate($date_cache[$format]['format_long'], $gmepoch + $zone_offset), $date_cache[$format]['lang']);
ถ้าเจอ Error ที่หน้าบอร์ด phpBB 3.0 แบบนี้
[quote]string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion[/quote]
เปิดไฟล์
includes/session.php
แก้ไข
[code=php]return strtr(@gmdate($date_cache[$format]['format_long'], $gmepoch + $zone_offset), $date_cache[$format]['lang']); [/code]
เป็น
[code=php]return @strtr(@gmdate($date_cache[$format]['format_long'], $gmepoch + $zone_offset), $date_cache[$format]['lang']); [/code]