Skip to content

Declaration of Interceptor::execute() must be compatible with Detail::execute():

I’m trying to display a simple page, but still getting this error. Fatal error: Declaration of MacademyBlogControllerPostDetailInterceptor::execute() must be compatible with MacademyBlogControllerPostDetail::execute(): MagentoFrameworkViewResultPage in /var/www/html/generated/code/Macademy/Blog/Controller/Post/Detail/Interceptor.php on line 19 PHP 7.4.30 Magento 2.4.5 <?php declare(strict_types = 1); namespace MacademyBlogControllerPost; use MagentoFrameworkAppActionHttpGetActionInterface;… Read More »Declaration of Interceptor::execute() must be compatible with Detail::execute():

Magento Upgrade from 2.3.6 to 2.4.0

So I am trying to upgrade Magento using composer require magento/product-enterprise-edition=2.4.0 –no-update but facing these issues, as everything is satisfiable but still not updating, please help. Problem 1 – magento/magento-cloud-metapackage 2.3.6 requires magento/product-enterprise-edition >=2.3.6 <2.3.7 -> satisfiable by magento/product-enterprise-edition[2.3.6-p1, 2.3.6]… Read More »Magento Upgrade from 2.3.6 to 2.4.0

Create custom renderer

I need to create a custom attribute renderer using Magento components. So how can I apply Magento .js component and element .html template inside the renderer? Please help.

Frontend JS get access to attributes?

Is it possible to get Magento attribute values on product page when writing custom java script code? I am working on a frontend script where i need access to the product sku to check some logic i am writing.

Syntax Error DeploymentConfig Magento2.4.3

syntax error, unexpected end of file, expecting ‘;’#0 /var/www/html/myproject/vendor/magento/framework/App/DeploymentConfig.php(153): MagentoFrameworkAppDeploymentConfigReader->load() I am getting the above error when i am running any command like cache,upgrade my php version is 7.4 and megento2.4.3