https

Questionshttps
Raymond asked 12 years ago

Hi,

I can run phpgrid sucessfully through http, but when I change it to https, phpgrid cannot display the data. And when I add the record, it return the following error message.

"error Status: 'error'. Error code: 0"

Thanks for your help in advance,
Raymond

3 Answers
Abu Ghufran answered 12 years ago

Please check the server response for the ajax call of fetching data.

– Check ajax response of grid, Use firefox->firebug->net->xhr response to see if something is wrong.
– make sure returned response text is JSON and check if server response code is 200 OK.

Raymond answered 12 years ago

Hi Abu,

I have installed the firebug and chec the xhr response, there is no information recorded in the section. But for header, i got the following message.

Response Headersview source
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection Keep-Alive
Content-Length 1458
Content-Type text/html
Date Fri, 14 Dec 2012 02:55:35 GMT
Expires Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive timeout=5, max=100
Pragma no-cache
Server Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
Set-Cookie PHPSESSID=fligrp2580g2ofpqrquhi95sf6; path=/
X-Powered-By PHP/5.4.7
Request Headersview source
Accept */*
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cache-Control no-cache
Connection keep-alive
Content-Length 174
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Host gia
Origin https://gia
Pragma no-cache
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0
Response Headers From Cache
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection Keep-Alive
Content-Length 1458
Content-Type text/html
Date Fri, 14 Dec 2012 02:55:35 GMT
Expires Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive timeout=5, max=100
Pragma no-cache
Server Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
Set-Cookie PHPSESSID=fligrp2580g2ofpqrquhi95sf6; path=/
X-Powered-By PHP/5.4.7

It seems that phpgrid cannot able to update the database table under https.
When I use http, GET will follow POST. But when I use https, only POST and I cannot see the GET in firebug.

Thanks,
Raymond

Abu Ghufran answered 12 years ago

Please add [email protected] in gtalk, we'll arrange some remote session.

Your Answer

8 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?