ตัวอย่าง Error เกี่ยวกับ session บน Host ที่ สำหรับเขียนพื้นที่

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: ตัวอย่าง Error เกี่ยวกับ session บน Host ที่ สำหรับเขียนพื้นที่

Re: ตัวอย่าง Error เกี่ยวกับ session บน Host ที่ สำหรับเขียนพื้นที่

โดย mindphp » 03/07/2018 4:29 am

ปัญหานี้ถ้าเกิด กับ phpMyadmin แก้ไขได้ตามนี้
https://www.mindphp.com/forums/viewtopic ... 27&t=48658

Re: ตัวอย่าง Error เกี่ยวกับ session บน Host ที่ สำหรับเขียนพื้นที่

โดย THCodingFree » 25/12/2017 8:20 pm

ใส่ ob_start() ที่บนสุดของไฟล์ยังครับ


<?php
ob_start();

Re: ตัวอย่าง Error เกี่ยวกับ session บน Host ที่ สำหรับเขียนพื้นที่

โดย mindphp » 04/12/2017 11:37 am

ปัญหา มาจาก path เขียน session ที่ path default ไม่สามารถเขียนลง /tmp ได้

ตัวอย่าง Error เกี่ยวกับ session บน Host ที่ สำหรับเขียนพื้นที่

โดย mindphp » 04/12/2017 11:34 am

Warning: session_start(): connect() failed: Connection refused in

Warning: session_start(): connect() failed: Connection refused in /home/hostname/domains/hostname.com/public_html/libraries/joomla/session/handler/native.php on line 260
Error displaying the error page: Application Instantiation Error: Connection closed
Warning: session_write_close(): connect() failed: Connection refused in /home/hostname/domains/hostname.com/public_html/libraries/joomla/session/handler/native.php on line 194

Warning: session_write_close(): Failed to write session data (redis). Please verify that the current setting of session.save_path is correct (/tmp) in /home/hostname/domains/hostname.com/public_html/libraries/joomla/session/handler/native.php on line 194

Fatal error: Uncaught exception 'RedisException' with message 'Connection closed' in /home/hostname/domains/hostname.com/public_html/libraries/joomla/session/handler/native.php:194 Stack trace: #0 /home/hostname/domains/hostname.com/public_html/libraries/joomla/session/handler/native.php(194): session_write_close() #1 [internal function]: JSessionHandlerNative->save() #2 {main} thrown in /home/hostname/domains/hostname.com/public_html/libraries/joomla/session/handler/native.php on line 194

ข้างบน