thelia-modules / Payzen

A payment module for PayZen which offers a wide range of means of payment (bank cards, e-wallets, payment by e-mail, payment by SMS…). You can also use loyalty and gift cards. More info on payzen.eu
http://payzen.eu/
5 stars 17 forks source link

mise a jour module 1.2 ---> 1.3 #19

Closed gimlyGVD closed 3 years ago

gimlyGVD commented 6 years ago

sous Thelia 2.3.4 apres la mise a jour

Le message d'erreur suivant a été trouvé : Field name 'multi_minimum_amount' not found in form payzen_configuration_form

roadster31 commented 6 years ago

Je n'arrive pas à reproduire le problème. As-tu vidé le cache ?

gimlyGVD commented 6 years ago

oui il est installé ---> mais il était désactivé

quand je le reactive ca marche

quand je le redésactive ---> ca rebug

InvalidArgumentException in Form.php line 663: Field name 'multi_minimum_amount' not found in form payzen_configuration_form in Form.php line 663 at Form->retrieveField('multi_minimum_amount', object(FormView), 'payzen_configuration_form') in Form.php line 558 at Form->getFormFieldView(array('form' => object(ConfigurationForm), 'field' => 'multi_minimum_amount')) in Form.php line 284 at Form->processFormField(array('form' => object(ConfigurationForm), 'field' => 'multi_minimum_amount'), object(Smarty_Internal_Template)) in Form.php line 339 at Form->renderFormField(array('form' => object(ConfigurationForm), 'field' => 'multi_minimum_amount'), null, object(Smarty_Internal_Template), true) in smarty_internal_templatebase.php(157) : eval()'d code line 40 at content_5a96bd5e2a7023_96774354(object(Smarty_Internal_Template)) in smarty_internal_templatebase.php line 188 at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, false, true) in smarty_internal_template.php line 303 at Smarty_Internal_Template->getSubTemplate('payzen/form-field-template.html', null, null, '0', null, array('field_name' => 'multi_minimum_amount'), '0') in smarty_internal_templatebase.php(157) : eval()'d code line 135 at content_5a96bd5e19ae29_89523375(object(Smarty_Internal_Template)) in smarty_internal_templatebase.php line 188 at Smarty_Internal_TemplateBase->fetch('string:

{intl d='payzen.ai' l="Payzen Configuration"}
{form name="payzen.configuration.form"} <form action="{url path="/admin/module/payzen/configure"}" method="post"> {form_hidden_fields form=$form} {include file = "includes/inner-form-toolbar.html" hide_flags = true page_url = "{url path='/admin/module/Payzen'}" close_url = "{url path='/admin/modules'}" } {if $form_error}
{$form_error_message}
{/if}

{intl d='payzen.ai' l="Access to Payzen Platform"}

{include file="payzen/form-field-template.html" field_name="site_id"} {include file="payzen/form-field-template.html" field_name="test_certificate"} {include file="payzen/form-field-template.html" field_name="production_certificate"} {include file="payzen/form-field-template.html" field_name="platform_url"} {include file="payzen/form-field-template.html" field_name="mode"} {include file="payzen/form-field-template.html" field_name="allowed_ip_list"}
{url path='/payzen/callback'}
{intl d='payzen.ai' l="Copy this URL in the 'URL to notify in TEST mode' and 'URL to notify in PRODUCTION mode' (which must not be mistaken with the 'Return URL of the shop') in 'Notification rules' fields in the PayZen back-office"}

{intl d='payzen.ai' l="Payment configuration"}

{include file="payzen/form-field-template.html" field_name="banking_delay"} {include file="payzen/form-field-template.html" field_name="validation_mode"} {include file="payzen/form-field-template.html" field_name="allowed_cards"}

{intl d='payzen.ai' l="One time payment"}

{include file="payzen/form-field-template.html" field_name="minimum_amount"} {include file="payzen/form-field-template.html" field_name="maximum_amount"} {include file="payzen/form-field-template.html" field_name="three_ds_minimum_order_amount"}

{intl d='payzen.ai' l="Multiple times payment"}

{loop name="multi-plugin-enabled" type="module" code="PayzenMulti" active="1"} {/loop} {elseloop rel="multi-plugin-enabled"}
{intl l="Install and activate Payzen multiple times payment module to get configuration options." d='payzen.ai'}
{/elseloop} {include file="payzen/form-field-template.html" field_name="multi_minimum_amount"} {include file="payzen/form-field-template.html" field_name="multi_maximum_amount"} {include file="payzen/form-field-template.html" field_name="multi_first_payment"} {include file="payzen/form-field-template.html" field_name="multi_number_of_payments"} {include file="payzen/form-field-template.html" field_name="multi_payments_interval"}

{intl d='payzen.ai' l="One off SEPA payment (SDD)"}

{loop name="oneoffsepa-plugin-enabled" type="module" code="PayzenOneOffSEPA" active="1"}

{intl d="payzen.ai" l="No configuration needed"}.

{/loop} {elseloop rel="oneoffsepa-plugin-enabled"}
{intl l="Install and activate 'Payzen One Off SEPA' module to get configuration options." d='payzen.ai'}
{/elseloop}

{intl d='payzen.ai' l="Payment page"}

{include file="payzen/form-field-template.html" field_name="default_language"} {include file="payzen/form-field-template.html" field_name="available_languages"} {include file="payzen/form-field-template.html" field_name="redirect_enabled"} {include file="payzen/form-field-template.html" field_name="success_timeout"} {include file="payzen/form-field-template.html" field_name="success_message"} {include file="payzen/form-field-template.html" field_name="failure_timeout"} {include file="payzen/form-field-template.html" field_name="failure_message"}
{/form}
') in Module.php line 87 at Module->theliaModule(array('location' => 'module_configuration', 'module' => 'Payzen', 'countvar' => null), object(Smarty_Internal_Template)) in Hook.php line 141 at Hook->moduleIncludeCompat(array('name' => 'module.configuration', 'location' => 'module_configuration', 'modulecode' => 'Payzen'), object(Smarty_Internal_Template)) in Hook.php line 118 at Hook->processHookFunction(array('name' => 'module.configuration', 'location' => 'module_configuration', 'modulecode' => 'Payzen'), object(Smarty_Internal_Template)) in 94ae5a5a396f4f44c26deea669ed4e3a825213a1.file.module-configure.html.php line 255 at content_5a68b8aa9a8c08_64169103(object(Smarty_Internal_Template)) in smarty_internal_templatebase.php line 188 at Smarty_Internal_TemplateBase->fetch('file:module-configure.html') in SmartyParser.php line 381 at SmartyParser->internalRenderer('file', 'module-configure.html', array('module_code' => 'Payzen', 'edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1', 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'current_url' => 'https://test.parquets-et-lambris-de-vallereuil.com/index_dev.php/admin/module/Payzen', 'app' => object(stdClass)), true) in SmartyParser.php line 424 at SmartyParser->render('module-configure.html', array('module_code' => 'Payzen', 'edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1')) in BaseAdminController.php line 390 at BaseAdminController->renderRaw('module-configure', array('module_code' => 'Payzen')) in BaseAdminController.php line 346 at BaseAdminController->render('module-configure', array('module_code' => 'Payzen')) in ModuleController.php line 240 at ModuleController->configureAction('Payzen') at call_user_func_array(array(object(ModuleController), 'configureAction'), array('Payzen')) in HttpKernel.php line 139 at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 62 at HttpKernel->handle(object(Request), '1', true) in TheliaHttpKernel.php line 76 at TheliaHttpKernel->handle(object(Request), '1', true) in BackOfficePathMiddleware.php line 106 at BackOfficePathMiddleware->handle(object(Request), '1', true) in ParamInitMiddleware.php line 87 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 185 at Kernel->handle(object(Request)) in index_dev.php line 38

gimlyGVD commented 6 years ago

et quand je rentre dans le module, j'ai la page de configuration en double, l'une après l'autre

roadster31 commented 6 years ago

et quand je rentre dans le module, j'ai la page de configuration en double, l'une après l'autre

Ha ok, j'ai compris. Il faut supprimer le repertoire AdminIncludes du module, ça devrait résoudre le problème.

roadster31 commented 6 years ago

Peux-tu essayer la nouvelle version 1.3.1 du module ?

gimlyGVD commented 6 years ago

À 1er vu c'est bon, ce n'est pas un site de production, mais tout a l'air de fonctionner