Closed (won't fix)
Project:
Advanced Book Blocks
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2009 at 15:38 UTC
Updated:
26 Aug 2016 at 01:00 UTC
Jump to comment: Most recent
Comments
Comment #1
azol commentedI think my patch solves this problem as well (1st comment in #585716: New book never becomes enabled automatically if any ABB use taxonomy terms as condition issue thread)
The problem is with module code starting at line 544 where we get the book ID. The problem is if you DELETE a top-level book (line 614), the book ID ($bid) is still undefined, so the book never becomes actually deleted and you end up with corruption in adv_book_custom table instead. My solution was to swap lines 543 and 544 so $bid is getting correct value BEFORE the 'if' statement.
Replace your module with the file attached and check if the problem goes away. It will not heal already corrupted table though. Better uninstall/delete the module completely (so it cleans up all the custom tables), reinstall and replace the file.
I was trying to contact ABB author (Aaron Hawkins) about preparing the next version with several bugfixes, but to no avail. I use this module extensively and have not discovered any flaws with the solution yet. Let me know if it solves your issue.
Comment #2
azol commented#585716: New book never becomes enabled automatically if any ABB use taxonomy terms as condition message #2 now has the patch ready for testing.
Comment #3
azol commentedComment #4
jasonsafro commentedD6 support is over. If this isn't fixed, it's not getting fixed.