Replies

Aug 29, 2017 8 years ago Official
Bug
User Avatar
Segfault

You're not a pain! It's the drawers being painful for both of us xD

Honestly, I really appreciate that you're being patient, even though you seem to be kinda unlucky as far as drawer problems go D: I imagine it's frustrating for you to have these issues, yet you're not being rude or yelling at me over it and I appreciate that a lot.

I double-checked the database for you, and here's the state of your data:

  1. Your old drawers appear to be gone (I'm sorry...)
  2. You have one drawer on the new system, called Accessories, and the items you added to it do say they're in that drawer.

To test if there was a problem with the wardrobe app, I created a new drawer just now, and then loaded the wardrobe. It didn't show up at first. I did a hard refresh (Ctrl+F5) and the drawer did show up in the dropdown and work correctly:

So I'm thinking that perhaps you need to do a hard refresh to get it to show up? In most browsers you can do a hard refresh (as opposed to normal refresh) by pressing Ctrl + F5. Try clearing your browser's cache and doing a hard refresh on the wardrobe page and see if that helps.

I created another drawer after this one, and this second drawer showed up immediately. The server's cache gets updated whenever you create a drawer, so I think it might be your browser that's aggressively caching it?

Finally you can try hard-refreshing this page directly: https://sapi.subeta.net/v1/wardrobe/items?page=1&name=&order=timeline&dir=desc&showAll=off&cws=default&layer=head&perPage=50&drawer=0

This should be the exact URL your wardrobe is using to get the drawer data (based on your screenshot above) so if you force a hard-refresh on that page, hopefully your wardrobe will be able to get the correct results!

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
Khaiya
vs. Evil
User Avatar

~ I am happy to report, that beyond some slower loads, and a touch of fiddly-ness with the searches which is not new, Wardrobe worked just fine for me in Firefox. Thought you'd like to know that. :D New HA done and done.....

We are the ones who remember, the ones who see what was, and is, and will be. Me~

Aug 29, 2017 8 years ago
Silvy
is a busy bee
User Avatar
Tziety

There's no way I could ever be rude, especially when you're being so patent and doing your best to tackle all these bugs! :) I actually do hard refreshes a lot, especially when trying to make something work and know a regular F5 won't do at all.

I just cleared cache and did a hard refresh. Drawer doesn't show up (I'm cursed, RIGHT?)

I clicked on the link and hard refreshed. Refreshed and hard refreshed the wardrobe and the drawer is still MIA :(

I really feel bad, not so much that I can't seem to make it work, but on the fact that I have to keep notifying you about it :(

Silvy is a Proud Member of
🎉 | | | 🎉

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

Omg why will the coding gods not smile upon us...

Could you click on that giant link I gave you again, and copy paste the entire page into a pastebin for me? https://pastebin.com

Are you able to try using a completely different browser? For instance, if you're using Chrome, try Firefox and vice versa.

(I feel really bad too because as a coder I want things to be quick and easy for the users, but clearly that isn't happening here lol... and instead I'm asking you to go through all this troubleshooting after deleting your drawers too x_x)

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
Silvy
is a busy bee
User Avatar
Tziety

I hope I did this correctly: https://pastebin.com/Hzni3jLD

I'll go and see if I still have firefox downloaded (I only use Chrome)

You're doing your BEST to help me, I can always put things back into the drawer when we can get it to work. Don't feel bad for having my old one deleted, I didn't have that many accessories there to begin with.

[edit] I just checked in Firefox and the drawer doesn't show up in the wardrobe :( I copy & pasted the link you provided and hard refreshed then hard refreshed the wardrobe but still nada :(

Silvy is a Proud Member of
🎉 | | | 🎉

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

Oh man this is so puzzling. At the very end of your pastebin, you can see part of the text says this:

"drawers":[{"id":38443,"userid":137415,"name":"Accessories","created_at":null,"updated_at":null,"old_id":38443}]

which means the data is definitely there... I'm trying to think how it can even be possible that your wardrobe is not getting it.

Can you check if you are using HTTPS to access subeta and the wardrobe consistently? For instance, the link I gave you uses HTTPS. If you've been using HTTP (without the s) then that might be a factor. Try these URLs for the wardrobe:

https://subeta.net/wardrobe.php https://subeta.net/wardrobe.php#/items

I have to say, one lucky thing about you is that you seem to be awake and online at the same time I usually am, so I can at least give you fast responses xD

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
Silvy
is a busy bee
User Avatar
Tziety

I noticed it ! I thought we could only use subeta in https? I do use the https in my subeta surfing all the time though.

checks your links anyway Nope they still won't show the drawer.

Being online as the same time you are is one of the first benefits I've noticed from playing Subeta in Spain lol

Silvy is a Proud Member of
🎉 | | | 🎉

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

Yeah.. If you try to use HTTP, it should just redirect you to HTTPS automatically (that's something Cloudflare does for us!) But I thought we should check it just in case.

Okay I have some more ideas for things you can try... if you want to take a break or anything though, you totally can, cuz I know debugging is stressful and don't want you to be too stressed by doing all this for me.

One: The other day when we were talking, I mentioned that there's something you can do with the console to give us more information:

Quote by Bug
The only other thing I can think for troubleshooting right now, is if you could find the network console output for me using the steps described in this post, however it&;s not an obligation as I understand it&;s a bit technical.

You would follow exactly the steps as in the post I linked. If you get stuck somewhere or confused by any of it, you can send me screenshots and questions and I'll do my best to help. In a nutshell, there is a console you can open in your browser, which keeps a record of network requests on a page: whenever the page loads another URL, like even just an image URL, it's recorded. So on the wardrobe page, it will record all of the times the wardrobe calls the sapi.

Two: Another thing I wanted to ask, just to double-check... could you right-click on the drawers dropdown in the wardrobe and select "Inspect Element", and see if you can find the HTML for the dropdown? I am wondering if maybe the drawers are there but just... getting written into the HTML incorrectly so you can't see them.

Three: If you add new items to your wardrobe, do they show up? If you remove items from your wardrobe (using the Organize Items page) do they still show up in the wardrobe app, or are they removed?

People who live in Europe are the perfect companions for New Yorkers with a dysfunctional circadian rhythm like me :)

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
Silvy
is a busy bee
User Avatar
Tziety

for step 1, I should do it in the wardrobe page, I assume?

Silvy is a Proud Member of
🎉 | | | 🎉

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

Yup! Load up the wardrobe app, open the console to the network tab (hopefully the instructions I wrote out are clear) and then refresh the page (with the console still open). You should see some sapi calls there just from refreshing the page. Those are the ones you want to look at.

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
Silvy
is a busy bee
User Avatar
Tziety

here's what I could discover

Step 1: Status was 200 for all three {0: "owned_items", total: 23065, per_page: 100, page: 1, last_page: 231,…} 0: "owned_items" drawers: [{id: 38443, userid: 137415, name: "Accessories", created_at: null, updated_at: null, old_id: 38443}] items: [{itemid: 188761, name: "Lyrical Bumbus Grip Belt", image: "item_lyrical_bumbus_gripbelt.gif",…},…] last_page: 231 page: 1 per_page: 100 total: 23065

For step 2, I get:
== $0

For step 3 I tested with I was able to remove it just fine and it was immediately placed in my inventory (as expected). Still waiting for wardrobe to load so I can check that it won't show up so I can add it back and check again

[edit] Search doesn't seem to load items :( However, when I refresh the wardrobe, I can see the scarf as the newest item added

Silvy is a Proud Member of
🎉 | | | 🎉

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

Thank you so much.

For the source code, can you click the triangle next to the select tag? I drew a box around that tag here, we want to see what's inside there: https://i.imgur.com/a7tSWQV.png

Your first screenshot has the drawer data right there :o Can you get back to that screen, and click the filter button? I wonder if you can get a screenshot of your dropdown having no drawers in it, while the console shows your drawer at the same time?

What I'm seeing from this is that the backend (the sapi stuff) is working properly. The correct data is being sent to the wardrobe app. It looks like the problem is happening after the wardrobe receives that data - it's not putting it in the dropdown like it should. If you can get a screenshot like what I described, I will ask Keith about it since he coded the frontend and is much more familiar with the code there. And I think that is where the problem must be occurring.

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
Silvy
is a busy bee
User Avatar
Tziety

Sorry I poofed , was making lunch.

Here's the source code for the drawer (is this what you mean? I'm a bit confused)

Just in case, here's this other screen shot.

Silvy is a Proud Member of
🎉 | | | 🎉

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

No worries. I'm going to bed soon though myself. And thank you, that's perfect. I think we've done our best for now. I'll keep you updated. Sorry again for all the trouble this has been, and thanks for helping me with the debugging.

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
Silvy
is a busy bee
User Avatar
Tziety

Yay, I'm glad I did it correctly and were able to help you help me lol Hope you have a good night rest!

Silvy is a Proud Member of
🎉 | | | 🎉

Aug 29, 2017 8 years ago
osterizer
made a huge mistake
User Avatar
Tinky_Winky

Quote by Bug
Haha I&;m sure you guys have it in like... a single database field. Yo get over here and help us xD

Sorry, it was a school night and I got to bed at a decent hour for a change! ;) I saw where someone wanted a list of item numbers -- which items am I pulling?

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

Hello there fellow coder xD These are the two lists if it's not too much trouble for you:

Quote by Reaper
Drawer one: Custom Wears
all of the items supposed to be in there - total count: 2,691 items</p>
<p>Drawer two: Private CWs
all of the items supposed to be in there - total count: 541

We need these two (in two separate lists) and just the item IDs. Whatever is easiest for you, like if it's just a comma-separated-integers sorta thing that's fine, though if you want to be nice and give it to me in JSON that would be fantastic :)

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
osterizer
made a huge mistake
User Avatar
Tinky_Winky

-- thanks. I've got what you need -- sMail me an email address I can send it to (I mean, I guess I could just post it here, but that'd be a loooooong message!)

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

You can send it to bug(at)subeta.net :) (But probably send as a .txt or something so gmail doesn't freak out over it.)

Thank you so much!

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
osterizer
made a huge mistake
User Avatar
Tinky_Winky

: On the way.

Please log in to reply to this topic.