Skip to content

magento2.4

Auto Added by WPeMatico

Incompatible argument type: Required type: MagentoFrameworkEntityManagerMetadataPool. Actual type: string; when trying to override resource model

I am trying to override the Resource model for the cms page file in the sitemap module my code is <?php namespace MyModuleSiteMapModelResourceModelCms; use MagentoCmsApiDataPageInterface; use MagentoCmsApiGetUtilityPageIdentifiersInterface; use MagentoCmsModelPage as CmsPage; use MagentoFrameworkAppObjectManager; use MagentoFrameworkDBSelect; use MagentoFrameworkEntityManagerEntityManager; use MagentoFrameworkEntityManagerMetadataPool; use… Read More »Incompatible argument type: Required type: MagentoFrameworkEntityManagerMetadataPool. Actual type: string; when trying to override resource model

Product Image not showing on listing page frontend after code migration Magento 2.4.3

I moved my project to a different directory as the memory is low in the disk, everything is working fine except the product listing page where the images are missing. Showing default image. Wrong hash – Listing page https://website.com/media/catalog/product/cache/4c6fd00ae61ef17c73c9aecb88f2d715**/2/_/2_207_0269.jpg Right… Read More »Product Image not showing on listing page frontend after code migration Magento 2.4.3

Why is my post controller returning a 404?

I’ve created and enabled a module at app/code/Post/Test: app/code/Post/Test/registration.php: <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, ‘Post_Test’, __DIR__ ); app/code/Post/Test/etc/module.xml: <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”Post_Test” setup_version=”1.0.0″ /> </config> app/code/Post/Test/etc/frontend/routes.xml: <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:App/etc/routes.xsd”> <router id=”standard”> <route id=”post_test” frontName=”posttest”> <module name=”Post_Test” /> </route> </router>… Read More »Why is my post controller returning a 404?