MySQL error on colours section?

Any problems or suggestions regarding the forums or scripts, post them here.
Post Reply
Aqua
Posts: 730
Joined: 07 Jan 2006 08:56 pm
Location: Imagination Land

MySQL error on colours section?

Post by Aqua »

When I try to view the new colours, any section (main, poses), I get this error:

Could not retrieve userdata for : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Doesn't happen on my alternate browsers, just my main one, Safari..
Silverevilchao
Posts: 1586
Joined: 07 Jan 2006 09:04 pm
Gender: Female
Human Avatar: 155477
Location: Home. :)
Contact:

Post by Silverevilchao »

It happens to me every other time I even try to go on Neocolours, and I'm using IE. :(
Image
Happy
Posts: 162
Joined: 30 Jan 2006 03:22 pm
Location: South East Asia Listening to: One Fine Day Feeling: Excited

Post by Happy »

Happens everyother time to me too, I'm on Firefox. I can only get to the forums by going through an error page.
ImageImage
Set by Maniac (PPT) // Wooble by MM
Huggles
Feral Koala
Posts: 2508
Joined: 19 Jan 2006 03:56 am
Gender: Female

Post by Huggles »

I'm not experiencing any technical difficulties.
TCD
Posts: 381
Joined: 18 Jan 2006 07:54 pm
Gender: Female
Location: Hogwarts--Slytherin Common Room

Post by TCD »

Me either.
Aqua
Posts: 730
Joined: 07 Jan 2006 08:56 pm
Location: Imagination Land

Post by Aqua »

Hm, seems to be working now.. Maybe I'm in the sometimes camp then.
KasiTL
Posts: 446
Joined: 19 Jan 2006 08:23 pm
Location: Milliways

Post by KasiTL »

I've been getting that the past few days as well. Seems to hit in the afternoon my time, but morning and night don't get the problems so much.
Perhaps we should log what times NST that the main page is b0rked for us.
And for reference, I stick pretty exclusively to Firefox.
Image
Last Update: 8/09/06 - Some blue! And a poll! - Click sig to view.
Silverevilchao
Posts: 1586
Joined: 07 Jan 2006 09:04 pm
Gender: Female
Human Avatar: 155477
Location: Home. :)
Contact:

Post by Silverevilchao »

B0rked at 12:33 NST.
Image
Zap
Posts: 453
Joined: 21 Jan 2006 01:46 am
Gender: Male
Location: Carolinas

Post by Zap »

Seems to be all working again. It was complaining about syntax, earlier (before 12:00 AM NST) but it worked if I used http://neocolours.me.uk instead of http://www.neocolours.me.uk
Last edited by Zap on 14 Apr 2006 04:04 pm, edited 1 time in total.
Joeno
Posts: 194
Joined: 08 Jan 2006 12:35 am
Contact:

Post by Joeno »

I believe this is related to some code I use to handle cookies. What happens is that when checking whether you are logged in, and what you are allowed to access (mostly for Turmaculus at the moment - the link to set it is hidden if you are not logged in) I first check the session cookie and table before using the actual users table. It's faster and less time-consuming because part of the verification is skipped, the first time you load the forums fixes this.

What happens in this case is that this cookie is still set on the user-side, but that it has since then expired on the server. A few numbers don't match up properly, and I pass an empty condition to the database that messes it up.

Reloading the forums should work, and I will try to recode the error messages so that it doesn't prevent page-loading (I thought I already did, but I guess I messed up somewhere by forcing debugging).

Edit: I've implemented a fix. Please let me know if it still goes wrong - I'll need to do some more debugging if it does.
Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests