Jump to content

getting error when edit Brands & Suppliers in admin area


Alex

Recommended Posts

When I try to edit Brands & Suppliers in Admin > Catealog > Brands & Suppliers

It gives the below error.


Type error: Argument 4 passed to PrestaShop\PrestaShop\Core\Domain\Manufacturer\QueryResult\EditableManufacturer::__construct() must be of the type array, null given, called in /var/www/vhosts/mydomain/httpdocs/src/Adapter/Manufacturer/QueryHandler/GetManufacturerForEditingHandler.php on line 78


in src/Core/Domain/Manufacturer/QueryResult/EditableManufacturer.php (line 98)
* @param array $localizedMetaDescriptions     * @param array $localizedMetaKeywords     * @param array|null $logoImage     * @param array $associatedShops     */    public function __construct(        ManufacturerId $manufacturerId,        $name,        $enabled,        array $localizedShortDescriptions,        array $localizedDescriptions,

EditableManufacturer->__construct(object(ManufacturerId), 'Bershka', '1', null, null, null, null, null, null, array('1'))
in src/Adapter/Manufacturer/QueryHandler/GetManufacturerForEditingHandler.php (line 78)

GetManufacturerForEditingHandler->handle(object(GetManufacturerForEditing))
in vendor/league/tactician/src/Handler/CommandHandlerMiddleware.php (line 71)

CommandHandlerMiddleware->execute(object(GetManufacturerForEditing), object(Closure))
in vendor/league/tactician/src/CommandBus.php (line 62)

CommandBus->League\Tactician\{closure}(object(GetManufacturerForEditing))
in vendor/league/tactician/src/CommandBus.php (line 42)

CommandBus->handle(object(GetManufacturerForEditing))
in src/Core/CommandBus/TacticianCommandBusAdapter.php (line 54)

TacticianCommandBusAdapter->handle(object(GetManufacturerForEditing))
in src/Core/Form/IdentifiableObject/DataProvider/ManufacturerFormDataProvider.php (line 74)

ManufacturerFormDataProvider->getData(6)
in src/Core/Form/IdentifiableObject/Builder/FormBuilder.php (line 100)

FormBuilder->getFormFor(6)
in src/PrestaShopBundle/Controller/Admin/Sell/Catalog/ManufacturerController.php (line 220)
ManufacturerController->editAction(object(Request), '6')

in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)

Link to comment
Share on other sites

  • 9 months later...

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...