Actually, the error above appears only when trying to save draft, but album can be published without errors. That’s enough for me, so I’m not planning to dig any deeper.
The key to this JS problem is:
“Since version 1.7.0 Underscore templates no longer accept an initial data object. _.template always returns a function now.”
So there’s a small change needed in file easy-photo-album-page.js around line 292, something like:
// make row from template
var rowTemplate = _.template(EPA.rowtemplate);
var row = rowTemplate({
alternate : (order % 2 === 0 ? ' class="alternate"'
...
});
$('.easy-photo-album-table tr:last').after(row);
Unfortunately, this uncovers another problem – this time in EPA_PostType.php on line 383, I’m trying to look into it now.
I can confirm that upgrade to WordPress 4.5 breaks this plugin, and since it’s not being updated for 2 years now we need to search for a workaround.