Non-threaded

Forums » Bugs & Problems » Read Thread

Post reports about problems or bugs in here.
This bug was closed 5/31/2014: unknown

Deleting Scripts

14 years ago
I've noticed this a few times, but the site has a weird thing that it does with scripts. If you create a page, then write some scripting to it, and save. And then later delete the page, and create a new page, your script that was on the deleted page will be on the new one.

Its been a cool feature sometimes when I've accidentally deleted a page that I didn't want to, but it is technically a bug, and it is sometimes confusing and annoying.


It also happens with link scripts when you delete a script.

Deleting Scripts

14 years ago

I never noticed this, I'm going to watch out for it now though. I will chime in when i notice it happen.

Deleting Scripts

14 years ago
yea.... it does it a lot to me. I think it does it every time you create a script and then delete the page/link it was on, and then create a new page/link. For some reason, the script that was supposed to be deleted along with the page or link, isn't, and then gets associated with the new page/link.

I suspect it has something to do with page and link IDs.

Deleting Scripts

14 years ago

But the ID of a deleted page is never used again. If you delete the page with ID # 5 then make another page it will not be assigned ID # 5. The last thing im going to do is say your wrong, because I havnt the foggiest, but i dont realy understand how that could be it. There are alot of things i dont understand though.

Deleting Scripts

14 years ago
I know it says somewhere that it doesn't reuse ID numbers, but what it actually does is create new pages starting with one higher than the highest ID, meaning that it won't go back and fill in gaps from deleted pages. But if you delete the very last page(or highest ID#), and create a new page, then it will take the number of the deleted page.

As an example, say I create 4 pages. There ID's will be #1, #2, #3, and #4. If you delete #2 and then create a new page, you'll get #1, #3, #4, and #5. Doing exactly what you said it does, it doesn't use that ID. However, if you delete #5 and create a new page. It's ID will be #5.

That is when this bug occurs. If number five had any scripts, then the scripts will still be there. No matter how you create the page, even if you do it from the new page link, as JJJ suggested below.

Also, this happens to me most with links.

Deleting Scripts

14 years ago
Ah, that does make sense. So a work around would be to create the page before you delete the old one.

Deleting Scripts

14 years ago
Yea, or just quickly delete the script. Which doesn't take much, just a simple ctrl-A, and delete.

Deleting Scripts

14 years ago
I've never run into this, but the only way I ever create new pages is by adding a link to a new page. I never hit the 'create new page' button from the editor. When adding a page from the 'new link' popup, I've never run into this.