Skip to content

magento man

Argument 5 passed to VendorModuleModelResourceModelPriceResultCollectionInterceptor::__construct()

I have created a custom module and it’s working fine,if I only run php bin/magento setup:upgrade command. However, when I attempt to run php bin/magento s:d:c it raises an exception. Type Error occurred when creating object: VendorModuleNameModelResourceModelPriceResultCollectionInterceptor, Argument 5 passed… Read More »Argument 5 passed to VendorModuleModelResourceModelPriceResultCollectionInterceptor::__construct()

How can I catch more detailed information about a reindexing error or when reindexing is stuck?

The size of the catalog is about 70k products. When reindexing sometimes it turns out Could not acquire lock for index:catalog_category_product and Could not acquire lock for index:catalog_product_category or only stuck in INSERT INTO catalog_category_product_index_store2_tmp (‘category_id’, ‘product_id’, ‘position’, ‘i.. (I… Read More »How can I catch more detailed information about a reindexing error or when reindexing is stuck?

Hide Menu If Customer is not Logged In. And Show when Login

I want to hide the menu when user is not logged in. And Show when It Logs in. I did the following code. public function __construct( MagentoCustomerModelSessionFactory $customerSession, LoggerInterface $logger, MagentoFrameworkAppResponseHttp $redirect, MagentoFrameworkAppHttpContext $httpContext ) { $this->customerSession = $customerSession; $this->logger… Read More »Hide Menu If Customer is not Logged In. And Show when Login

Strange Magento 2.4.6-p2 PageBuilder problem while installing “Missing required argument $characterSet of GtDomDocument”

Can somebody help? I have installed magento 2.4.6-p2 and wanted to install Pagebuilder. So I downloaded “magento2-page-builder-develop”, but i get an error while compiling: Unable to apply data patch MagentoPageBuilderSetupPatchDataUpgradePageBuilderStripStyles for module Magento_PageBuilder. Original exception message: Missing required argument $characterSet… Read More »Strange Magento 2.4.6-p2 PageBuilder problem while installing “Missing required argument $characterSet of GtDomDocument”