Envelope error....
Moderators: Public Relations Department, Players Department, Programming Department
- SekoETC
- Posts: 15526
- Joined: Wed May 05, 2004 11:07 am
- Location: Finland
- Contact:
- *Wiro
- Posts: 5855
- Joined: Mon Sep 29, 2008 1:24 pm
- SekoETC
- Posts: 15526
- Joined: Wed May 05, 2004 11:07 am
- Location: Finland
- Contact:
- SekoETC
- Posts: 15526
- Joined: Wed May 05, 2004 11:07 am
- Location: Finland
- Contact:
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
- *Wiro
- Posts: 5855
- Joined: Mon Sep 29, 2008 1:24 pm
Maybe it's part of PD/ProgD messing with CRBing notes?
Read about my characters by following this link.
- SekoETC
- Posts: 15526
- Joined: Wed May 05, 2004 11:07 am
- Location: Finland
- Contact:
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
- Doug R.
- Posts: 14857
- Joined: Wed Mar 23, 2005 6:56 pm
- Contact:
- *Wiro
- Posts: 5855
- Joined: Mon Sep 29, 2008 1:24 pm
Yeah because the note object is probably just a portal to the note's text.
Read about my characters by following this link.
- Doug R.
- Posts: 14857
- Joined: Wed Mar 23, 2005 6:56 pm
- Contact:
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.
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
- SekoETC
- Posts: 15526
- Joined: Wed May 05, 2004 11:07 am
- Location: Finland
- Contact:
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
- Doug R.
- Posts: 14857
- Joined: Wed Mar 23, 2005 6:56 pm
- Contact:
- SekoETC
- Posts: 15526
- Joined: Wed May 05, 2004 11:07 am
- Location: Finland
- Contact:
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.
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
- Doug R.
- Posts: 14857
- Joined: Wed Mar 23, 2005 6:56 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest
