I am getting the following error in PHP version 8.2 on running Deprecated Functionality: Implicit conversion from float 114.90625 to int loses precision in /var/www/html/magento2/vendor/magento/framework/Image/Adapter/Gd2.php on line 422 $newImage = imagecreatetruecolor($dims['frame']['width'], $dims['frame']['height']); Here’s a modification to ensure that the width and height parameters are cast to integers before being passed […]
Magento
We are using Facebook Meta Extension in github , We are getting below error in the Backend Configuration Here is LogOrganisation.php <?php /** * Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved */ /** * Helper class for generating and organizing log files. */ namespace FacebookBusinessExtensionHelper; // protected […]
I am in a situation where table catalogrule_product_price_replica has grown too big (about 500M rows, due to the bug in some versions on Magento). Trying to delete redundant lines (1000 at times, my script has deleted about 10M rows during the last 8 hours) is like carving a rock with […]
I’ve been exploring the configuration options for the Date column in Magento UI component grids. Specifically, I’m trying to understand the purpose of the <timezone> element in the XML configuration. According to the XSD definition vendor/magento/module-ui/view/base/ui_component/etc/definition/column.xsd, <timezone> is defined as a boolean: <xs:element name="timezone" type="xs:boolean"> <xs:annotation> <xs:documentation> For the Date […]
I want my website pwa to show custom product attributes. my product attribute is dropdown. Do you any have idea how to implement it?
I want my website pwa to show custom product attributes. my product attribute is dropdown. Do you any have idea how to implement it?
We have not done changes in the files. It’s strange that When we click on System > Import , it give below error. It was working fine yesterday. Exception #0 (BadMethodCallException): Missing required argument $data of FroogalCatalogModelImport. #1 MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34] #2 MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59] #3 MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create() called […]
In Magento 2.4.1 I developed below code to compress the PDF and it was working fine Recently I updated Magento to 2.4.6-p3 and now compression stoped working. app/code/Vendor/CompressPDF/etc.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="MagentoSalesModelOrderPdfInvoice" type="VendorCompressPDFModelSalesOrderPdfInvoice" /> </config> app/code/Vendor/CompressPDF/Model/Sales/Order/Pdf <?php namespace VendorCompressPDFModelSalesOrderPdf; class Invoice extends MagentoSalesModelOrderPdfInvoice { /** * Set […]
<?php namespace AlexAskQuestionControllerSubmit; use AlexAskQuestionModelAskQuestionFactory; use MagentoFrameworkAppActionAction; use MagentoFrameworkAppActionContext; use MagentoFrameworkControllerResultJson; use MagentoFrameworkControllerResultFactory; use MagentoFrameworkDataFormFormKeyValidator; use MagentoFrameworkExceptionLocalizedException; class Index extends Action { public const STATUS_ERROR = 'Error'; public const STATUS_SUCCESS = 'Success'; /** * @var Validator */ private Validator $formKeyValidator; /** * @var AskQuestionFactory */ private $askQuestionFactory; /** * Index […]