Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [php-7.2]

Marks questions related to Magento on php 7.2

Filter by
Sorted by
Tagged with
16 votes
15 answers
7k views

SUPEE-10975 Potential Issues

SUPEE-10975 has been released, it would be great to know if anyone runs into any issues while trying to apply this, will this conflict with the most recent patch that adds 7.2 support? So far these ...
Razentic's user avatar
  • 165
8 votes
6 answers
30k views

Magento 2.3.0 "A technical problem with the server created an error." When uploading the logo image

I'm using Magento 2.3.0, with php 7.2 version, on a ubuntu os. Everything looks working fine, but when I try to go into Magento backend, Content - Design/Configuration - Header, and I try to upload ...
alexcr's user avatar
  • 1,487
8 votes
5 answers
33k views

The each() function is deprecated. Magento 2 , php 7.2

I have been getting this error since I changed to PHP-7.2 Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/vedic/vendor/...
Surendra Kumar Ahir's user avatar
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,540
6 votes
3 answers
20k views

each() function deprecated php 7.2 , magento 2 [duplicate]

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /vendor/magento/zendframework1/library/Zend/Cache/Backend.php on line 79 this function showing on ...
Surendra Kumar Ahir's user avatar
6 votes
2 answers
15k views

Magento 2.2 is not working in PHP 7.2.0

I am working on Magento 2.2. Recently I updated my PHP version to 7.2.0, then i am facing the Warning like this: My file.php is : <?php /* ==New BSD License== Copyright (c) 2012, Colin ...
Viraj Shah's user avatar
6 votes
1 answer
852 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,540
5 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
4 votes
2 answers
4k views

Magento 2: Failed to set ini option “session.cookie_samesite” to value “Lax” when updating to - 2.3.6-p1

We're working on updating to Magento 2.3.6-p1. Everything runs and builds properly, but we're getting an error report as well as an error logged in our System.log. The error it's throwing is in line ...
Front_End_Dev's user avatar
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,540
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,172
3 votes
2 answers
8k 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,540
3 votes
3 answers
5k 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,540
3 votes
1 answer
580 views

Database schema related change reverted

I have one of my Magento 2 projects running with version 2.3.3. There are so many simple products for one single configurable product and as a result, there is an issue with the length of the SKU. To ...
B. Desai's user avatar
  • 133
3 votes
1 answer
234 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
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
3 votes
1 answer
871 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,540
3 votes
2 answers
2k views

Uncaught TypeError: Argument 1 passed to Symfony\Component\Console\Helper\ProgressBar::setFormat() must be of the type string, null given

When i trying to install data migration tool then getting this error in SSH PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Console\Helper\ProgressBar::setFormat() ...
sumeet bajaj's user avatar
  • 1,296
2 votes
3 answers
2k views

How to add default head block in default.xml

I want to add default head block in default.xml file. so if anyone have idea about it then please send me the solution.
Deep Shah's user avatar
  • 561
2 votes
2 answers
651 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,540
2 votes
2 answers
642 views

Magento2.3 - Fatal error: allowed memory size of 536870912 bytes

Migrate from one server to another server. I have a big problem with this because I cannot understand the logic on it. Magento 2.3.2 and php 7.2 Fatal error: Allowed memory size of 536870912 bytes ...
gill's user avatar
  • 339
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
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,540
2 votes
1 answer
798 views

DKIM body signing issues on Magento emails

I've got magento 2.3 running on apache with php 7.2. I've got email going out through postfix. I'm trying to get DKIM set up using opendkim. The issue i'm seeing is that emails with html formatting ...
djohnson's user avatar
2 votes
1 answer
3k views

Magento 2.3 Fatal error: Uncaught Error: Call to undefined function mime_content_type()

Fatal error: Uncaught Error: Call to undefined function mime_content_type() in when trying to upload image from admin blocks. Please check screenshot
sumeet bajaj's user avatar
  • 1,296
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
  • 819
2 votes
1 answer
724 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,540
2 votes
1 answer
963 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,540
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,540
2 votes
2 answers
682 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
2 votes
1 answer
2k views

Magento 2.3 PHP Parse error unexpected '?' in write.php

I want to Install cron with putty SSH. I use php bin/magento cron:install [--force] and get this error: PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /www/...
Marcel's user avatar
  • 165
2 votes
3 answers
5k views

We can't find products matching the selection in magento 2.3

On every listing page, I'm getting We can't find products matching the selection. I followed this also but dint helped We can't find products matching the selection. I'm attaching a screenshot for ...
AjayKr's user avatar
  • 145
2 votes
1 answer
887 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
2k 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
2 votes
1 answer
486 views

Magento 1.9.4.0 PHP 7.2 Cron job problems

My settings: Server OS ‪Debian 9.6‬ Plesk 17.8.11 Magento 1.9.4.0 PHP 7.2 When I run schedule task cron.sh I get this: Task "/httpdocs/cron.sh" successfully completed in 0 seconds, output: /...
Alex's user avatar
  • 21
2 votes
0 answers
126 views

How to create a parent category dropdown in admin form in magento2.2

I want to create a drop-down field in admin UI-component form in magento2.(for getting parent category/post) How to do that How to do that Thanks
Mahi M's user avatar
  • 2,540
2 votes
0 answers
334 views

PHP 7.2 Support Patches for Magento 1

Magento released a bunch of patches today for M1 compatibility with PHP7. This is great news as PHP7 is so much faster. Before we go ahead and apply them, I would like to know if anyone encountered ...
Haim's user avatar
  • 2,144
2 votes
1 answer
483 views

New Magento1 patch for php 7.2 - how to make it work with Magento 1.13?

I am dealing with an old website with a lot of custom modules running on Magento 1.13 (obviously, EE). I am very excited to see official support for php7.2 - however, I can see that the patch is ...
Wladyslaw Brodsky's user avatar
1 vote
1 answer
8k 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,540
1 vote
1 answer
2k views

Magento 2.3.4 custom module - Uncaught Error: Call to a member function setData() on boolean

I've got a custom Magento 2 module that is causing issues on newly created products. All of the existing ones seem to be okay. I'm running Magento 2.3.4 in my template: /app/design/frontend/MySite/...
Front_End_Dev's user avatar
1 vote
2 answers
2k views

Fatal error: Uncaught Error: Call to a member function select() on null.Magento2

<?php $connection = $this->getConnection(); $select = $connection->select(); $select = $model->getCollection() ->select() ->count() ->from($this->getDbPrefix() . '...
pixartN's user avatar
  • 29
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
  • 883
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,540
1 vote
3 answers
1k views

M1 PHP7.2 Patch - Customer Registration - "A non-numeric value encountered"

I encountered an issue with Magento 1.9.2.4 and the PHP7 Patch: If I choose optional DOB and register without DOB, the logfile shows an error: 2018-10-16T09:45:59+00:00 ERR (3): Warning: A non-...
ulbiopro's user avatar
1 vote
2 answers
623 views

Magento 1 Updated with php 7.2 does not show products in beckend

I updated magento 1 to the latest version 1.9.3.10 and then set the php on the server to version 7.2, I also tested version 7.1, and find that with these versions of php the list of products in the ...
Joso's user avatar
  • 317
1 vote
1 answer
866 views

Attachement Upload (Uncaught SyntaxError: Unexpected token < in JSON at position 0)

If I want to insert a file, into the product, I get the following error message in the console. Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) ...
baumpaul's user avatar
1 vote
1 answer
369 views

Why phpseclib takes time in magento 2.3.3?

Recently we have upgraded Magento 2.2.8 to 2.3.3 and PHP 7.2.11, post that we are facing more performance issues. When we put site in maintenance mode phpseclib related changes keep takes time. ...
seeni's user avatar
  • 1,247
1 vote
1 answer
1k views

Sorting attributes are not working Magento 2.3

I'm trying to apply sorting from the toolbar on listing page, but none of the sorting properties like price, new, name etc. are working. As you can see I have applied sort by price, but it's not ...
AjayKr's user avatar
  • 145
1 vote
1 answer
452 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
  • 288
1 vote
1 answer
281 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,540