Replies

Nov 14, 2019 6 years ago Official
Keith
is sweet
User Avatar
Eradication

Wow a few fun days! I know that the downtime went longer than we anticipated, and that sucks. It sucks for you, and it sucked for me staying up 24 hours to watch it to make sure it didn't crash again ????. However, we're on the other side of that now, and I've been spending my time rewriting the way that Subeta interacts with it's database. A lot of the problems that have come up since we moved comes from moving to a newer database engine, and a newer version of PHP, from the deprecated ones we were using before. These newer versions place extra limits on what kind of "old" things can be run to increase speed, security, and error logging.

Unfortunately, a bulk of Subeta was written 15 years ago, even with pieces of it being rewritten every month. The 'core' of the site is database.php, a giant class that handles all database connections on Subeta that have been written in the last 15 years. There was work from me & alx about 8 (???) years ago to modernize it then, but a lot of the site still used the old functions.

With the move to laravel for our API (wardrobe, some parts of the forums, etc) and using a query builder for newer parts of this site, we've been writing new, performant MySQL queries that are easier to track and debug. I've spent the last little while rewriting database.php from the ground up, analyzing our old queries and routing them to the modern query builder. This has mostly been a success, but I need more testing on the site to make sure that it's working 100%.

This resolves a lot of our problems. Right now we're connecting to the database twice to run both of these, and with this change we need one database connection per page. That alone will speed up the site 2x. Running queries through the query builder also means we'll have improved analytics and details on how those queries are being run, making it easier for us to tweak queries to speed up the site. It also fixes a lot of things like our current apostrophe problem, and just lots of weird quirks.

If you feel comfortable, check out the instructions at the bottom of this post. WARNING: YOU COULD LOSE ITEMS OR OTHER THINGS YOU TRY TO MOVE so be careful not to try to put a custom item in your shop. For the most part I've already fixed all of these bugs, but you never know.

Instructions

  1. Go to https://database.subeta.net
  2. Browse the site
  3. If you run into an error that tells you to post here, do that! 3a: If you run into a blank page or other error, first make sure that it's not broken on the main site (subeta.net) first, and then post it here. I want to make sure I'm fixing things on this branch that are broken there!

Things this does not cover:

  • Things coming from the API, so the wardrobe and forums!

THANK YOU!

💖 ✨ 🤗

Nov 14, 2019 6 years ago
Cassandra
made a huge mistake
User Avatar
Kemintari

MySQL error, please report this on the forums: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '596290-23' for key 'usermedal' (SQL: insert into user_medals (userid, medalid) values (596290, 23))








If I miss a flowering please let me know

Nov 14, 2019 6 years ago
Marina
is magical
User Avatar
Talianeth

MySQL error, please report this on the forums: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '252073-23' for key 'usermedal' (SQL: insert into user_medals (userid, medalid) values (252073, 23))

on https://database.subeta.net/shop.php?shopid=25

Looking for birthdays: Feb 21/2025, April 8/2013, Sept 3/2017 [url=https://subeta.net/wishlists.php/252073/200623]Moro WL[/URL] | [URL=https://subeta.net/user_shops.php/shop/44293]Moro Trading[/URL] [url=https://subeta.net/wishlists.php/252073/235055]Lifelike Dolls WL[/URL] | [URL=https://subeta.net/user_shops.php/shop/11369/category/Lifelike+Dolls]Extra Dolls[/URL]

Nov 14, 2019 6 years ago
Solsticesprite
cleans up nicely
User Avatar

Blank page result, this was an attempt to move a rainbow star rod from Item Box to my shop Zymurgic Syzigies. There already were some there, so I don't know if it failed to transfer or not, but it's no longer in Inventory. Moving Orange Juice in regular site does not result in a blank page, so this is not broken on Subeta main.

https://database.subeta.net/item.php?act=newshop&itemid=3017965817&shopid=8212

Nov 14, 2019 6 years ago
Marina
is magical
User Avatar
Talianeth

MySQL error, please report this on the forums: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'wizard-20191113' for key 'unique' (SQL: insert into quests_daily (quest_id, date) values (wizard, 20191113))

on https://database.subeta.net/quests.php/wizard/finish

Looking for birthdays: Feb 21/2025, April 8/2013, Sept 3/2017 [url=https://subeta.net/wishlists.php/252073/200623]Moro WL[/URL] | [URL=https://subeta.net/user_shops.php/shop/44293]Moro Trading[/URL] [url=https://subeta.net/wishlists.php/252073/235055]Lifelike Dolls WL[/URL] | [URL=https://subeta.net/user_shops.php/shop/11369/category/Lifelike+Dolls]Extra Dolls[/URL]

Nov 14, 2019 6 years ago
Oh My Shinwa, we thought
Ocean_Mage
was dead
User Avatar
Muu

Was buying a seed from Seedlings, got a notif for the usual discount (that also showed up here) but: MySQL error, please report this on the forums: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '698968-23' for key 'usermedal' (SQL: insert into user_medals (userid, medalid) values (698968, 23))


Nov 14, 2019 6 years ago Official
Keith
is sweet
User Avatar
Eradication

Pushing out a fix for the medal code!

💖 ✨ 🤗

Nov 14, 2019 6 years ago
satan
is a bad egg
User Avatar
Whisper

[sub]▪︎cw shop | [/sub]

Nov 14, 2019 6 years ago
OneWingedAngel
is made of stardust
User Avatar
Charlie

MySQL error, please report this on the forums: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '449780-23' for key 'usermedal' (SQL: insert into user_medals (userid, medalid) values (449780, 23))

https://database.subeta.net/shop.php?shopid=6

When purchasing from a shop.

[img align=right]http://i1310.photobucket.com/albums/s659/onewingedpsycho/snowflake_zps967f1623.png[/img]
Art by Snowflake <3 [kiss=#onewingedangel] To all the beautiful rats who forever left their footprints on my heart - Run free, you were loved. Ollie, Lily, Cas, Ragnar, Snart, Rory, Barry, Cisco, Diggle and HR ❤

Nov 14, 2019 6 years ago
Solsticesprite
cleans up nicely
User Avatar

Chrome OS and Browser.

This is a blank page result that only happens after 'add to shop' in quickstock, but not in 'add to wardrobe' or 'add to collection'. This doesn't happen in subeta.net.

https://database.subeta.net/user_shops.php/mine/8212/qs

Nov 14, 2019 6 years ago
satan
is a bad egg
User Avatar
Whisper

'organize items' link in wardrobe and 'return to subeta' pages both link to the OG site, not database jsyk

[sub]▪︎cw shop | [/sub]

Nov 14, 2019 6 years ago
AlexLaurence
went to a dead man's party
User Avatar
Willow.

Database error - send this to Keith: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' medalid='23'' at line 1 (SQL: SELECT * FROM user_medals WHERE userid='700276', medalid='23')

This was on https://database.subeta.net/shop.php?shopid=14 when I tried to buy something

Nov 14, 2019 6 years ago
Clovis
will survive
User Avatar
Elrik

Was in the Database version, tried to restock from Defend and Conquer and got this instead:

MySQL error, please report this on the forums: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '696656-23' for key 'usermedal' (SQL: insert into user_medals (userid, medalid) values (696656, 23))

(Using newest version of Chrome. btw when I'm on the database version it says "Not secure" to the left of the url)

🌸 🌸 [sup]i have more zombies that cant fit but im keeping this cuz i like it[/sup]

Nov 14, 2019 6 years ago Official
Keith
is sweet
User Avatar
Eradication

Pushing out a fix now for the quickstock issue, and the issue had

💖 ✨ 🤗

Nov 14, 2019 6 years ago
Pun
is very punny
User Avatar
Eager Beaver

Buying from Icy Goods.

Database error - send this to Keith: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' medalid='23'' at line 1 (SQL: SELECT * FROM user_medals WHERE userid='670601', medalid='23')

Nov 14, 2019 6 years ago
Caitlin
is one for the books
User Avatar
Derp Derp

When I accept a trade on the database server, it reloads the page like the trade was accepted, but then I go look at trades and the trade and offer are still there.

When I accept a trade on subeta.net, I get

Quote
Oh No!
Failed giving event for voided offer: 3650450

When I try to decline a trade on subeta.net, I get

Quote
Oh No!
There was an error removing the offer:
Couldn&;t lock offer.

I am entirely unable to accept trades, on subeta.net or the database server. I can decline a trade, but it does not bring up an event for the other person.

❤ Forum art by CW thread | [URL=https://tinyurl.com/caitping]Ping Group[/url] | CW Shop Holy Onions CWs | The Galaxy Crew Events and CWs

Nov 14, 2019 6 years ago
Solsticesprite
cleans up nicely
User Avatar

Chrome OS and Browser

This is attempting to get into my shop Zymurgic Syzigies

Database error - send this to Keith: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 (SQL: SELECT userid, frozen FROM user WHERE userid IN ())

Nov 14, 2019 6 years ago Official
Keith
is sweet
User Avatar
Eradication

Can you make an offer on my trade so i can try it out?

💖 ✨ 🤗

Nov 14, 2019 6 years ago
Caitlin
is one for the books
User Avatar
Derp Derp

I offered on your trade :)

❤ Forum art by CW thread | [URL=https://tinyurl.com/caitping]Ping Group[/url] | CW Shop Holy Onions CWs | The Galaxy Crew Events and CWs

Nov 14, 2019 6 years ago
Taffy
is sweet
User Avatar
Sassyfras

Database error - send this to Keith: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 (SQL: SELECT userid, frozen FROM user WHERE userid IN ())

Please log in to reply to this topic.