Can't access Config Page while in Debug Mode
TheElixZammuto opened this issue · 3 comments
Describe the bug
Trying to open Config Page of the module while in Debug, if at least an order condition is supplied, in Debug Mode gives 500 error. In standard mode, it works fine
Prestashop version(s)
1.7.6.1
To Reproduce
Steps to reproduce the behavior:
- Fresh Install this module
- Enable Debug Mode
- Add a Rule Condition
Expected behavior
Config Page should show
Screenshots
`Symfony\Component\Debug\Exception\ContextErrorException:
Notice: Undefined index: id_codwfeeplus_conditions
at src/Adapter/Routing/LegacyHelperLinkBuilder.php:74
at PrestaShop\PrestaShop\Adapter\Routing\LegacyHelperLinkBuilder->buildActionParameters('update', 'codwfeeplus_conditions', array('id_codwfeeplus_cond' => 1, 'token' => '2cbae91ede41bd2b248ae8990f04118a'))
(src/Adapter/Routing/LegacyHelperLinkBuilder.php:55)
at PrestaShop\PrestaShop\Adapter\Routing\LegacyHelperLinkBuilder->getEditLink('codwfeeplus_conditions', array('id_codwfeeplus_cond' => 1, 'current_index' => 'http://$URL/admin-xxx/index.php?controller=AdminCODwFeePlus', 'token' => '2cbae91ede41bd2b248ae8990f04118a'))
(classes/helper/HelperList.php:865)
at HelperListCore->getEditLink('2cbae91ede41bd2b248ae8990f04118a', 1)
(classes/helper/HelperList.php:513)
at HelperListCore->displayEditLink('2cbae91ede41bd2b248ae8990f04118a', 1, null)
(classes/helper/HelperList.php:265)
at HelperListCore->displayListContent()
(classes/helper/HelperList.php:187)
at HelperListCore->generateList(array(array('id_codwfeeplus_cond' => 1, 'id_codwfeeplus_cond_array' => array('id' => 1, 'condtype' => 0), 'codwfeeplus_desc' => 'Standard', 'codwfeeplus_integration' => array('val' => 'Carrier Fee', 'condtype' => 0), 'codwfeeplus_orderstate' => 2, 'codwfeeplus_feecalc' => '<div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Fee Type</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">Fixed Fee</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Fee</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">6,00 €</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Percent</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value"><span class="label-tooltip codwfeeplus_condlist_tooltip" data-toggle="tooltip" data-html="true" title="" data-original-title="Carrier's fee is not included to the calculation.">0.00 %</span></div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Min Fee</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">0,00 €</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Max Fee</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">0,00 €</div></div>', 'codwfeeplus_conds' => '<div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Cart value is</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">--</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Carriers:</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value"><span class="label-tooltip codwfeeplus_condlist_tooltip" data-toggle="tooltip" data-html="true" title="" data-original-title="TNT">1</span></div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Countries:</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">--</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">States:</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">--</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Zones:</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">--</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Groups:</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">--</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Categories:</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">--</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Brands</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">--</div></div><div class="codwfeeplus_sublist_row"><div class="codwfeeplus_sublist_title">Suppliers:</div><div class="codwfeeplus_sublist_divider"></div><div class="codwfeeplus_sublist_value">--</div></div>', 'codwfeeplus_tax' => array('val' => 'IT Standard Rate (22%)', 'condtype' => 0), 'codwfeeplus_active' => 1, 'position' => 0, 'class' => 'codwfeeplus_condlist_type_fee')), array('id_codwfeeplus_cond' => array('title' => 'ID', 'class' => 'codwfeeplus_list_cell_hidden', 'type' => 'text', 'align' => 'center', 'orderby' => false), 'id_codwfeeplus_cond_array' => array('title' => 'ID', 'callback' => 'callbackCondListTooltip_idandtype', 'type' => 'text', 'align' => 'center', 'orderby' => false, 'class' => 'codwfeeplus_col_id'), 'codwfeeplus_desc' => array('title' => 'Descrizione', 'type' => 'text', 'orderby' => false, 'class' => 'codwfeeplus_col_desc'), 'codwfeeplus_integration' => array('title' => 'Integration', 'type' => 'text', 'callback' => 'callbackCondListTooltip_integration', 'align' => 'center', 'orderby' => false, 'class' => 'codwfeeplus_col_integration'), 'codwfeeplus_tax' => array('title' => 'Product Tax', 'type' => 'text', 'callback' => 'callbackCondListTooltip_tax', 'align' => 'center', 'orderby' => false, 'class' => 'codwfeeplus_nowrap codwfeeplus_col_tax'), 'codwfeeplus_orderstate' => array('title' => 'Order Status', 'type' => 'text', 'callback' => 'callbackCondListTooltip_orderstate', 'align' => 'center', 'orderby' => false, 'class' => 'codwfeeplus_col_orderstate'), 'codwfeeplus_feecalc' => array('title' => 'Fee Calculation', 'type' => 'text', 'align' => 'center', 'orderby' => false, 'html' => true, 'class' => 'codwfeeplus_col_feecalc'), 'codwfeeplus_conds' => array('title' => 'Validation Rules', 'type' => 'text', 'align' => 'center', 'orderby' => false, 'html' => true, 'class' => 'codwfeeplus_col_cond'), 'codwfeeplus_active' => array('title' => 'Active', 'active' => 'status', 'type' => 'bool', 'align' => 'center', 'orderby' => false, 'class' => 'codwfeeplus_col_active'), 'position' => array('title' => 'Posizione', 'position' => 'true', 'align' => 'center', 'orderby' => true)))
(modules/codwfeeplus/controllers/admin/AdminCODwFeePlusController.php:1773)
at AdminCODwFeePlusController->renderConditionsList()
(modules/codwfeeplus/controllers/admin/AdminCODwFeePlusController.php:246)
at AdminCODwFeePlusController->renderView()
(classes/controller/AdminController.php:2114)
at AdminControllerCore->initContent()
(modules/codwfeeplus/controllers/admin/AdminCODwFeePlusController.php:121)
at AdminCODwFeePlusController->initContent()
(classes/controller/Controller.php:292)
at ControllerCore->run()
(classes/Dispatcher.php:515)
at DispatcherCore->dispatch()
(admin-xxx/index.php:97)`
Confirmed... will be fixed with the new release.
Upgrade prestashop to 1.7.6.2 solve this problem ;)
Prestashop 1.7.6.7, if in debug mode, I cannot access the configuration => error