php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65887 Voting buttons on User Contributed Notes fail with error
Submitted: 2013-10-12 16:54 UTC Modified: 2013-12-11 07:44 UTC
From: marmel6942 at yahoo dot com Assigned: googleguy (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: Debian x64
Private report: No CVE-ID: None
 [2013-10-12 16:54 UTC] marmel6942 at yahoo dot com
Description:
------------
Voting buttons fail with red "X" on both Firefox and Chrome.

Response is:

{"success":false,"msg":"Unable to complete your request at this time. Please try again later..."}

Expected result:
----------------
Vote will be acknowledged and counted.


Actual result:
--------------
Error is returned.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-10 09:30 UTC] karldeux@php.net
Do you still have this problem? Are you using www.php.net or php.net? Need feedback.
 [2013-12-10 19:04 UTC] 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 19:49 UTC] googleguy@php.net
-Status: Open +Status: Not a bug
 [2013-12-10 19:49 UTC] 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 21:07 UTC] 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 22:00 UTC] 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-11 07:44 UTC] googleguy@php.net
-Status: Not a bug +Status: Closed -Assigned To: +Assigned To: googleguy
 [2013-12-11 07:44 UTC] googleguy@php.net
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


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Nov 21 05:00:01 2025 UTC