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."
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | template_api-no_template_be_nice.diff | 513 bytes | arithmetric |
Comments
Comment #1
arithmetric commentedThe attached patch throws the exception for a missing template when it's initially loaded, so the intended template name is known.
Comment #2
indytechcook commentedI like being nice!
http://drupal.org/commitlog/commit/32110/704ae60cbe0d5b9ecdb6964b8d620b7...