Pages: [1]
edoceo
 
BAM!ID: 9161
Joined: 2006-10-17
Posts: 1
Credits: 610
World-rank: 3,027,422

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
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9460
Credits: 353,172,950
World-rank: 5,058

2011-03-29 05:06:06

Fixed the error, it was indeed a typo.
Please do not PM, IM or email me for support (they will go unread/ignored). Use the forum for support.
Pages: [1]

Index :: BOINCstats Bug Report :: Cannot Change Email or Password - JavaScript Error
Reason: