Skip to content

Magento 2.4.6 – No such entity with cartId – checkout_cart_index.xml

We face the issue that we sometimes get the error in the exception.log: Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with cartId = #0 /vendor/magento/module-quote/Model/QuoteRepository.php(149): MagentoFrameworkExceptionNoSuchEntityException::singleField(‘cartId’, NULL) #1 /vendor/magento/framework/Interception/Interceptor.php(58): MagentoQuoteModelQuoteRepository->getActive(NULL) #2 /vendor/magento/framework/Interception/Interceptor.php(138): MagentoQuoteModelQuoteRepositoryInterceptor->___callParent(‘getActive’, Array) #3 /vendor/magento/framework/Interception/Interceptor.php(153): MagentoQuoteModelQuoteRepositoryInterceptor->MagentoFrameworkInterception{closure}(NULL) #4 /generated/code/Magento/Quote/Model/QuoteRepository/Interceptor.php(52): MagentoQuoteModelQuoteRepositoryInterceptor->___callPlugins(‘getActive’, Array,… Read More »Magento 2.4.6 – No such entity with cartId – checkout_cart_index.xml

Add index in existing index in magento2

i want to add index in already existing index using Setup/UpgradeSchema $connection = $setup->getConnection(); $tableName = $setup->getTable(‘sales_order_grid’); $indexName = ‘sales_ordergrid_netsuite_id’; $columnName = ‘netsuite_id’; $connection->addIndex( $tableName, $indexName, $columnName, MagentoFrameworkDBAdapterAdapterInterface::INDEX_TYPE_FULLTEXT ); It’s creating new insted of adding to existing index. How can… Read More »Add index in existing index in magento2

Error Exception #0 (Exception): Notice: Object of class MagentoFrameworkPhrase could not be converted after upgrade magento version

Can anyone have faced the below error while opening the product listing page at the storefront? After upgrade magento version 2.4.3 to 2.4.5 I am facing. 1 exception(s): Exception #0 (Exception): Notice: Object of class MagentoFrameworkPhrase could not be converted… Read More »Error Exception #0 (Exception): Notice: Object of class MagentoFrameworkPhrase could not be converted after upgrade magento version

Magento 2 – after Plugin for MagentoCspModelPolicyFetchPolicy not working

Why is my plugin not getting called? app/code/Company/Configurator/etc/module.xml: <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”Company_Configurator” setup_version=”0.1.0″> <sequence> <module name=”Magento_Quote”/> <module name=”Magento_Csp”/> </sequence> </module> </config> app/code/Company/Configurator/etc/di.xml: <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”MagentoCspModelPolicyFetchPolicy”> <plugin name=”company_configurator_after_fetch_policy” type=”CompanyConfiguratorPluginFetchPolicyPlugin” /> </type> </config> app/code/Company/Configurator/Plugin/FetchPolicyPlugin.php: <?php… Read More »Magento 2 – after Plugin for MagentoCspModelPolicyFetchPolicy not working