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

Post a reply

Smilies
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

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

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

by chornma » 19/11/2014 5:07 pm

mindphp wrote:id ซ้ำกับที่มีอยู่แล้วใน ระบบ
แก้ได้แล้วครับ เพียงแค่ไปลบ ตัวที่อยู่ใน Users ของ localhost ที่เป็น Any ออก แล้วจากนั้นก็เข้าไปแก้ที่ D:\\Xampp\phpMyAdmin\Config.inc แล้วปรับส่วน
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'ใส่รหัสลงไป ';
ให้ตรงกันแล้วลอง insert ใน Yii ดูแล้วปรากฎว่าผ่านครับ
db_pass01.jpg
db_pass01.jpg (17.12 KiB) Viewed 489 times

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

by mindphp » 19/11/2014 1:50 am

id ซ้ำกับที่มีอยู่แล้วใน ระบบ

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

by chornma » 19/11/2014 12:37 am

มัน insert ไม่เข้าครับลุงหมี
มัน insert ไม่เข้าครับลุงหมี
ต้องแก้ยังไงครับ...

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

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/

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

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

ถ้าติดตั้งด้วย xampp อยู่ใน
D:\xampp\apache\logs\error.log

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

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

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

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

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

ลองเช็ค logs ของ apache มาดูหน่อยครับ

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

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

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

Top