Envelope error....

Forum for general requests for support for players. Both staff members and veteran players can help new players with problems they encounter. No chatting in this forum, please.

Moderators: Public Relations Department, Players Department, Programming Department

User avatar
SekoETC
Posts: 15526
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Postby SekoETC » Fri Nov 06, 2009 2:47 pm

Well bummer, then it only made it worse since now it affects everyone when it used to only affect a couple of people. I'll go revert it.
Not-so-sad panda
User avatar
*Wiro
Posts: 5855
Joined: Mon Sep 29, 2008 1:24 pm

Postby *Wiro » Fri Nov 06, 2009 3:35 pm

Somehow all envelopes now just disappeared. D:
Read about my characters by following this link.
User avatar
Dudel
Posts: 3302
Joined: Wed Oct 01, 2008 5:21 am

Postby Dudel » Fri Nov 06, 2009 4:06 pm

My envelopes seem fixed now.
User avatar
SekoETC
Posts: 15526
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Postby SekoETC » Fri Nov 06, 2009 5:32 pm

Yeah, I assume that was a joke Wiro, since my envelopes went back to working normally.
Not-so-sad panda
User avatar
SekoETC
Posts: 15526
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Postby SekoETC » Thu Nov 12, 2009 7:23 pm

I just ran into the envelope error concerning one envelope, and I checked the database to see it was quite old, one or two less digits than the other envelopes in my character's inventory. Then I checked if there were any notes inside, since my hypothesis was that the error could ensue from trying to open an empty envelope, but there was one note inside. Only this note does not exist in the notes table. There is just a note object but when it tries to fetch the title and contents, it runs into a dead end. Which makes me wonder could it be that the notes in Randi's envelope, or one of them, could have somehow gotten deleted from the table, thus causing the error?
Not-so-sad panda
User avatar
*Wiro
Posts: 5855
Joined: Mon Sep 29, 2008 1:24 pm

Postby *Wiro » Thu Nov 12, 2009 7:30 pm

Maybe it's part of PD/ProgD messing with CRBing notes?
Read about my characters by following this link.
User avatar
SekoETC
Posts: 15526
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Postby SekoETC » Thu Nov 12, 2009 7:40 pm

When people ask me to delete note bombing notes, I delete them from the objects table, I can't remember if I've deleted them from the notes table but anyway, the notes table doesn't seem to contain any text that wasn't attached to an existing note object (that's if I wrote the query correctly). However, there are 770 note objects in the objects table that have no contents or title in the objects table, and I doubt they're just blank... Might be worth testing though.
Not-so-sad panda
rconley
Posts: 4375
Joined: Sun Aug 28, 2005 8:24 am

Postby rconley » Thu Nov 12, 2009 8:23 pm

Whatever it is, I still have the problem and still get the error. Can't get the notes I needed :(
<Viktor> someone asks my career my answer is "full time cantriian"
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Postby Doug R. » Fri Nov 13, 2009 2:59 pm

Seko, if it helps, when the PD deletes a note using the note tool, the text of that note stays in the database. I'm 99% certain that it does. Not sure if this is helpful in any way.
Hamsters is nice. ~Kaylee, Firefly
User avatar
*Wiro
Posts: 5855
Joined: Mon Sep 29, 2008 1:24 pm

Postby *Wiro » Fri Nov 13, 2009 3:04 pm

Yeah because the note object is probably just a portal to the note's text.
Read about my characters by following this link.
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Postby Doug R. » Tue Nov 17, 2009 7:32 pm

Actually, I just did it!

When I clicked the compose note icon, instead of going to the compose page, it took me back to the notes page (I'm not certain if I clicked something accidentally or not). The new blank note was there, but when I tried editing it, no edits would stick. I put it into my trash envelope, and walla! I can't get into my trash envelope anymore.

So I guess that answers that: Nothing to do with PD tools. I'll try to reproduce it.

Edit: I can't reproduce it, so it seems to have been a glitch in the game, as opposed to me hitting something.
Hamsters is nice. ~Kaylee, Firefly
User avatar
SekoETC
Posts: 15526
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Postby SekoETC » Tue Nov 17, 2009 8:37 pm

A check should be added so that it doesn't attempt to clone the object if the query didn't return any lines. I'm assuming just simply adding if($ref) would work. Of course it doesn't address the issue of how the blank notes are created in the first place, but it would stop the error message from appearing and non-bugged notes could be displayed correctly.
Not-so-sad panda
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Postby Doug R. » Wed Nov 18, 2009 1:49 pm

Go for it!
Hamsters is nice. ~Kaylee, Firefly
User avatar
SekoETC
Posts: 15526
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Postby SekoETC » Wed Nov 18, 2009 4:26 pm

Apparently it doesn't return something that would count as false because the if statement didn't work. After that I tried if(is_object($ref)) and that made the error stop appearing BUT it also prevents non-bugged notes from appearing so it wasn't the right thing either.

Edit: Okay, now I found a thing that works. Might also make it so that it will create an entry for the bugged note so that it becomes editable and visible in the future.
Not-so-sad panda
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Postby Doug R. » Wed Nov 18, 2009 4:46 pm

Bleh. Keep thinking! The answer's out there somewhere!
Hamsters is nice. ~Kaylee, Firefly

Return to “General Support”

Who is online

Users browsing this forum: No registered users and 1 guest