This is a wordpress plugin I've used Backbone Marionette to build the back-end. The problem is that the template code (html and javascript) its being execute as php.
Fatal error: Call to undefined function substring() in ../main-menu.php on line 304
<script type="text/template" id="amazon-result-item-view">
<p class="small-text">
<a href="<%= url %>" target="_blank" >
<%= name.substring(0,30) %>... //getting the php error at this line
</a></p>
<img width="100" src="<%= image_url %>" />
<button data-product-index="<%= cid %>"
class="tiny add-amazon-product">
Add product</button>
</script>
This is from a plugin that is working in several other WP sites my guess is that this one is parsing anything wrap by this <%= %> as php but not sure why...