THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


Bonjour,

Cote back
J'ai l'erreur suivante des que j'edite un template e-mail (pour n'importe quel template)

 1/1 InvalidArgumentException in Form.php line 586: Missing 'form' parameter in form arguments

    in Form.php line 586
    at Form->getInstanceFromParams(array('field' => 'html_message', 'extra_class' => 'fixedfont')) in Form.php line 501
    at Form->getFormFieldView(array('field' => 'html_message', 'extra_class' => 'fixedfont')) in Form.php line 250
    at Form->processFormField(array('field' => 'html_message', 'extra_class' => 'fixedfont'), object(Smarty_Internal_Template)) in Form.php line 331
    at Form->automaticFormFieldRendering(array('field' => 'html_message', 'extra_class' => 'fixedfont'), '', object(Smarty_Internal_Template), 'form-field-attributes-renderer') in Form.php line 378
    at Form->standardFormFieldAttributes(array('field' => 'html_message', 'extra_class' => 'fixedfont'), object(Smarty_Internal_Template)) in 731434c72039d55501545b5946189e606414e32d.file.message-edit.html.php line 820
    at content_55a62796149d78_48959742(object(Smarty_Internal_Template)) in smarty_internal_templatebase.php line 188
    at Smarty_Internal_TemplateBase->fetch('file:message-edit.html') in SmartyParser.php line 365
    at SmartyParser->internalRenderer('file', 'message-edit.html', array('message_id' => '7', 'layout_list' => array('default-html-layout.tpl', 'default-text-layout.tpl', 'email-layout.tpl'), 'html_template_list' => array('account_changed_by_admin.html', 'account_created_by_admin.html', 'new-comment-notification-admin.html', 'order_confirmation.html', 'order_notification.html', 'password.html', 'request-customer-comment.html'), 'text_template_list' => array('LICENSE.txt', 'account_changed_by_admin.txt', 'account_created_by_admin.txt', 'new-comment-notification-admin.txt', 'order_confirmation.txt', 'order_notification.txt', 'password.txt', 'request-customer-comment.txt'), 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'edit_language_id' => '2', 'edit_language_locale' => 'en_US', 'edit_currency_id' => '1', 'current_url' => 'http://www.zzuutt.zz/index_dev.php/admin/configuration/messages/update?message_id=7'), true) in SmartyParser.php line 389
    at SmartyParser->render('message-edit.html', array('message_id' => '7', 'layout_list' => array('default-html-layout.tpl', 'default-text-layout.tpl', 'email-layout.tpl'), 'html_template_list' => array('account_changed_by_admin.html', 'account_created_by_admin.html', 'new-comment-notification-admin.html', 'order_confirmation.html', 'order_notification.html', 'password.html', 'request-customer-comment.html'), 'text_template_list' => array('LICENSE.txt', 'account_changed_by_admin.txt', 'account_created_by_admin.txt', 'new-comment-notification-admin.txt', 'order_confirmation.txt', 'order_notification.txt', 'password.txt', 'request-customer-comment.txt'), 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'edit_language_id' => '2', 'edit_language_locale' => 'en_US', 'edit_currency_id' => '1', 'current_url' => 'http://www.zzuutt.zz/index_dev.php/admin/configuration/messages/update?message_id=7')) in BaseAdminController.php line 373
    at BaseAdminController->renderRaw('message-edit', array('message_id' => '7', 'layout_list' => array('default-html-layout.tpl', 'default-text-layout.tpl', 'email-layout.tpl'), 'html_template_list' => array('account_changed_by_admin.html', 'account_created_by_admin.html', 'new-comment-notification-admin.html', 'order_confirmation.html', 'order_notification.html', 'password.html', 'request-customer-comment.html'), 'text_template_list' => array('LICENSE.txt', 'account_changed_by_admin.txt', 'account_created_by_admin.txt', 'new-comment-notification-admin.txt', 'order_confirmation.txt', 'order_notification.txt', 'password.txt', 'request-customer-comment.txt'))) in BaseAdminController.php line 320
    at BaseAdminController->render('message-edit', array('message_id' => '7', 'layout_list' => array('default-html-layout.tpl', 'default-text-layout.tpl', 'email-layout.tpl'), 'html_template_list' => array('account_changed_by_admin.html', 'account_created_by_admin.html', 'new-comment-notification-admin.html', 'order_confirmation.html', 'order_notification.html', 'password.html', 'request-customer-comment.html'), 'text_template_list' => array('LICENSE.txt', 'account_changed_by_admin.txt', 'account_created_by_admin.txt', 'new-comment-notification-admin.txt', 'order_confirmation.txt', 'order_notification.txt', 'password.txt', 'request-customer-comment.txt'))) in MessageController.php line 209
    at MessageController->renderEditionTemplate() in AbstractCrudController.php line 381
    at AbstractCrudController->updateAction()
    at call_user_func_array(array(object(MessageController), 'updateAction'), array()) in HttpKernel.php line 117
    at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 61
    at HttpKernel->handle(object(Request), '1', true) in TheliaHttpKernel.php line 77
    at TheliaHttpKernel->handle(object(Request), '1', true) in ParamInitMiddleware.php line 86
    at ParamInitMiddleware->handle(object(Request), '1', true) in SessionMiddleware.php line 80
    at SessionMiddleware->handle(object(Request), '1', true) in StackedHttpKernel.php line 23
    at StackedHttpKernel->handle(object(Request), '1', true) in Kernel.php line 188
    at Kernel->handle(object(Request)) in index_dev.php line 38

Offline


dans le template par defaut livre dans la version 2.1.5 il manque des form=$form

fichier :  backOffice\default\message-edit.html

...
ligne 96...97
 {custom_render_form_field form=$form field='html_message'}
    <textarea {$disable_html} {form_field_attributes form=$form field='html_message' extra_class="fixedfont"}>{$value nofilter}</textarea>
.....
ligne 136...137
{custom_render_form_field form=$form field='text_message'}
    <textarea {$disable_html} {form_field_attributes form=$form field='text_message' extra_class="fixedfont"}>{$value nofilter}</textarea>