Page 3 of 12
Re: Fucked Silly Set [Set idea]
Posted: 18 Oct 2016, 02:27
by Quarz
0131 wrote:
That the login doesn't work saddens me, JavaScript enabled? Which browser do you use? Any chance to see if some error are thrown (-> via firebug for example).
Since I have the same problem:
Javascript is enabled, Firefox, and as far as I am doing that correctly the error you are searching for might be:
"TypeError: xmlDoc.getElementsByTagName(...)[0] is undefined
question.htm (Zeile 547, Spalte 5)"
Re: Fucked Silly Set [Set idea]
Posted: 18 Oct 2016, 02:38
by 0131
Thats the first line where JavaScript tries to work with the xml file which should contain all the data.
Maybe its empty, can you confirm that? Is a xml file requested and can you view it via firebug?
If your login data is incorrect you will also get an error at that line.
Re: Fucked Silly Set [Set idea]
Posted: 18 Oct 2016, 14:27
by Simon
Hello there,
Running into the same problem with the login, I took a quick read of your code and ended on the following:
Code: Select all
if ( xmlDoc.getElementsByTagName("User")[0].childNodes[0].nodeValue === "super" ) {
super_user = true;
} else {
super_user = false;
}
Here
xmlDoc.getElementsByTagName("User") returns an empty array. Therefor calling
.childNodes[0] on it's first items errors out, for it cannot read an undefined value.
Now I'm not at all experienced with XML, but to me it's pretty unclear where
xmlDoc (and
xmldata for that matter) are defined.
Also I could't find any elements tagged as 'User' in the document (by running
document.getElementsByTagName("User"); in the console).
Hope this helps you in any way, shape or form.
~ Simon
Re: Fucked Silly Set [Set idea]
Posted: 18 Oct 2016, 14:43
by Quarz
Re: Fucked Silly Set [Set idea]
Posted: 18 Oct 2016, 16:29
by 0131
Quarz wrote:Someone more competent than me answered already it seems, but since I was at writing stuff either way might as well post that pile of info:
- To not stretch the thread | +
- So first I double checked and, except I am fucked silly at this point, the login info I input should be exactly the same as for the forum.
From here a few screenshots. IIRC you can speak german? In that case the german parts of the text are hopefully not a problem.
So first I thought to mention that this tab in the console exists and gives following warning:
-ATTACHMENT DELETED
Next at the point the program stops when just running it without breakpoints and gives the warnings, that one tab I hope to be related to the xml file looks like following:
3.png
4.png
Lastly setting a breakpoint here some infos about the state shortly before and right after the error occurs:
5.png
6.png
Thx that helped alot!
Your password was visible in one of the screenshots! I deleted that screen for you.
The image had no views, but maybe change your password if you wanna be sure.
I tested the login with your logindata and had the same issue, weird... i extra created a test account and it worked.
The PHP warning was the error which fucked up the entire xml file.
Its fixed and i was able to log into your account now @Quarz
Re: Fucked Silly Set [Set idea]
Posted: 18 Oct 2016, 17:25
by Quarz
Damn it, the one place I didn't check to make sure that link doesn't appear.
Either way, pw changed and it works from my side as well, so that seems to be taken care of.
Re: Fucked Silly Set [Set idea]
Posted: 19 Oct 2016, 00:28
by 0131
Ok good
The "correct" value is missing for some of your first cards (my mistake sorry) could you check / edit your questions?
Re: Fucked Silly Set [Set idea]
Posted: 20 Oct 2016, 01:07
by 0131
Don't wonder if you get window with some weird text when submitting a question. I changed the entire system to ajax so you dont have to reload the page everytime.
I will change the text tomorrow...

Re: Fucked Silly Set [Set idea]
Posted: 20 Oct 2016, 18:46
by Simon
0131 wrote:Don't wonder if you get window with some weird text when submitting a question. I changed the entire system to ajax so you dont have to reload the page everytime.
I will change the text tomorrow...

Ajax is always a blessing.
Re: Fucked Silly Set [Set idea]
Posted: 22 Oct 2016, 16:30
by Rothaon
I'll try to add some questions
It doesn't let me use value input's though