Hi All, I just upgraded from PHPTAL 1.1.12 to 1.1.16, and a macro that I have been using suddenly stopped running with an exception: ParserException with message 'Finished document in unexpected state: root node is not finished'
The macro is as follows: <ul metal:define-macro="sitemaprecursive" tal:condition="sitemap"> <li tal:repeat="l sitemap"> <a href="#" tal:attributes="href l/Link">${l/Title}</a> <tal:block tal:condition="l/Pages" tal:define="sitemap l/Pages" metal:use-macro="sitemaprecursive" /> </li> </ul> <tal:block metal:use-macro="sitemaprecursive" /> A very similar macro using the exact same models works fine on the same site, but for some reason this one doesn¹t want to play ball, it was working fine until I upgraded to the latest stable, and works if I revert back, does anyone have any ideas? Working macro is: <ul metal:define-macro="recursivelist" tal:condition="menu"> <li tal:repeat="l menu"><a href="#" tal:attributes="href l/Link">${l/Title}</a> <tal:block tal:condition="l/Pages" tal:define="menu l/Pages" metal:use-macro="recursivelist" /></li> </ul> <tal:block metal:use-macro="recursivelist" /> Thanks in advance. Nick Pack Technical Services Manager E: n...@carbidefinger.net DDI: 020 7193 4510 T: 0845 8128206 W: http://www.carbidefinger.net Please do not send support enquiries directly to my email address, please instead direct them to our automated tickets system at supp...@carbidefinger.net to enable faster handling of your queries. Company Details: Carbide-finger Limited, registered in England no.4388897. Registered office: Weir Cottage, 2 Laindon Rd, Billericay, Essex CM12 9LD Confidentiality: This e-mail and any attachments are intended for the addressee only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on its content is prohibited and may be unlawful. The views expressed in this message are those of the individual sender and do not necessarily represent the views of Carbide-Finger Limited. Security: This e-mail and any attachments are believed to be free from any virus but it is the responsibility of the recipient to ensure this is so. E-mail is not a 100% secure communications medium. We recommend you observe this when e-mailing us
_______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal