Hello all. I am having an issue with a module that used to work under 1.6.1. When I install the module, it gives a 500 error. The details of the error is below. It seems to cascade through quite a bit. Not sure if it is fixable or not. Any advice would be appreciated. Developper does not want to do anything because it is TB. What the module does is help manage tags and unify them across languages.
Here is the initial error that cause the 500 error call - if you go back, though, the module is installed and seems to work but it no longer imports the existing tags in the main language.
Decoded exception
Too few arguments to function Tagm::insertTagM(), 0 passed in /home/zbookstore/public_html/modules/patagsmanagement/classes/Tagm.php on line 384 and exactly 1 expected
in filemodules/patagsmanagement/classes/Tagm.phpat line476
If you open up all the stack traces, this is what we get:
1634: }
1635: }
1636: //retrocompatibility
1637: if (Tools::getValue('controller') != '') {
1638: $_POST['tab'] = Tools::safeOutput(Tools::getValue('controller'));
1639: }
1640: $echo = '';
1641: if ($key != 'update' && $key != 'updateAll' && $key != 'checkAndUpdate' && $key != 'delete') {
1642: // We check if method of module exists
1643: if (!method_exists($module, $method)) {
1644: throw new PrestaShopException(sprintf('Method %s of module cannot be found', $method));
1645: }
1646: if ($key == 'uninstall' && !Module::getPermissionStatic($module->id, 'uninstall')) {
1647: $this->errors[] = Tools::displayError('You do not have permission to uninstall this module.');
1648: }
1649: if (count($this->errors)) {
1650: continue;
1651: }
1652: // Get the return value of current method
1653: $echo = $module->{$method}();
1654: // After a successful install of a single module that has a configuration method, to the configuration page
1655: if ($key == 'install' && $echo === true && strpos(Tools::getValue('install'), '|') === false && method_exists($module, 'getContent')) {
1656: Tools::redirectAdmin(static::$currentIndex.'&token='.$this->token.'&configure='.$module->name.'&conf=12');
1657: }
1658: }
1659: // If the method called is "configure" (getContent method), we show the html code of configure page
1660: if ($key == 'configure' && Module::isInstalled($module->name)) {
1661: $this->bootstrap = (isset($module->bootstrap) && $module->bootstrap);
1662: if (isset($module->multishop_context)) {
1663: $this->multishop_context = $module->multishop_context;
Question
movieseals
Hello all. I am having an issue with a module that used to work under 1.6.1. When I install the module, it gives a 500 error. The details of the error is below. It seems to cascade through quite a bit. Not sure if it is fixable or not. Any advice would be appreciated. Developper does not want to do anything because it is TB. What the module does is help manage tags and unify them across languages.
Here is the initial error that cause the 500 error call - if you go back, though, the module is installed and seems to work but it no longer imports the existing tags in the main language.
Decoded exception
Too few arguments to function Tagm::insertTagM(), 0 passed in /home/zbookstore/public_html/modules/patagsmanagement/classes/Tagm.php on line 384 and exactly 1 expected
Source file: modules/patagsmanagement/classes/Tagm.php
Stack trace
If it can be fixed by myself, I am open to any and all suggestions. If it is a more complicated matter, I am willing to pay someone to help me fix it.
2 answers to this question
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