I recently upgraded to the 1.3 alpha release via svn.... using the bulletproof template, I selected one of our options that displays only a single sidebar... specifically our B-S option (blog first, right sidebar only). Our bp code under this scenario will print all left sidebar items first, followed by all right sidebar items, but keep them all on the right side:
Code: Select all
{serendipity_printSidebar side="left"}
{serendipity_printSidebar side="right"}
Notice we are not using an {if} to determine whether or not left or right side items actually exist. Under 1.2, this was not a problem.
However, with 1.3, an error is triggered if one of the sidebars does not contain any items. Now, this is easily solved by this:
Code: Select all
{if $leftSidebarElements > 0}
{serendipity_printSidebar side="left"}
{/if}
{if $rightSidebarElements > 0}
{serendipity_printSidebar side="right"}
{/if}
What confuses me is two-fold... first, we didn't need the {if} in s9y 1.2... no error was triggered. Second, even after I installed 1.3alpha, I was not getting any error at all for approximately 3 days - it suddenly appeared after I was deleting some existing categegories I had been using for test purposes. The categories never had anything to do with the sidebar items, so I cannot imagine why it worked without error for several days, and then I suddenly started getting this error when - in my case - no left sidebar items existed.
Soooooo.... anyone care to offer an explanation? I wanted to bring it up in case it is actually something that needs to be fixed in 1.3, and not a template.
BTW - the error was something like "Cannot include blah blah".. I can't remember the actual error... but it should be easy enough to recreate.