calguy1000 wrote:It appears to be a smarty issue with the actual name of the block plugin.
renaming the block plugin to something that does not start with zz2 works just fine.
What name are you using? When I change it to "abcqrs" I still get the same behavior as long as the block actually exists: it works in page content but not in a layout template -- not even a new and trivial layout template like:
However, the template editor happily accepts a non-existent block tag. Change "abcqrs" to "asdfdas" without creating the plugin to support it, and you can save the template without error.
In fact, I can trick the layout template editor into accepting the tag by deleting the tag from the plugins directory, clearing the cache, saving the template, restoring the tag to the plugins directory, and running the page as a user. The page displays correctly, although with warnings and notices to the error log.
But then, as you might suspect, saving (or trying to edit?) a page using that template gives a white-screen error.
I've tried returning nothing, TRUE, FALSE, empty-string, and 'a' from the opening tag, all without success.
That's all after upgrading to 1.11.11 now.
Are we really running identical systems or is it possible you have a newer version of of Smarty in your 1.11.11 testbed? My smarty.version shows Smarty-3.1.16
But if it's only a Smarty bug, it seems a bit odd for it to be context-dependent within CMSMS. Yet none of the CMSMS-provided tags are of block type; could it really be possible that nobody has tried to use a block tag in a layout template until now? That also seems improbable.