Ошибка Не заходит в модули

nebikoff

Постоялец
Регистрация
5 Авг 2013
Сообщения
478
Реакции
196
Перестает заходить в модули на определенных товарах. Просто пишет, что настройки обновлены, а сам модуль не открывает. Даже если их несколько, во все не заходит. Не зависит от шаблонов и версий престы. Ссылается на такой код в кэше, даже если кэш отключен. Ошибка довольно частая, кто встречался, как исправить?
'<?php if (($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']] == $_smarty_tpl->tpl_vars['value']->value['value']) || ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']] != $_smarty_tpl->tpl_vars['value']->value['value'] && $_smarty_tpl->tpl_vars['field']->value['value'] == $_smarty_tpl->tpl_vars['value']->value['value'])) {?> selected<?php }?>><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['value']->value['label'],'htmlall','UTF-8' ));?>
 
В эрор такоое пишет
[Sun Feb 26 02:06:48.149250 2023] [php7:notice] [pid 3553927] [client 84.17.55.10:23486] PHP Notice: Undefined index: content_active_6 in /var/www/site/data/www/site.ru/var/cache/prod/smarty/compile/laber_complex_home2/31/82/89/3182899109d73b467fd94be44251ea4248840b4b_0.file.form.tpl.php on line 69

Это не ошибка, это предупреждение. Но другого ничего нет. К какому файлу отсылка form.tpl?
 
Чего-то я не досмотрел. Там же написано, что это за файл - anproductextratabs. Это модуль вкладок

Код:
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.47',
  'unifunc' => 'content_63f77d9c063311_29288797',
  'has_nocache_code' => false,
  'file_dependency' =>
  array (
    '3182899109d73b467fd94be44251ea4248840b4b' =>
    array (
      0 => '/var/www/site/data/www/site.ru/modules/anproductextratabs/views/templates/admin/form.tpl',
      1 => 1667646058,
      2 => 'file',
    ),
  ),
  'includes' =>
  array (
  ),
),false)) {
function content_63f77d9c063311_29288797 (Smarty_Internal_Template $_smarty_tpl) {
?><div class='row anproductextratabs_forms'>
    <div class='col-lg-12'>
        <h4><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Edit tab','mod'=>'anproductextratabs'),$_smarty_tpl ) );?>
 <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['tab']->value->name,'htmlall','UTF-8' ));?>
</h4>

        <input type='hidden' name='id_shop' value='<?php echo intval($_smarty_tpl->tpl_vars['tab']->value->id_shop);?>
'>
        <div class='col-md-3'>
            <label>Tab type: <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['tab']->value->getTypeFull($_smarty_tpl->tpl_vars['tab']->value->type),'htmlall','UTF-8' ));?>
</label>
        </div>
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['fields']->value, 'field');
$_smarty_tpl->tpl_vars['field']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['field']->value) {
$_smarty_tpl->tpl_vars['field']->do_else = false;
?>
        <div class='form-group'>

                <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'hidden') {?>
                    <input type='hidden' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
' value='<?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']]))) {
echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']],'htmlall','UTF-8' ));
}?>'>

                <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'switch') {?>
                <div class="form-group">
                    <div class='col-md-3 text-right'>
                        <label for='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['label'],'htmlall','UTF-8' ));?>
</label>
                    </div>
                    <div class='col-md-3'>
                        <select class='form-control' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
'>
                            <?php if ((isset($_smarty_tpl->tpl_vars['field']->value['values']))) {?>
                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['field']->value['values'], 'value');
$_smarty_tpl->tpl_vars['value']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->do_else = false;
?>
                                <option value='<?php echo intval($_smarty_tpl->tpl_vars['value']->value['value']);?>
'<?php if (($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']] == $_smarty_tpl->tpl_vars['value']->value['value']) || ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']] != $_smarty_tpl->tpl_vars['value']->value['value'] && $_smarty_tpl->tpl_vars['field']->value['value'] == $_smarty_tpl->tpl_vars['value']->value['value'])) {?> selected<?php }?>><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['value']->value['label'],'htmlall','UTF-8' ));?>
</option>
                                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                            <?php }?>
                        </select>
                    </div>
                </div>
                <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textarea') {?>
                    <?php if ($_smarty_tpl->tpl_vars['field']->value['lang'] === true) {?>
                        <div class="translations tabbable" id="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
">
                            <div class="translationsFields tab-content">
                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['languages']->value, 'language');
$_smarty_tpl->tpl_vars['language']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->do_else = false;
?>
                                <div class="translationsFields-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
 tab-pane translation-field translation-label-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['language']->value['iso_code'],'htmlall','UTF-8' ));?>
">
                                    <div class='col-md-3 text-right'>
                                        <label for='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['label'],'htmlall','UTF-8' ));?>
</label>
                                    </div>
                                    <div class='col-md-9'>
                                        <textarea class='rte autoload_rte form-control' id='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'>
                                        <?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']])) && (isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']]))) {?>
                                            <?php echo $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']];?>
                                         <?php }?>
                                        </textarea>
                                    </div>
                                </div>
                                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                            </div>
                        </div>
                    <?php } else { ?>

                    <?php }?>
                <?php } else { ?>
                    <?php if ($_smarty_tpl->tpl_vars['field']->value['lang'] === true) {?>
                        <div class="translations tabbable" id="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
">
                            <div class="translationsFields tab-content">
                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['languages']->value, 'language');
$_smarty_tpl->tpl_vars['language']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->do_else = false;
?>
                                 <div class="translationsFields-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
 tab-pane translation-field translation-label-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['language']->value['iso_code'],'htmlall','UTF-8' ));?>
">
                                    <div class='col-md-3 text-right'>
                                        <label for='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['label'],'htmlall','UTF-8' ));?>
</label>
                                    </div>
                                    <div class='col-md-9'>
                                        <input value='<?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']])) && (isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']]))) {
echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']],'htmlall','UTF-8' ));
}?>' type='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['type'],'htmlall','UTF-8' ));?>
' class='form-control' id='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
'>
                                    </div>
                                </div>
                                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                            </div>
                        </div>

                    <?php } else { ?>
                    <div class='col-md-3 text-right'>
                        <label for='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
'><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['label'],'htmlall','UTF-8' ));?>
</label>
                    </div>
                    <div class='col-md-9'>
                        <input value='<?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']]))) {
echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['field']->value['name']],'htmlall','UTF-8' ));
}?>' type='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['type'],'htmlall','UTF-8' ));?>
' class='form-control' id='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
' name='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['field']->value['name'],'htmlall','UTF-8' ));?>
'>
                    </div>
                    <?php }?>
                <?php }?>
        </div>
        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
        <div class='form-group'>
            <div class="translations tabbable" id="apnt_button_submit">
                <div class="translationsFields tab-content">
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['languages']->value, 'language');
$_smarty_tpl->tpl_vars['language']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->do_else = false;
?>
                    <div class="translationsFields-apnt_button_submit_<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
 tab-pane translation-field translation-label-<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['language']->value['iso_code'],'htmlall','UTF-8' ));?>
">
                        <button type='button' data-id-tab='<?php echo intval($_smarty_tpl->tpl_vars['tab']->value->id);?>
' data-language='<?php echo intval($_smarty_tpl->tpl_vars['language']->value['id_lang']);?>
' name='submit_tabs' class='btn btn-success pull-right submit_tab_<?php echo intval($_smarty_tpl->tpl_vars['tab']->value->id);?>
'><i class=''></i> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Save','mod'=>'anproductextratabs'),$_smarty_tpl ) );?>
</button>
                    </div>
                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                </div>
            </div>
        </div>
    </div>
</div><?php }
}

Вот код самого файла form.tpl

<div class='row anproductextratabs_forms'>
<div class='col-lg-12'>
<h4>{l s='Edit tab' mod='anproductextratabs'} {$tab->name|escape:'htmlall':'UTF-8'}</h4>

<input type='hidden' name='id_shop' value='{$tab->id_shop|intval}'>
<div class='col-md-3'>
<label>Tab type: {$tab->getTypeFull($tab->type)|escape:'htmlall':'UTF-8'}</label>
</div>
{foreach from=$fields item=field}
<div class='form-group'>

{if $field.type == 'hidden'}
<input type='hidden' name='{$field.name|escape:'htmlall':'UTF-8'}' value='{if isset($fields_value[$field.name])}{$fields_value[$field.name]|escape:'htmlall':'UTF-8'}{/if}'>

{elseif $field.type == 'switch'}
<div class="form-group">
<div class='col-md-3 text-right'>
<label for='{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval}'>{$field.label|escape:'htmlall':'UTF-8'}</label>
</div>
<div class='col-md-3'>
<select class='form-control' name='{$field.name|escape:'htmlall':'UTF-8'}'>
{if isset($field.values)}
{foreach from=$field.values item=value}
<option value='{$value.value|intval}'{if ($fields_value[$field.name] == $value.value) or ($fields_value[$field.name] != $value.value and $field.value == $value.value)} selected{/if}>{$value.label|escape:'htmlall':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
{elseif $field.type == 'textarea'}
{if $field.lang === true}
<div class="translations tabbable" id="{$field.name|escape:'htmlall':'UTF-8'}">
<div class="translationsFields tab-content">
{foreach from=$languages item=language}
<div class="translationsFields-{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval} tab-pane translation-field translation-label-{$language.iso_code|escape:'htmlall':'UTF-8'}">
<div class='col-md-3 text-right'>
<label for='{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval}'>{$field.label|escape:'htmlall':'UTF-8'}</label>
</div>
<div class='col-md-9'>
<textarea class='rte autoload_rte form-control' id='{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval}' name='{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval}'>
{if isset($fields_value[$field.name]) and isset($fields_value[$field.name][$language.id_lang])}
{$fields_value[$field.name][$language.id_lang] nofilter} {* HTML, no escape necessary *}
{/if}
</textarea>
</div>
</div>
{/foreach}
</div>
</div>
{else}

{/if}
{else}
{if $field.lang === true}
<div class="translations tabbable" id="{$field.name|escape:'htmlall':'UTF-8'}">
<div class="translationsFields tab-content">
{foreach from=$languages item=language}
<div class="translationsFields-{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval} tab-pane translation-field translation-label-{$language.iso_code|escape:'htmlall':'UTF-8'}">
<div class='col-md-3 text-right'>
<label for='{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval}'>{$field.label|escape:'htmlall':'UTF-8'}</label>
</div>
<div class='col-md-9'>
<input value='{if isset($fields_value[$field.name]) and isset($fields_value[$field.name][$language.id_lang])}{$fields_value[$field.name][$language.id_lang]|escape:'htmlall':'UTF-8'}{/if}' type='{$field.type|escape:'htmlall':'UTF-8'}' class='form-control' id='{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval}' name='{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval}'>
</div>
</div>
{/foreach}
</div>
</div>

{else}
<div class='col-md-3 text-right'>
<label for='{$field.name|escape:'htmlall':'UTF-8'}'>{$field.label|escape:'htmlall':'UTF-8'}</label>
</div>
<div class='col-md-9'>
<input value='{if isset($fields_value[$field.name])}{$fields_value[$field.name]|escape:'htmlall':'UTF-8'}{/if}' type='{$field.type|escape:'htmlall':'UTF-8'}' class='form-control' id='{$field.name|escape:'htmlall':'UTF-8'}' name='{$field.name|escape:'htmlall':'UTF-8'}'>
</div>
{/if}
{/if}
</div>
{/foreach}
<div class='form-group'>
<div class="translations tabbable" id="apnt_button_submit">
<div class="translationsFields tab-content">
{foreach from=$languages item=language}
<div class="translationsFields-apnt_button_submit_{$language.id_lang|intval} tab-pane translation-field translation-label-{$language.iso_code|escape:'htmlall':'UTF-8'}">
<button type='button' data-id-tab='{$tab->id|intval}' data-language='{$language.id_lang|intval}' name='submit_tabs' class='btn btn-success pull-right submit_tab_{$tab->id|intval}'><i class=''></i> {l s='Save' mod='anproductextratabs'}</button>
</div>
{/foreach}
</div>
</div>
</div>
</div>
</div>
 
Последнее редактирование:
$fields_value[$field.name] ну очевидно тут дело. надо распечатать этот массивчик, возможно что нет перевода для полей.
Перевел модуль. Не помогает. В переводе есть такой пункт Edit ' . ANPTTab::$values[$tab->type] . ' ' .$tab->name), ), 'input' => $this->getEditFormInputs($helper, $tab, $unset), 'submit' => array( 'title' => $this->l('Save
Причем без закрытой скобки. Посмотрел сам файл, там вроде все нормально
 
ну распечайте при помощи dump($fields_value) и dump($field.name) а сам цикл по options закомментируйте.
Там их 12 шт. Подскажи, пожалуйста, на примере хотя бы одного, как сделать:

isset($fields_value[$field.name])}{$fields_value[$field.name]|escape:'htmlall':'UTF-8'}{/if}'>

<option value='{$value.value|intval}'{if ($fields_value[$field.name] == $value.value) or ($fields_value[$field.name] != $value.value and $field.value == $value.value)} selected{/if}>{$value.label|escape:'htmlall':'UTF-8'}</option>

{if isset($fields_value[$field.name]) and isset($fields_value[$field.name][$language.id_lang])}

{$fields_value[$field.name][$language.id_lang] nofilter} {* HTML, no escape necessary *}

<input value='{if isset($fields_value[$field.name]) and isset($fields_value[$field.name][$language.id_lang])}{$fields_value[$field.name][$language.id_lang]|escape:'htmlall':'UTF-8'}{/if}' type='{$field.type|escape:'htmlall':'UTF-8'}' class='form-control' id='{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval}' name='{$field.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|intval}'>

<input value='{if isset($fields_value[$field.name])}{$fields_value[$field.name]|escape:'htmlall':'UTF-8'}{/if}' type='{$field.type|escape:'htmlall':'UTF-8'}' class='form-control' id='{$field.name|escape:'htmlall':'UTF-8'}' name='{$field.name|escape:'htmlall':'UTF-8'}'>
 
{* <option value='{$value.value|intval}'{if ($fields_value[$field.name] == $value.value) or ($fields_value[$field.name] != $value.value and $field.value == $value.value)} selected{/if}>{$value.label|escape:'htmlall':'UTF-8'}</option> *} вот так комментим, а выше пишем дампы
 
{* <option value='{$value.value|intval}'{if ($fields_value[$field.name] == $value.value) or ($fields_value[$field.name] != $value.value and $field.value == $value.value)} selected{/if}>{$value.label|escape:'htmlall':'UTF-8'}</option> *} вот так комментим, а выше пишем дампы
Я не очень в php. Могу скобки поменять с обычных на фигурные и обратно. Если я ее закомментирую, строка перестанет работать. "Выше пишем дампы" это где?
 
Назад
Сверху