Page 1 of 2

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

Posted: 15/11/2014 2:34 am
by chornma
Yii Framework ติดปัญหากรอกข้อมูลใน Ajax แล้วพอบันทึกไปก็ไม่เข้าไปใน DB ครับ

pb01.jpg
pb01.jpg (59.56 KiB) Viewed 2423 times
pb02.jpg
pb02.jpg (163.78 KiB) Viewed 2417 times
model1.jpg
model1.jpg (21.31 KiB) Viewed 2418 times
controller1.jpg
controller1.jpg (27.38 KiB) Viewed 2418 times
view1.jpg
view1.jpg (51.38 KiB) Viewed 2418 times

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

Posted: 15/11/2014 9:23 am
by chornma
มัน debug ต้องแก้ตรงไหนบ้างครับ

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

Posted: 15/11/2014 10:05 am
by mindphp
เช็คตารางที่เก็บ มี field ครบตามหน้าฟอร์มไหม
ใช้ php เวอร์ชันอะไร

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

Posted: 15/11/2014 8:20 pm
by chornma
mindphp wrote:เช็คตารางที่เก็บ มี field ครบตามหน้าฟอร์มไหม
ใช้ php เวอร์ชันอะไร
php.jpg
php.jpg (97.69 KiB) Viewed 2414 times
db01.jpg

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

Posted: 16/11/2014 7:37 pm
by mindphp
ลองเช็ค logs ของ apache มาดูหน่อยครับ

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

Posted: 17/11/2014 7:51 pm
by chornma
mindphp wrote:ลองเช็ค logs ของ apache มาดูหน่อยครับ
ผมเช็คไม่เป็น... มันต้องเช็คตรงไหนบ้างครับ ลุงหมี

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

Posted: 17/11/2014 8:11 pm
by mindphp
ถ้าติดตั้งด้วย xampp อยู่ใน
D:\xampp\apache\logs\error.log

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

Posted: 17/11/2014 8:14 pm
by chornma
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/