php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64873 Comment voting buttons do not work on Booleans page
Submitted: 2013-05-17 21:28 UTC Modified: 2013-05-18 09:23 UTC
From: php dot net at wfredk dot com Assigned: googleguy (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: Windows, probably irrelevant
Private report: No CVE-ID: None
 [2013-05-17 21:28 UTC] php dot net at wfredk dot com
Description:
------------
On the page at http://php.net/manual/en/language.types.boolean.php I wanted to "vote up" the comment by "Steve" that "PHP does not break any rules with the values of true and false" and to vote down the comment by "geza at turigeza dot com" whose comment ignores the fact a non-empty string is TRUE.  However, in each case when I pressed the "up" or "down" button, a red "X" was displayed with a tooltip that says "Error :("

I have not tried voting on any other pages, I don't know if this is a common problem.

If a person has to be logged in or something to vote on comments, there should be annotations about that condition somewhere near the voting buttons.  Otherwise, there should be useful error messages if something goes wrong.

Test script:
---------------
navigate to http://php.net/manual/en/language.types.boolean.php
press an up or down vote button

Expected result:
----------------
vote status changed

Actual result:
--------------
red "x" displayed with "Error :(" in a tooltip when the mouse hovers over the "x"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-18 01:35 UTC] googleguy@php.net
Can you tell me which mirror you were using when this error occurred. The link 
http://php.net/manual/en/language.types.boolean.php should redirect you to one of 
the local mirrors like us1.php.net or ca1.php.net or just the www.php.net. I can 
tell you that there is no obvious cause for why this error would have occurred 
today. Voting does not require that you sign in to any system, but there are certain 
restrictions on voting based on IP, mirrors, and number of incoming votes.

I can see that on 2013-05-14 around the same time two votes were indeed placed on 
those two user contributed notes originating from the same IP address and mirror. 
They were both counted. Did you place the vote today or on the 14th?
 [2013-05-18 01:35 UTC] googleguy@php.net
-Status: Open +Status: Feedback
 [2013-05-18 02:06 UTC] php dot net at wfredk dot com
-Status: Feedback +Status: Open
 [2013-05-18 02:06 UTC] php dot net at wfredk dot com
I'm not sure how to identify what mirror I was on - I copied the URL from Firefox's address bar into the bug report and thought that would identify the page adequately.  I did see something in the lower right corner of the page saying "This mirror generously provided by Yahoo" if that helps...

I was connected to the site from my office at MIT when I observed the problem.  I won't be back there until Monday morning.

I tried to vote today, I did not vote on May 14.
 [2013-05-18 02:32 UTC] googleguy@php.net
Alright, there doesn't appear to be anything on this side that would have caused 
the error. There are some javascript bugs (in strict mode you get an origin error 
because of the way the mirrors are setup), but unless the problem persists this 
should only be a one off issue for most people.

Feel free to reopen the bug if the issue crops up again.
 [2013-05-18 02:32 UTC] googleguy@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: googleguy
 [2013-05-18 02:52 UTC] php dot net at wfredk dot com
OK, I was able to enter my votes from here at home (when I tried it from my office I never got to the challenge response page).  I'm curious why voting doesn't seem to have any effect on the numbers next to the vote buttons, though ...
 [2013-05-18 03:59 UTC] googleguy@php.net
When you place the vote the result is returned from a central server where all 
the votes are stored. However, the mirrors retain a local copy of the note data 
on each server, which is not updated in real time. It gets synced hourly so 
refreshing the page may not reflect the most current information.
 [2013-05-18 09:23 UTC] levim@php.net
I can verify that voting on comments has not worked for me on any page on any 
mirror I can think of for quite some time. I thought this was just a known bug 
at the moment. The response from the vote is always:

     {"success":false,"msg":"The server did not respond properly. Please try 
again later..."}

I use Google Chrome on Debian Linux as well as on Mac OS X 10.8.3; it does not 
work on either of the OS I use.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 14:01:34 2024 UTC