Jump to content

PS 8.2 Error in module Products as Fake Combinations


Amadek

Recommended Posts

I want to use module Products as Fake Combinations - Link products together but i get error.

After installing the module, I try to go to edit products and get this error:

Warning: Undefined array key "selected"

PrestaShop\PrestaShop\Core\Exception\ CoreException
in classes/Hook.php (line 431)

                    }
                }
            } catch (Exception $e) {
                $environment = ServiceLocator::get('\\PrestaShop\\PrestaShop\\Adapter\\Environment');
                if ($environment->isDebug()) {
                    throw new CoreException($e->getMessage(), $e->getCode(), $e);
                }
            }
            return '';
        }

HookCore::callHookOn(object(ProductAsCombinations), 'displayAdminProductsExtra', array('_ps_version' => '8.2.0', 'request' => object(Request), 'route' => 'admin_products_edit', 'id_product' => 4, 'cookie' => object(Cookie), 'cart' => null, 'altern' => 1)) in classes/Hook.php (line 983)

                    // we will pass the response from the previous one as parameters.
                    if (0 !== $key && true === $chain) {
                        $hook_args = $output;
                    }
                    $display = Hook::callHookOn($moduleInstance, $registeredHookName, $hook_args);
                    // Case 1 - each module response to different array key. We don't care about the response.
                    if ($array_return) {
                        $output[$moduleInstance->name] = $display;
                    // Case 2 - chaining. Here, each module MUST return an array that will the next module receive as parameters.

HookCore::exec('displayAdminProductsExtra', array('_ps_version' => '8.2.0', 'request' => object(Request), 'route' => 'admin_products_edit', 'id_product' => 4, 'cookie' => object(Cookie), 'cart' => null, 'altern' => 1), 106, true) in src/Adapter/LegacyHookSubscriber.php (line 127)

            $content = Hook::exec(
                $hookName,
                $event->getHookParameters(),
                $moduleId,
                ($event instanceof RenderingHookEvent)
            );
            if (
                $event instanceof RenderingHookEvent
                && 0 !== $moduleId

What could be the cause of the error? Have you encountered such an error with this module?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...