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

สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ ปัญหาการเขียนโปรแกรม แบบ OOP Session Cookies php network

Moderator: mindphp, ผู้ดูแลกระดาน

ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41123
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

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

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

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
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41123
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

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

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

ปัญหา มาจาก path เขียน session ที่ path default ไม่สามารถเขียนลง /tmp ได้
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
THCodingFree
PHP Newbie
PHP Newbie
โพสต์: 5
ลงทะเบียนเมื่อ: 25/12/2017 7:34 pm
ติดต่อ:

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

โพสต์ที่ยังไม่ได้อ่าน โดย THCodingFree »

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


<?php
ob_start();
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41123
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

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

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

ปัญหานี้ถ้าเกิด กับ phpMyadmin แก้ไขได้ตามนี้
https://www.mindphp.com/forums/viewtopic ... 27&t=48658
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 54