Bug #65887 [Nab->Csd]: Voting buttons on User Contributed Notes fail with error
| From: | googleguy@php.net | Date: | Wed, 11 Dec 2013 07:44:51 +0000 |
| Subject: | Bug #65887 [Nab->Csd]: Voting buttons on User Contributed Notes fail with error | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-17519@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65887&edit=1
ID: 65887
Updated by: googleguy@php.net
Reported by: marmel6942 at yahoo dot com
Summary: Voting buttons on User Contributed Notes fail with
error
-Status: Not a bug
+Status: Closed
Type: Bug
Package: Website problem
Operating System: Debian x64
PHP Version: Irrelevant
-Assigned To:
+Assigned To: googleguy
Block user comment: N
Private report: N
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Previous Comments:
------------------------------------------------------------------------
[2013-12-10 22:00:47] googleguy@php.net
That is quite possibly an Access-Control-Allow-Origin problem due to the client getting back a
default 'http://' response header. Using one of the mirrors
like us.php.net or ca.php.net typically doesn't result in this problem, but I've tried
explicitly setting the headers. We'll see if that helps. http://php.net is an odd case because it accepts both php.net and
www.php.net hosts in the request header.
------------------------------------------------------------------------
[2013-12-10 21:07:41] marmel6942 at yahoo dot com
php.net exhibits broken behaviour as well.
An empty http response is generated, and the voting button turns to a red "X" with the
tooltip text, "Error :("
------------------------------------------------------------------------
[2013-12-10 19:49:53] googleguy@php.net
Some of the mirrors don't allow external requests. There's nothing I can do about that
part, but as for the tally not being reflected immediately after you cast the vote, this is expected
behavior.
Once you cast the vote the request is made through javascript to our main php server and the
database is updated then the new tally is returned through the API. That new tally is then provided
immediately through javascript. However, if you were to refresh the page you will still see the old
tallies because each php.net mirror keeps a local copy of the notes, which get updated periodically
(usually once every hour or so).
So changes to the ratings may not be reflected in real time across all mirrors.
------------------------------------------------------------------------
[2013-12-10 19:04:20] marmel6942 at yahoo dot com
Using www.php.net
Same response:
{"success":false,"msg":"Unable to complete your request at this time.
Please try again later..."}
If I continue to refresh without cache, I can occasionally get a success:
{"success":true,"update":-5}
However, it appears to not take effect as the vote tallies never change on subsequent refreshes.
------------------------------------------------------------------------
[2013-12-10 09:30:23] karldeux@php.net
Do you still have this problem? Are you using www.php.net or php.net? Need feedback.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=65887
--
Edit this bug report at https://bugs.php.net/bug.php?id=65887&edit=1