After upgrading a site from 2.4.x to 2.6.x, I'm experiencing an odd issue where Craft throws the following template error whenever I attempt to edit a field:
Variable "targetLocaleFieldHtml" does not exist
The error message only displays if devMode
is set to true
, occurs for all fields and fieldtypes (also when attempting to create a new field), and prevents me from actually editing field settings (unless I turn off devMode
).
Here's the full stack trace:
Template Error
Variable "targetLocaleFieldHtml" does not exist
/somepath/craft/app/templates/_components/fieldtypes/elementfieldsettings.html(33)
21 options: sources,
22 value: settings.source
23 }) }}
24 {% endif %}
25 {% else %}
26 {{ forms.field({
27 label: (allowMultipleSources ? "Sources"|t : "Source"|t)
28 }, '<p class="error">' ~ "No sources exist yet."|t ~ '</p>') }}
29 {% endif %}
30 {% endblock %}
31
32 {% block targetLocaleField %}
33 {{ targetLocaleFieldHtml|raw }}
34 {% endblock %}
35
36 {% block limitField %}
37 {% if allowLimit %}
38 {{ forms.textField({
39 label: "Limit"|t,
40 instructions: "Limit the number of selectable {type}."|t({ type: type|lower }),
41 id: 'limit',
42 name: 'limit',
43 value: settings.limit,
44 size: 2,
45 errors: settings.getErrors('limit')
2016-06-06 18:44:40 Apache / Craft 2.6.2789