Yii Framework ติดปัญหาการบันทึกข้อมูลด้วย Ajax

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

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

User avatar
chornma
PHP Sr. Member
PHP Sr. Member
Posts: 74
Joined: 04/07/2013 12:48 am
Contact:

Yii Framework ติดปัญหาการบันทึกข้อมูลด้วย Ajax

Post by chornma » 15/11/2014 2:34 am

Yii Framework ติดปัญหากรอกข้อมูลใน Ajax แล้วพอบันทึกไปก็ไม่เข้าไปใน DB ครับ

pb01.jpg
pb01.jpg (59.56 KiB) Viewed 2386 times
pb02.jpg
pb02.jpg (163.78 KiB) Viewed 2380 times
model1.jpg
model1.jpg (21.31 KiB) Viewed 2381 times
controller1.jpg
controller1.jpg (27.38 KiB) Viewed 2381 times
view1.jpg
view1.jpg (51.38 KiB) Viewed 2381 times
Image

User avatar
chornma
PHP Sr. Member
PHP Sr. Member
Posts: 74
Joined: 04/07/2013 12:48 am
Contact:

Re: Yii Framework ติดปัญหาการบันทึกข้อมูลด้วย Ajax

Post by chornma » 15/11/2014 9:23 am

มัน debug ต้องแก้ตรงไหนบ้างครับ
Image

User avatar
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
Posts: 22577
Joined: 22/09/2008 6:18 pm
Contact:

Re: Yii Framework ติดปัญหาการบันทึกข้อมูลด้วย Ajax

Post by mindphp » 15/11/2014 10:05 am

เช็คตารางที่เก็บ มี field ครบตามหน้าฟอร์มไหม
ใช้ php เวอร์ชันอะไร
ติดตาม 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

User avatar
chornma
PHP Sr. Member
PHP Sr. Member
Posts: 74
Joined: 04/07/2013 12:48 am
Contact:

Re: Yii Framework ติดปัญหาการบันทึกข้อมูลด้วย Ajax

Post by chornma » 15/11/2014 8:20 pm

mindphp wrote:เช็คตารางที่เก็บ มี field ครบตามหน้าฟอร์มไหม
ใช้ php เวอร์ชันอะไร
php.jpg
php.jpg (97.69 KiB) Viewed 2377 times
db01.jpg
Image

User avatar
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
Posts: 22577
Joined: 22/09/2008 6:18 pm
Contact:

Re: Yii Framework ติดปัญหาการบันทึกข้อมูลด้วย Ajax

Post by mindphp » 16/11/2014 7:37 pm

ลองเช็ค logs ของ apache มาดูหน่อยครับ
ติดตาม 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

User avatar
chornma
PHP Sr. Member
PHP Sr. Member
Posts: 74
Joined: 04/07/2013 12:48 am
Contact:

Re: Yii Framework ติดปัญหาการบันทึกข้อมูลด้วย Ajax

Post by chornma » 17/11/2014 7:51 pm

mindphp wrote:ลองเช็ค logs ของ apache มาดูหน่อยครับ
ผมเช็คไม่เป็น... มันต้องเช็คตรงไหนบ้างครับ ลุงหมี
Image

User avatar
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
Posts: 22577
Joined: 22/09/2008 6:18 pm
Contact:

Re: Yii Framework ติดปัญหาการบันทึกข้อมูลด้วย Ajax

Post by mindphp » 17/11/2014 8:11 pm

ถ้าติดตั้งด้วย xampp อยู่ใน
D:\xampp\apache\logs\error.log
ติดตาม 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

User avatar
chornma
PHP Sr. Member
PHP Sr. Member
Posts: 74
Joined: 04/07/2013 12:48 am
Contact:

Re: Yii Framework ติดปัญหาการบันทึกข้อมูลด้วย Ajax

Post by chornma » 17/11/2014 8:14 pm

mindphp wrote:ถ้าติดตั้งด้วย xampp อยู่ใน
D:\xampp\apache\logs\error.log
Error.log
[Sun Nov 16 10:14:15.849435 2014] [ssl:warn] [pid 3748:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 10:14:16.260459 2014] [ssl:warn] [pid 3748:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 10:14:16.362464 2014] [mpm_winnt:notice] [pid 3748:tid 356] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
[Sun Nov 16 10:14:16.362464 2014] [mpm_winnt:notice] [pid 3748:tid 356] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Sun Nov 16 10:14:16.362464 2014] [core:notice] [pid 3748:tid 356] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Sun Nov 16 10:14:16.368465 2014] [mpm_winnt:notice] [pid 3748:tid 356] AH00418: Parent: Created child process 5128
[Sun Nov 16 10:14:17.072505 2014] [ssl:warn] [pid 5128:tid 380] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 10:14:17.510530 2014] [ssl:warn] [pid 5128:tid 380] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 10:14:17.546532 2014] [mpm_winnt:notice] [pid 5128:tid 380] AH00354: Child: Starting 150 worker threads.
[Sun Nov 16 10:22:08.097390 2014] [ssl:warn] [pid 852:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 10:22:08.201396 2014] [core:warn] [pid 852:tid 356] AH00098: pid file D:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Nov 16 10:22:08.598419 2014] [ssl:warn] [pid 852:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 10:22:08.924438 2014] [mpm_winnt:notice] [pid 852:tid 356] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
[Sun Nov 16 10:22:08.924438 2014] [mpm_winnt:notice] [pid 852:tid 356] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Sun Nov 16 10:22:08.924438 2014] [core:notice] [pid 852:tid 356] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Sun Nov 16 10:22:08.929438 2014] [mpm_winnt:notice] [pid 852:tid 356] AH00418: Parent: Created child process 4848
[Sun Nov 16 10:22:09.618477 2014] [ssl:warn] [pid 4848:tid 384] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 10:22:10.048502 2014] [ssl:warn] [pid 4848:tid 384] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 10:22:10.085504 2014] [mpm_winnt:notice] [pid 4848:tid 384] AH00354: Child: Starting 150 worker threads.
[Sun Nov 16 18:59:32.290861 2014] [ssl:warn] [pid 6408:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 18:59:32.416868 2014] [core:warn] [pid 6408:tid 356] AH00098: pid file D:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Nov 16 18:59:32.794889 2014] [ssl:warn] [pid 6408:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 18:59:32.853893 2014] [mpm_winnt:notice] [pid 6408:tid 356] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
[Sun Nov 16 18:59:32.853893 2014] [mpm_winnt:notice] [pid 6408:tid 356] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Sun Nov 16 18:59:32.853893 2014] [core:notice] [pid 6408:tid 356] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Sun Nov 16 18:59:32.858893 2014] [mpm_winnt:notice] [pid 6408:tid 356] AH00418: Parent: Created child process 6392
[Sun Nov 16 18:59:33.591935 2014] [ssl:warn] [pid 6392:tid 380] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 18:59:33.977957 2014] [ssl:warn] [pid 6392:tid 380] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 18:59:34.013959 2014] [mpm_winnt:notice] [pid 6392:tid 380] AH00354: Child: Starting 150 worker threads.
[Sun Nov 16 20:56:14.639372 2014] [ssl:warn] [pid 6564:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 20:56:14.711376 2014] [core:warn] [pid 6564:tid 356] AH00098: pid file D:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Nov 16 20:56:15.067397 2014] [ssl:warn] [pid 6564:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 20:56:15.131400 2014] [mpm_winnt:notice] [pid 6564:tid 356] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
[Sun Nov 16 20:56:15.131400 2014] [mpm_winnt:notice] [pid 6564:tid 356] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Sun Nov 16 20:56:15.131400 2014] [core:notice] [pid 6564:tid 356] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Sun Nov 16 20:56:15.136400 2014] [mpm_winnt:notice] [pid 6564:tid 356] AH00418: Parent: Created child process 4744
[Sun Nov 16 20:56:15.805439 2014] [ssl:warn] [pid 4744:tid 384] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 20:56:16.201461 2014] [ssl:warn] [pid 4744:tid 384] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 16 20:56:16.464476 2014] [mpm_winnt:notice] [pid 4744:tid 384] AH00354: Child: Starting 150 worker threads.
[Mon Nov 17 18:11:10.995874 2014] [ssl:warn] [pid 6004:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 17 18:11:11.381896 2014] [core:warn] [pid 6004:tid 356] AH00098: pid file D:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Nov 17 18:11:11.785919 2014] [ssl:warn] [pid 6004:tid 356] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 17 18:11:11.848923 2014] [mpm_winnt:notice] [pid 6004:tid 356] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
[Mon Nov 17 18:11:11.849923 2014] [mpm_winnt:notice] [pid 6004:tid 356] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Mon Nov 17 18:11:11.849923 2014] [core:notice] [pid 6004:tid 356] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Mon Nov 17 18:11:11.854923 2014] [mpm_winnt:notice] [pid 6004:tid 356] AH00418: Parent: Created child process 5920
[Mon Nov 17 18:11:12.549963 2014] [ssl:warn] [pid 5920:tid 380] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 17 18:11:12.961987 2014] [ssl:warn] [pid 5920:tid 380] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 17 18:11:13.013990 2014] [mpm_winnt:notice] [pid 5920:tid 380] AH00354: Child: Starting 150 worker threads.
[Mon Nov 17 18:17:27.234394 2014] [access_compat:error] [pid 5920:tid 1772] [client ::1:50169] AH01797: client denied by server configuration: D:/xampp/htdocs/yiibasic/framework/
Image

Post Reply

Return to “Programming - PHP”

Users browsing this forum: No registered users and 20 guests