Dadash Ali Posted August 3, 2021 Share Posted August 3, 2021 Hi, I have an module that seems does not match with PS 1.7.7.5. While Debug is turned on i will face this error below: in src\Adapter\Routing\LegacyHelperLinkBuilder.php (line 70) * @throws InvalidArgumentException */ public function getEditLink($entity, array $parameters) { if (!isset($parameters['current_index'])) { throw new InvalidArgumentException('Missing parameter current_index to build legacy link'); } $currentIndex = $parameters['current_index']; $parameters = $this->buildActionParameters('update', $entity, $parameters); As i test with older PS version this matter exist on PS 1.7.6.9 too but it works perfectly on PS 1.7.5.2. Please help me to solve this problem. Regards Link to comment Share on other sites More sharing options...
Dadash Ali Posted August 4, 2021 Author Share Posted August 4, 2021 Hi, It's a virtual code selling module. Here you can see entire message: PrestaShop\PrestaShop\Core\Exception\InvalidArgumentException in src/Adapter/Routing/LegacyHelperLinkBuilder.php (line 70) * @throws InvalidArgumentException */ public function getEditLink($entity, array $parameters) { if (!isset($parameters['current_index'])) { throw new InvalidArgumentException('Missing parameter current_index to build legacy link'); } $currentIndex = $parameters['current_index']; $parameters = $this->buildActionParameters('update', $entity, $parameters); LegacyHelperLinkBuilder->getEditLink('configuration', array('id_keymanager' => '2', 'current_index' => null, 'token' => null))in classes/helper/HelperList.php (line 884) HelperListCore->getEditLink(null, '2')in classes/helper/HelperList.php (line 299) HelperListCore->displayListContent()in classes/helper/HelperList.php (line 198) HelperListCore->generateList(array(array('id_keymanager' => '2', 'id_order_detail' => '0', 'id_order' => null, 'product_name' => 'Product A', 'key_val_decode' => '123456789', 'customer' => null, 'combination' => '0', 'warehouse' => null, 'id_action' => '2')), array('id_keymanager' => array('title' => 'ID', 'align' => 'text-center', 'class' => 'fixed-width-xs'), 'id_order' => array('title' => 'ID order', 'align' => 'text-center', 'class' => 'fixed-width-xs'), 'id_order_detail' => array('title' => 'ID order detail', 'class' => 'hidden'), 'product_name' => array('title' => 'Product', 'class' => 'fixed-width-md'), 'combination' => array('title' => 'Combination', 'class' => 'fixed-width-md', 'callback' => 'printCombinationName'), 'customer' => array('title' => 'Customer', 'class' => 'fixed-width-md', 'float' => true), 'key_val_decode' => array('title' => 'Key', 'float' => true, 'class' => 'kKey'), 'id_action' => array('title' => '', 'align' => 'text-right', 'callback' => 'printActionIcons', 'remove_onclick' => true)))in modules/keymanager/controllers/admin/AdminKeyManagerSearch.php (line 554) AdminKeyManagerSearchController->listKeys()in modules/keymanager/controllers/admin/AdminKeyManagerSearch.php (line 65) AdminKeyManagerSearchController->renderView()in modules/keymanager/controllers/admin/AdminKeyManagerSearch.php (line 79) AdminKeyManagerSearchController->renderList()in classes/controller/AdminController.php (line 2184) AdminControllerCore->initContent()in modules/keymanager/controllers/admin/AdminKeyManagerSearch.php (line 47) AdminKeyManagerSearchController->initContent()in classes/controller/Controller.php (line 306) ControllerCore->run()in classes/Dispatcher.php (line 518) DispatcherCore->dispatch()in adminPS/index.php (line 93) Link to comment Share on other sites More sharing options...
Dadash Ali Posted August 4, 2021 Author Share Posted August 4, 2021 2 hours ago, ndiaga said: Hi, Check what you have in these lines. in modules/keymanager/controllers/admin/AdminKeyManagerSearch.php (line 554) return $helper->generateList($result, $fields_list); AdminKeyManagerSearchController->listKeys()in modules/keymanager/controllers/admin/AdminKeyManagerSearch.php (line 65) 'list' => $this->listKeys(), AdminKeyManagerSearchController->renderView()in modules/keymanager/controllers/admin/AdminKeyManagerSearch.php (line 79) return $this->renderView(); AdminKeyManagerSearchController->renderList()in classes/controller/AdminController.php (line 2184) $this->content .= $this->renderList(); AdminControllerCore->initContent()in modules/keymanager/controllers/admin/AdminKeyManagerSearch.php (line 47) parent::initContent(); Link to comment Share on other sites More sharing options...
Dadash Ali Posted August 4, 2021 Author Share Posted August 4, 2021 (edited) Here you can see entire screenshot of the problem: As here compressed the screenshot so you can check it at the link below: https://imgur.com/4mpDDZh Edited August 4, 2021 by Dadash Ali (see edit history) Link to comment Share on other sites More sharing options...
Dadash Ali Posted August 5, 2021 Author Share Posted August 5, 2021 Any help please? Link to comment Share on other sites More sharing options...
Dadash Ali Posted August 8, 2021 Author Share Posted August 8, 2021 Still need your help guys! Link to comment Share on other sites More sharing options...
Dadash Ali Posted August 19, 2021 Author Share Posted August 19, 2021 Any help please? Link to comment Share on other sites More sharing options...
Dadash Ali Posted August 28, 2021 Author Share Posted August 28, 2021 Any help please? Link to comment Share on other sites More sharing options...
fede.exe Posted June 8, 2022 Share Posted June 8, 2022 Hi @Dadash Ali I encountered the same error. Did you found any solution to share? Thanks so much! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now