Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    E-Blah Discussion    E-Blah Bugs  ›  Possible bug when deleting a category
Users Browsing Forum
No Members and 1 Guests

Possible bug when deleting a category  This thread currently has 210 views. Print
1 Pages 1 Recommend Thread
Apollo
January 31, 2008, 8:58pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 208
Posts Per Day: 0.16
Time Online: 1 days 23 hours 18 minutes
I may have seen a bug while attempting to remove a complete Category, and the Boards and Messages it contained.

I had wanted to check the content for anything useful, so had first checked the messages, then deleted them in batches at Admin/Mod level until they were all gone.

I then deleted all the Board in the Category, which worked as expected and removed them.

I next used the Remove option for the Category, from the Edit Boards and Categories Screen, but found the empty Category was still present even after a rebuild.

I also went into the Edit Category option, and used the Remove button (beside the Save button at the bottom of the form), but again found the Category was still visible, and still remained after a rebuild.

In each case the code reported that the relevant entry had been deleted from bdscats.db, however inspection of this file showed that the Category entry was still in place.

Easy enough for me to delete the line entry manually, but thought I should mention in case it's something that crept into the recent changes, and not unique to me.
Logged Offline
Site Site Private Message Private message
Justin
February 1, 2008, 2:09am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Are you able to change any of the category names/descriptions?


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 1 - 2
Apollo
February 1, 2008, 5:00pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 208
Posts Per Day: 0.16
Time Online: 1 days 23 hours 18 minutes
This looks some sort of file corruption inside bdscats.db and completely unrelated to E-Blah.

Tried a session of creating new Cateories and Boards, and adding some content, then editing, deleting and recreating them - all worked perfectly.

I couldn't delete any of the live data, but adding and deleting Boards to other existing Categories worked perfectly too.

Returning to the problem Category, I noticed that when I deleted Boards beneath it, the name was removed, but the folder graphic remained in place and could not be removed, although it could be moved to other Categories. Examining bdscats.db showed the Board name was still in the Category line.

I couldn't see anything different in the line before I tried to delete it using the E-Blah editor, but afterwards I could see that the problem Category had an extra pipe | at the end. Revealing paragraph marker showed that this line end was a Carriage-return followed by a pipe followed by a Line-feed: CR|LF

All other line entries were Carriage-return followed by Line-feed: CRLF

As a last check, I deleted everything at the end of the line, then inserted a CRLF by hand, and deleted the Board entries.

Using the E-Blah Editor, the problem was still the same, I couldn't delete the Category and the CR|LF line ending re-appeared.

I then deleted the whole line corresponding to the offending Category - this completely removed the offending board and the symptom.

Out of curiosity, I recreated the Category using the same names, descriptions etc, and this worked perfectly.

Most odd, as the new line and the old problem line look the same when pasted one above the other in a text editor.

I was also monitoring what was being added/removed to bdindex.db at the same time, and at first glance, the entries were appearing and disappearing as expected.

One to forget, I think.

Logged Offline
Site Site Private Message Private message Reply: 2 - 2
1 Pages 1 Recommend Thread
Print

E-Blah Community    E-Blah Discussion    E-Blah Bugs  ›  Possible bug when deleting a category