It looks for a template file if it exists and adds it to the array, however if it does not, it does not set that array member to false, and the admin screen depends on it.

    * Notice: Undefined index: teaser-file in contemplate_admin() (line 210 of sites/all/modules/contemplate/contemplate.module).
    * Notice: Undefined index: body-file in contemplate_admin() (line 211 of sites/all/modules/contemplate/contemplate.module).

Managed to hit this issue when i deleted all the built in types like page, story, etc

Comments

rhouse’s picture

This fix doesn't work:

+ } else {
+ $types[$type][$field . '-file'] = false;

It produces dozens of error messages. But this fix seems to eliminate them all:

+ } else {
+ $types[$type->type][$field . '-file'] = false;

Hope that helps.

mike27’s picture

subscribing

dgtlmoon’s picture

StatusFileSize
new605 bytes

Try this patch let me know...

dgtlmoon’s picture

Status: Needs review » Fixed
StatusFileSize
new37.18 KB

fixed the issue and comitted

Status: Fixed » Closed (fixed)

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