Hot answers tagged

33 votes
Accepted

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

This is the bug in the Magento 2.3 version, but you can fix the issue by the change in the below code. Go to this file: /vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml ...
Aasim Goriya's user avatar
  • 5,424
13 votes

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

each() function is deprecated in php 7.2 so change this function to foreach() Change while (list($name, $value) = each($options)) { $this->setOption($name, $value); } To foreach ($options as $...
Surendra Kumar Ahir's user avatar
13 votes
Accepted

Magento 2.2 is not working in PHP 7.2.0

Unfortunately no, PHP 7.2 is not officially supported yet. You can see below list and information from Magento dev docs about the system requirements. 1. Magento 2.2.x supports PHP Versions below: 7....
harri's user avatar
  • 5,455
12 votes

SUPEE-10975 Potential Issues

So far, I have come across the following issues with the SUPEE-10975 patch: It is not possible anymore to delete customer groups via the admin because of a missing return statement in the new method ...
Aad Mathijssen's user avatar
11 votes

SUPEE-10975 Potential Issues

Missing return parent::getDeleteUrl() in app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php + public function getDeleteUrl() + { + if (!Mage::getSingleton('adminhtml/url')->...
Mikhail Chelevich's user avatar
11 votes

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

The session.cookie_samesite PHP INI is available starting from PHP 7.3. If you're getting this error, it's because you are not running PHP 7.3 or above and Magento code you run is not compatible/buggy ...
Danila Vershinin's user avatar
10 votes

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

You might want to look at this Github issue here. Magento is compiling a list of product IDs to send as a cache header but the header ends up being too long because the header string includes all ...
S Adamson's user avatar
  • 699
9 votes

each() function deprecated php 7.2 , magento 2

each() function is deprecated in php7.2 you can replace each() function to foreach() Open file <Magento Root>/vendor/magento/zendframework1/library/Zend/Cache/Backend.php on line 79 & ...
Surendra Kumar Ahir's user avatar
9 votes
Accepted

How to override model in magento2?

All other answers tell you how to rewrite the model, exactly what is asked. But Magento 2 offers another solution to your problem: Plugins. With plugins you can change the outcome of just about any ...
Michiel's user avatar
  • 242
8 votes

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

Magento 2 does not support PHP 7.2 until version 2.3 which is not out yet (rumour is it'll be out by the end of 2018). So your only real option here is to downgrade to the latest supported version of ...
Gareth James's user avatar
8 votes

SUPEE-10975 Potential Issues

I ran into an issue with the 10975 patch. After some investigation I was able to track down the answer as to where the patch was messing up and why. To summarize the below check and make sure you ...
danmentzer's user avatar
8 votes
Accepted

Add Custom field for Category in magento2

Two steps to create category attribute, Add a InstallData.php in the below path app/code/vendor/ModuleName/Setup/InstallData.php then add the below code to it <?php namespace Vendor\...
Prathap Gunasekaran's user avatar
7 votes

How to override model in magento2?

Steps to Follow : Override di.xml Override PaymentMethodManagement.php Launch SSH and Run Commands Override di.xml app/code/Namespace/Modulename/etc <?xml version="1.0"?> <config ...
Chirag Patel's user avatar
  • 6,116
6 votes

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

This is a Magento 2.3 bug, added wrong value for formElement for field header_logo_src You can go to the file vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml and in ...
Arshad M's user avatar
  • 866
5 votes

SUPEE-10975 Potential Issues

Firstly, sorry for the duplicate of erej's answer, i can't comment nor edit because of my reputation score. The patch creates a new file here : app/code/core/Zend/Controller/Request/Http.php Which ...
jdemandre's user avatar
5 votes
Accepted

How to add class in ko template in magento2

You can use like this: <div class="col-md-12 pdl0" data-bind="css: {'disable': showElement} "> or like this: <div class="col-md-12 pdl0" data-bind="css: showElement ? 'disable' : ''">
Satish Dubariya's user avatar
4 votes

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

Instead of the below line you can add new line Old Line while (list($name, $value) = each($options)) { Paste the below new line foreach ($options as $name => $value) {
Naveenbos's user avatar
  • 1,226
4 votes

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

As mentioned above Magento before 2.3 (unreleased yet) doesn't support PHP 7.2. There is a separate repo tracking support for PHP 7.2 https://github.com/magento-engcom/php-7.2-support it's maintained ...
Piotr Kwiecinski's user avatar
4 votes

SUPEE-10975 Potential Issues

With version 1.8.1.0 after applying this patch we also had to change app/code/core/Mage/Core/Controller/Request/Http.php::getBaseUrl() function to be public function getBaseUrl($raw = false) { $...
erej's user avatar
  • 141
4 votes

SUPEE-10975 Potential Issues

I have a problem with 'Hunk #1 FAILED at 28' Rejects are supposedly saved to config.xml.rej but this file doesn't exist, neither is there any description of what part of the script failed in my ...
Sparko's user avatar
  • 121
4 votes

each() function deprecated php 7.2 , magento 2

Magento 2.2 is not compatible with php7.2 You must use php7.0 "require": { "php": "~5.5.0|~5.6.0|~7.0.0", "composer/composer": "1.0.0-beta1", "symfony/console": "~2.3 <2.7" },
Mohamed El Mrabet's user avatar
4 votes

Remove the attribute programmatically in magento2?

Try this, In order to check and remove attribute if(!$setup->getAttributeId(\Magento\Catalog\Model\Product::ENTITY, 'attribute_code')) { $eav_setup->removeAttribute(\Magento\Catalog\...
Prathap Gunasekaran's user avatar
3 votes

SUPEE-10975 Potential Issues

The Mage_Backup Module will be disabled by the patch. This is mentioned in the official release notes (https://devdocs.magento.com/guides/m1x/ce19-ee114/ce1.9_release-notes.html#ce19-1940). However ...
poebel's user avatar
  • 91
3 votes

each() function deprecated php 7.2 , magento 2

Magento 2 does not support php 7.2 until version 2.3 which is not out yet (rumour is it'll be out by the end of 2018) So your only real option here is to downgrade php to 7.1. You could also ignore ...
Gareth James's user avatar
3 votes

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

I wanted to elaborate for those that are want to know if they have fileinfo enabled and how to enable. The below is for Centos will be similar for other Linux flavors php -m | grep fileinfo (if you ...
Y Talansky's user avatar
3 votes

DKIM body signing issues on Magento emails

I had the same issue after upgrading to Magento 2.3 because this release uses zend mail 2.x. The reason of the broken dkim signature is the line lengh. The css minimization puts everything in one ...
Markus Korporal's user avatar
3 votes

How to create a dynamic fields in admin form?

Configure the container with XML Just create a NameSpace/ModuleName/view/adminhtml/ui_component/product_form.xml file with this content: <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
Chirag Patel's user avatar
  • 6,116
3 votes

How to override model in magento2?

in you etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> ...
Rakesh Donga's user avatar
  • 5,334
3 votes

How to override model in magento2?

You can do it by using Preference in your di.xml file of your custom module. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
fmsthird's user avatar
  • 4,592
3 votes
Accepted

Call Custom function after binding customer name in magento2?

app/code/Vendor/Module/view/frontend/templates/header/loginlink.phtml Paste Below Span inside the My account section in loginlink.phtml file <span class="bold" data-mage-init='{"js/...
Shafeel Sha's user avatar
  • 1,385

Only top scored, non community-wiki answers of a minimum length are eligible