Alex Posted October 15, 2020 Share Posted October 15, 2020 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 More sharing options...
exlv Posted July 25, 2021 Share Posted July 25, 2021 src/Adapter/Manufacturer/QueryHandler/GetManufacturerForEditingHandler.php on line 71 [Symfony\Component\Debug\Exception\FatalThrowableError 0] Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 25, 2021 Share Posted July 25, 2021 Hello, What is your php version and PrestaShop version. It will better you can check your PrestaShop version and php compatibility. Is their any modification done in your overwrite. Clear the cache and recompile , hope it will solve Thank you 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