Skip to content

magento man

Php unit test throws assertInternalType is undefined in magento 2.4.5

I upgraded the website from magento 2.3.6-p1 to magento 2.4.5-p1 , got the following error, when running PHP unite test for my custom module. Error: Call to undefined method ABCProductTestUnitViewModelProductGridVariationsFinderTest::assertInternalType() Error: Call to undefined method ABCProductTestUnitPluginSearchAddSearchTermToCategoryPageTest::assertArraySubset() Please provide the 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

Override MagentoCatalogModelLayer

I want to override the class MagentoCatalogModelLayer In my /etc/di.xml <preference for=”MagentoCatalogModelLayer” type=”CustomModuleModelLayer” /> Then I did the class <?php namespace CustomModuleModel; class Layer extends MagentoCatalogModelLayer { public function getProductCollection() { //Logic to modify the $collection data return $collection; }… Read More »Override MagentoCatalogModelLayer

Unable to add tracking #

Is there anyone available for the help please. I was trying to add tracking # into the order but I’m giving an error. Complete process is here: https://drive.google.com/file/d/18XS213g0otdMZoJPDxQe5s_r9nOg2wv3/view?usp=sharing Erros Message: TypeError: MagentoFrameworkFilesystemDirectoryPathValidator::validate(): Argument #1 ($directoryPath) must be of type string,… Read More »Unable to add tracking #