Skip to content

magento2.3

Auto Added by WPeMatico

Segmentation error when getting product from repository

I have a test script which should update products: use MagentoFrameworkAppBootstrap; require __DIR__ . ‘/app/bootstrap.php’; error_reporting(E_ERROR | E_PARSE); $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap->getObjectManager(); $state = $objectManager->get(‘MagentoFrameworkAppState’); $state->setAreaCode(‘adminhtml’); $productRepository = $objectManager->get(‘MagentoCatalogModelProductRepository’); $file = __DIR__.’/import.xlsx’; $inputFileType = PhpOfficePhpSpreadsheetIOFactory::identify($file); /** Create… Read More »Segmentation error when getting product from repository

Below code for PLP page Sort-By Price Low-High & High-Low working properly in M2.3.6 EE but not in M2.4.5 EE , any solution?

Lokesh/CatalogExtended/etc/di.xml <?xml version=”1.0″ ?> <type name=”MagentoCatalogBlockProductProductListToolbar”> <plugin disabled=”false” name=”Lokesh_CatalogExtended_Block_Toolbar” sortOrder=”10″ type=”LokeshCatalogExtendedPluginCatalogBlockToolbar”/> </type> <type name=”MagentoCatalogModelConfig”> <plugin disabled=”false” name=”Lokesh_CatalogExtended_Model_Config” sortOrder=”11″ type=”LokeshCatalogExtendedPluginCatalogModelConfig”/> </type> </config> Lokesh/CatalogExtended/Plugin/Catalog/Block/Toolbar.php namespace LokeshCatalogExtendedPluginCatalogBlock; class Toolbar { public function aroundSetCollection( MagentoCatalogBlockProductProductListToolbar $subject, Closure $proceed, $collection ) { $currentOrder = $subject->getCurrentOrder();… Read More »Below code for PLP page Sort-By Price Low-High & High-Low working properly in M2.3.6 EE but not in M2.4.5 EE , any solution?

Getting error while running php bin/magento setup:di:compile

I am getting the below error while running the below command. php bin/magento setup:di:compile Error:- Class “MagentoFrameworkHTTPLaminasClient” does not exist Class WebkulMarketplaceControllerAccountDashboardTunnelInterceptor generation error: The requested class did not generate properly, because the ‘ge nerated’ directory permission is read-only. If… Read More »Getting error while running php bin/magento setup:di:compile