If a template is referenced but not available (the class is missing or renamed), then Template Field throws an exception.

This happens in template_api/includes/plugins.inc:
throw new Exception("$klass cannot be found, trying to load $plugin_key plugin.");

At this point, the code does not have access to the template class or plugin name that was referenced on the content, so you get the less than helpful message: " cannot be found, trying to load plugin."

CommentFileSizeAuthor
#1 template_api-no_template_be_nice.diff513 bytesarithmetric

Comments

arithmetric’s picture

Status: Active » Needs review
StatusFileSize
new513 bytes

The attached patch throws the exception for a missing template when it's initially loaded, so the intended template name is known.

indytechcook’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.