2011-03-29 04:11:21
Hey, trying to update my email address and password in the Boinc system.
I click on edit and am presented with a box to type new email, username and password.
I update the email address and then re-enter the password (twice, correctly each time) and then click 'Save'
Nothing happens.
The JavaScript console in Firefox 3.something shows:
"error is not defined" line 271 of http://boincstats.com/js/account.js
But the real issue is that the AJAX GET to this page:
http://boincstats.com/rpc/rpc_AccountValues.php?_=XXX&action=emailAddress&data=XXX
Is returning this content (but an HTTP status of 200)
--
<br />
<b>Parse error</b>: syntax error, unexpected '@' in <b>/home/boincstats/site/rpc/rpc_AccountValues.php</b> on line <b>6</b><br />
--
Seems like some typo in the PHP.
Would be cool to make your error handler also set HTTP/1.1 500 Server Error header when it is actually having an error.
Regarding a variable named "error" in that script, that could be defined one scope level higher to prevent that JS error.
Please fix so I can change my email, I can also help hack the PHP if you want some help.
HTH