old bulletproof copied template bugs and S9y 1.7 series

Found a bug? Tell us!!
Post Reply
User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

old bulletproof copied template bugs and S9y 1.7 series

Post by Timbalu » Sat Jul 27, 2013 12:31 pm

Some people upgrading to our 1.7 series might inspect a bug with older bulletproof copy templates, when opening GET /?frontpage, which turns white and errors silently into the server error logs. (*, **)
Inspecting that (smarty compile error) in the log isn't a real pleasure, since you have to guess and know about the history of bulletproof changes.

Most of it turns out to be the change from eval to assign in the pagination section of entries.tpl long time ago (*). This was already mentioned in some few threads of this forum before, so this might not really hit too much people. (There are some other minor changes too)

It just might be a very good idea, before an upgrade to the 1.7 series is processed, to copy this into your (only bulletproof copy) template before
https://raw.github.com/s9y/Serendipity/ ... ntries.tpl
... and also this file
https://raw.github.com/s9y/Serendipity/ ... ig.inc.php
to reflect some needed changes over years in the config file.

If you have done some individual tweaks to these files, please compare and replace!

(*) This errors like this for example: "Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file '-3' in 'file: /some/path/serendipity/templates/YOUR_TEMPLATE_NAME/entries.tpl' in ... "

(**) This error can also happen to the public, viewing categories needing the pagination to split entries.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

Post Reply