As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [php-7.2]

Marks questions related to Magento on php 7.2

Filter by
Sorted by
Tagged with
1 vote
1 answer
417 views

Read a category attribute from title.phtml in Magento 2.3

I have found a lot of examples on how to create an extra attribute for the categories. I want to create a text field for adding a different H1 - instead of using the category name as the headings, on ...
Aknot's user avatar
  • 292
0 votes
1 answer
344 views

Getting all the listing page blank in Magento 2.3

I installed Magento 2.3 on my local system, but ongoing to the listing page it's showing blank. I have checked the error log, exception log, system log, debug log but nothing are there. I tried this ...
AjayKr's user avatar
  • 135
0 votes
1 answer
627 views

Magento 2 - php 7.2 - The each() function is deprecated in AbstractCollection.php

I am getting below error in Magento 2.1 using PHP 7.2. main.CRITICAL: Exception: Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls in /...
user1799722's user avatar
0 votes
1 answer
2k views

Cant install Klarna on magento 2.3.2

I tried to install Klarna in my Magento 2.3.2 website using composer trollweb. I kept getting errors as the klarna checkout was not working. In the end, I used mage2pro klarna to set it up Is there ...
LoudHouse Family's user avatar
1 vote
1 answer
1k views

Exception #0 (Exception): Warning: count(): Parameter must be an array or an object that implements Countable

On Magento 2.3.2 I switched from php 7.1 to php 7.2. When I did I started getting this error- Exception #0 (Exception): Warning: count(): Parameter must be an array or an object that implements ...
tjjen's user avatar
  • 873
0 votes
1 answer
2k views

How to fix "Unable to unserialize value. Error: Syntax error" Magento 2.3.2

Hello, Guys! I get this error, please help me solve it... String value: a:1:{s:14:"logotype_image";s:57:"/frontend/Alias/mysite/web/images/logo_grey.svg";} And json_last_error = 4 The string ...
David Young's user avatar
2 votes
2 answers
527 views

Call Custom function after binding customer name in magento2?

I have updated the customer name using ko. After binding customer name, I want to add one custom class. <li class="customer-welcome"> <span class="customer-name" role="...
Mahi M's user avatar
  • 2,530
3 votes
1 answer
212 views

PHP 7.X vulnerability and Magento 1.7

As many of you know there are multiple vulnerabilities that pertain to PHP 7.1, 7.2, and 7.3. I currently run PHP 5.6 with Magento 1.7. I am pretty confident that 1.7 does NOT support any of the ...
Icon's user avatar
  • 2,439
0 votes
1 answer
364 views

Magento 2: How to differentiate the app and web based orders?

How to identify whether the order is placed from an app or website? I want to add one custom column in admin sales order grid. And the column displays the values for order source(app or website order)...
Mahi M's user avatar
  • 2,530
0 votes
1 answer
872 views

Magento2: Get Quote details in view page

I can't get the current quote in the Product view page. I have 3 items in my cart. I have used both files. use Magento\Checkout\Model\Session; use Magento\Checkout\Model\Cart; $quote = $this->...
Mahi M's user avatar
  • 2,530
0 votes
1 answer
47 views

Magento2: How to display most view product collection in home page?

I need to display product collection in home page in magento2. Thanks.
Mahi M's user avatar
  • 2,530
0 votes
1 answer
305 views

Magent2.3.2 Installation process,PHP extension issue in Ubuntu18.04

In magento2.3.2 installation issue : 'PHP Extensions Check 3 missing PHP extensions' PHP Extension bcmath. PHP Extension intl. PHP Extension soap. I installed PHP in ubuntu18.04 through this ...
manoji's user avatar
  • 175
0 votes
1 answer
1k views

Undefined property: DOMDocument::$documentElement in Magento 2

Notice: Undefined property: DOMDocument::$documentElement in /var/www/html/projectnenny/vendor/magento/framework/Config/Dom.php on line 148 Fatal error: Uncaught TypeError: Argument 1 passed ...
Mahendar Singh's user avatar
1 vote
0 answers
296 views

Magento 2.3.2 Unsupported operand types indexer

I'm using a custom module in magento 2.3.2 In one of my php files I have this code: $queryResult = $client->search($requestQuery); $offset = $queryResult['hits']['total']; if (!$offset) { ...
G. G.'s user avatar
  • 1,044
0 votes
1 answer
693 views

Magento2: How to display out of stock product in wishlist

How to display out of stock products only in the wishlist. How to do that. Thanks.
Mahi M's user avatar
  • 2,530
4 votes
1 answer
3k views

Magento 2.3.1 - Issue with catalog search when using php7.2-fpm

When we search any string from the search text box, We have encountered a 500 server error into the search result page in our live web site or search page getting blank. When we check in logs or ...
Emipro Technologies Pvt. Ltd.'s user avatar
0 votes
1 answer
518 views

Magento 2.3.1 unserialize error

In magento 2.3.1 I have this code: public function encrypt($params) { return base64_encode($this->encryptor->encrypt(serialize($params))); } /** * Decrypt tracking key ...
G. G.'s user avatar
  • 1,044
1 vote
1 answer
134 views

Error in PWA Setup in Magento 2.3.0

We have face error while setup PWA in Magento 2.3.0 with YARN. See screenshot for more detail Magento Version 2.3.0 PHP version 7.2 This error is shown when i try to build using sudo yarn run build ...
Divyarajsinh Dodiya's user avatar
0 votes
0 answers
457 views

Fatal error: Uncaught Error: Class 'Cm_Cache_Backend_File' not found

Going through an upgrade from 2.2.6 to 2.3.1 and i have this populating on the frontend. Additionally, on command line if i try to run an upgrade or pretty much anything even php bin/magento list i ...
Head's user avatar
  • 125
2 votes
2 answers
1k views

Extension Installation Readiness Check Error Magento 2.3.1

There are several errors when I'm trying to install an extension (Slider Banner Module) for the first time. The picture below shows the error in the readiness check. I'm using GoDaddy > C-Panel > ...
Nicholas Chow's user avatar
2 votes
2 answers
530 views

Database connection error, after CLI install?

First time Magento user here, seeking enlightenment. I did a CLI install on CentOS 7 using the following command... ./bin/magento setup:install --base-url="http://example.com/shop/" --db-...
beppe9000's user avatar
  • 123
1 vote
0 answers
104 views

Display record count in custom report on the basis of row count. Magento 1.9 custom report

In my Custom Report. I have created a collection which count is 25. But After this I have applied some joins on that by another collection. but on which I have made join is returning 25 records. ...
Inzamam Waikar's user avatar
0 votes
0 answers
32 views

How can submit my form through mail?

I have automated mail sending function in Magento 1.9 code. I have used mail template for sending mail (using default magento functionality) but now i want to add one form in that mail which ...
Inzamam Waikar's user avatar
2 votes
1 answer
2k views

How to Fix Parameter must be an array or an object that implements Countable

After upgrading to PHP 7.2 I get a lot of Warnings Parameter must be an array or an object that implements Countable I've tried many ways to fix it but none have worked so far. The commented ...
Freejoy's user avatar
  • 809
1 vote
1 answer
7k views

Add Custom field for Category in magento2

I want to add TextArea in Admin Edit category Page. How to do this.
Mahi M's user avatar
  • 2,530
7 votes
4 answers
2k views

How to override model in magento2?

I want to remove the below lines in Magento\Quote\Model\PaymentMethodManagement model file if (!$this->zeroTotalValidator->isApplicable($payment->getMethodInstance(), $quote)) { ...
Mahi M's user avatar
  • 2,530
2 votes
1 answer
807 views

Fatal error lib/Varien/Crypt/Mcrypt.php

When accessing payment methods menu in admin panel (Magento 1.9.2.2) I get the following fatal error. And in the frontend this: I asked my hosting company to instal mCrypt module on Server as shown ...
ambros's user avatar
  • 21
2 votes
1 answer
606 views

How to get custom local storage value in magento2?

How to get custom local storage value in magento2? I need to get the custom local storage value in php file . How to do that Thanks.
Mahi M's user avatar
  • 2,530
6 votes
1 answer
706 views

How to add class in ko template in magento2

I want to add class in ko template In js: define([ 'jquery', 'ko', 'uiComponent', 'underscore', 'mage/translate', 'mage/storage', '...
Mahi M's user avatar
  • 2,530
0 votes
1 answer
52 views

Magento production mode note set

Magento production mode note set display like http://prntscr.com/n6kl5q VPS server 8GB RAM, Nginx server php vesion :Php 7.2 /etc/php/7.2/fpm/php.ini (php Memory limit =4G) /etc/php/7.2/cli/...
shaju ss's user avatar
0 votes
0 answers
82 views

Magento 1.9.4.0 suddenly stops working with PHP 7.2, needed to downgrade to PHP 5.6

We changed our PHP to 7.2 a week ago. There were no problems but suddenly after a week there was a problem. Users were redirected to the cart after pressing the "Confirm Order" button on Checkout page ...
Black's user avatar
  • 2,993
1 vote
0 answers
117 views

Magento 2.3 Constructor failed? [closed]

I have site run on hosting. but I get issue vendor/magento/framework/Stdlib/DateTime/Timezone.php(123): IntlDateFormatter->__construct('el_GR', 3, -1) Anybody have any idea help me check that?
xanka's user avatar
  • 2,064
1 vote
1 answer
131 views

Mismatched Magento version while using composer

I currently have Magento running on Ubuntu Xampp, and attempted to run composer on a theme file, which prompted me to install a load of PHP extensions. I did this (7.2 for all of them, same as system ...
Adam C's user avatar
  • 11
1 vote
0 answers
89 views

CatalogSearch is not working after upgrading to Magento 2.3

Recently I've upgraded from Magento 2.2 to Magento 2.3. After upgrading, CatalogSearch is redirecting to Home page of the website. Previously I /catalogsearch/result was working and shown all ...
vino's user avatar
  • 21
3 votes
0 answers
3k views

PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /vendor/magento/framework/Config/Dom.php:390

DOM package already install. also follows: sudo apt-get update then install php7.2-dom
Anikesh Shahi's user avatar
0 votes
1 answer
517 views

Magento 2.3.0 setup:upgrade error unexpected '?' in PHP 7.2

I am facing this type of error.Unable to access any CLI on Setup. Version Compataible is also match but still no luck. Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) ...
Anikesh Shahi's user avatar
1 vote
1 answer
255 views

Add side bar in custom layout in magento2?

I want to display the subcategory and product tabs in category page .So i have customise the layout file . How to do this.. Thanks.
Mahi M's user avatar
  • 2,530
4 votes
2 answers
6k views

Warning: count(): Parameter must be an array or an object that implements Countable

I have this code: public function getCounter() { /** @var \Amasty\ShopbyPage\Model\Page $model */ $model = $this->_coreRegistry->registry(RegistryConstants::PAGE); ...
G. G.'s user avatar
  • 1,044
1 vote
1 answer
3k views

How to add sidebar in custom layout in magento2?

I want to add sidebar All Product tab in custom layout in magento2? How to do that. Thanks.
Mahi M's user avatar
  • 2,530
3 votes
1 answer
850 views

Create attribute programmatically in magento2.3

I need to create brand attribute in fabric attribute set. <?php namespace XXX\YYY\Setup\Patch\Data; use Magento\Framework\Setup\Patch\DataPatchInterface; use Magento\Framework\Setup\Patch\...
Mahi M's user avatar
  • 2,530
1 vote
1 answer
2k views

Magento 2.3 : Insert data into table using DeclarativeSchema

I have created upgrade data for insert the values for particular table <?php namespace XXX\YYY\Setup; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\...
Mahi M's user avatar
  • 2,530
1 vote
1 answer
1k views

SoapFault: looks like we got no XML document - Magento and laravel

I am with a problem in my application Laravel, when i use the SoapClient, for example my_object_soap->login(); returned this error: Fatal error: Uncaught SoapFault exception: [Client] looks like ...
Diego Cunha's user avatar
1 vote
1 answer
196 views

How to add new grid in product form in magento2

How to add custom grid exactly related products grid in admin product form Magento2. I want to insert custom grid under related product grid. That grid is a exact copy of related product concept.
Mahi M's user avatar
  • 2,530
3 votes
2 answers
4k views

How to create a dynamic fields in admin form?

I want to add add new button template in admin form like this... How to do that? Thanks.
Mahi M's user avatar
  • 2,530
2 votes
2 answers
4k views

How to override view.xml file in custom module

I have change magnifier vars in view.xml file under luma theme. Its working fine . I have change it in my custom module like this ... app/code/XXX/YYY/etc/view.xml. <view xmlns:xsi="http://www....
Mahi M's user avatar
  • 2,530
1 vote
2 answers
1k views

Get product attribute measurement in magento2

How to get the width of Product UoM in magento2 Ex: Weight : 100 cm Thanks.
Mahi M's user avatar
  • 2,530
2 votes
1 answer
941 views

Custom tab in admin product page in magento2

I have created custom tab and added template for this tab using this link. app/code/Namespace/Modulename/view/adminhtml/ui_component/product_form.xml <form xmlns:xsi="http://www.w3.org/...
Mahi M's user avatar
  • 2,530
3 votes
2 answers
7k views

Remove the attribute programmatically in magento2?

I want delete the existing attribute called Manufacturer. Check if this attribute exists before deleting. How to do this. Thanks.
Mahi M's user avatar
  • 2,530
4 votes
2 answers
2k views

How to add the option value for the product attribute in magento2

How to give the option value for the product attribute programmatically. I need to give the option value for manufacturer attribute drop down field. I have created admin grid for manufacturer ...
Mahi M's user avatar
  • 2,530
2 votes
3 answers
2k views

Composer install issue in Magento 2.3?

I have one issue when I run composer install command. How to solve this issue. Thanks.
Mahi M's user avatar
  • 2,530