Skip to content

helper

Auto Added by WPeMatico

I am trying to send email using helper class but show the error

TypeError: MagentoEmailModelTemplate::setVars(): Argument #1 ($vars) must be of type array, null given <?php namespace CustomScheduleContentNotifierHelper; use MagentoFrameworkAppHelperContext; use MagentoFrameworkTranslateInlineStateInterface; use MagentoFrameworkEscaper; use MagentoFrameworkMailTemplateTransportBuilder; class Email extends MagentoFrameworkAppHelperAbstractHelper { protected $inlineTranslation; protected $escaper; protected $transportBuilder; protected $logger; public function __construct( Context… Read More »I am trying to send email using helper class but show the error

How to instantiate an helper class from my custom module in a test program in the directory at the same level as the root of Magento?

With the code below, I’m trying to instantiate an helper class from my custom module. // Sanitize the $_GET[] value // Create an object of the order loaded with the $order_id passed as query string. $orderId = htmlspecialchars($_GET[“order_id”]); $order =… Read More »How to instantiate an helper class from my custom module in a test program in the directory at the same level as the root of Magento?

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