Hot answers tagged

83 votes
Accepted

How can solve error Magento 1.xx on PHP 7?

It happens because in PHP 7 you need to clarify that you are going to call the $callback variable as a method (function). So, the original line of the code looks like the following (file app/code/core/...
user avatar
  • 2,118
35 votes
Accepted

Magento 1.9.2 and php7 - image upload error

http://php.net/manual/de/migration70.incompatible.php https://wiki.php.net/rfc/uniform_variable_syntax Due to uniform variable syntax the code is now interpreted strictly from left to right. The ...
user avatar
  • 1,312
30 votes
Accepted

Is Magento ready for PHP 7?

Magento announced officially on January 20th, 2016, that CE and EE 2.0.1 officially support PHP 7.0.2. Magento Enterprise Edition and Community Edition 2.0.1 are now available and feature ...
user avatar
  • 17.2k
29 votes
Accepted

Magento 2 PHP extensions missing

Before you install Magento 2, make sure your system meets or exceeds the following requirements: Required PHP extensions: PDO/MySQL mbstring mcrypt mhash simplexml curl gd2, ImageMagick 6.3.7 (or ...
user avatar
  • 1,257
27 votes

Is Magento ready for PHP 7?

If you are using the most recent version, M CE 1.9.2.2, there is an extension that will bring it to full PHP 7 compatibility: https://github.com/Inchoo/Inchoo_PHP7. (Disclaimer: I'm the author, though ...
user avatar
26 votes

How can solve error Magento 1.xx on PHP 7?

If you want to run your Magento 1.x website on PHP7, you need to make some little tweaks in your some Magento 1.x files to make it work without any issues. Most of Magento code is still valid in PHP ...
user avatar
25 votes
Accepted

How to display Yes/No values in admin grid (Magento2)?

Method 1: If you have boolean value 0 and 1 use default option class Magento\Config\Model\Config\Source\Yesno app/code/Vendor/Theme/view/adminhtml/ui_component/your_ui_grid.xml <column name="...
user avatar
  • 21.7k
24 votes
Accepted

Magento 2.1.1 not compatibile with PHP 7.1.0

Update - September 2017: Magento 2.2 now officially supports PHP 7.1, so that's the Magento version you should aim for from now on if PHP 7.1 is something you want or need on your platform. Original ...
user avatar
  • 1,287
23 votes
Accepted

How to switch between PHP versions on Ubuntu Nginx

Please use to below command sudo update-alternatives --config php After run above command select the PHP version that you need to use. Press to keep the current choice[*], or type selection ...
user avatar
22 votes

Is Magento ready for PHP 7?

No idea about PHP7, but I would guess most of the stuff is still valid in PHP7, you can find more information in the blog of Matthias Geniar ext/mysql: despite it being a very old MySQL ...
user avatar
20 votes

Classnames 'Void' inside vendor/magento/

Here is how to fix it: edit vendor/magento/module-sales/etc/webapi.xml line 112: - <route url="/V1/invoices/:id/void" method="POST"> + <route url="/V1/invoices/:id/voidInvoice" method="POST"...
user avatar
20 votes

Error when mass updating Attributes

A flaw in the migration script left the setting empty for: Stores -> Settings: Configuration -> Catalog -> Inventory -> Product Stock Options: Minimum Qty Allowed in Shopping Cart Change ...
user avatar
  • 321
15 votes
Accepted

How we can install magento 2.2.0 via command line comand?

php bin/magento setup:install --backend-frontname="admin" --key="admin" --session-save="files" --db-host="localhost" --db-name="magento_2_db" --db-user="root" --db-password="root" --base-url="http://...
user avatar
14 votes

Is Magento ready for PHP 7?

No comment on Magento 1, but Magento 2 did have some problems with class names like "String". It did not take long to fix, but it did not work out of the box. I expect that Magento 2 will be fixed, ...
user avatar
  • 3,458
13 votes
Accepted

Problem with magento 2.0.2 CE after upgrading to php7.0

How did you installed php7 ? What OS are you running? Are you using php-mod or php-fpm? If you are running ubuntu and you installed using PPA, then try this Check if mcrypt module is there: php -m |...
user avatar
  • 3,386
13 votes

Magento Grand Total without taxes in 1.9 with PHP7

Solution I've created a magento module to solve magento issues with totals calculation for php7. The issues I've experienced in particular were that taxes have been added twice to the grand total for ...
user avatar
  • 271
13 votes
Accepted

Magento 2 - How do I programmatically remove payment method?

We will describe a simple solution based on the Payment Restriction module, where MageWorx – a vendor name and Payment Restriction – a module name. First, you need to create a directory for the ...
user avatar
  • 3,728
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 $...
user avatar
12 votes

Is Magento ready for PHP 7?

It is almost ready. I tried running a clean Magento 1.9.2.1 with PHP 7 RC1, which resulted in an instant crash (fatal error) of Magento. After fixing this problem, everything seemed to be working, ...
user avatar
  • 711
12 votes

magento install gets to a 500 error

Magento 1.x is not fully compatible with PHP 7, see: Is Magento ready for PHP 7? This specific bug can be fixed, by overriding Mage_Core_Model_Layout and change line 555 from: $out .= $this->...
user avatar
11 votes
Accepted

Magento 1.9.x php 7 support

Yes, it is possible to migrate 1.9.2.2 from PHP 5.5 to PHP 7. Its not officially supported yet but Inchoo has found the solution to this. They have developed Magento extension to make Magento ...
user avatar
11 votes
Accepted

Return bool gives error "Invalid return type" for Ajax Controller

Try this example: protected $resultJsonFactory; /** * @param Context $context * @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory */ public function __construct( ...
user avatar
10 votes
Accepted

Magento 2: installation stuck at 65% "installing user configuration"

Thanks to @Nickool, I found out apache mod_rewrite was not enabled. So I ran: sudo a2enmod rewrite Added the following lines to my /etc/apache2/sites-available/my.host.com <Directory /var/...
user avatar
9 votes

Is Magento ready for PHP 7?

Magento2 is ready for PHP 7. Adaptation of code to PHP7 was done and all changes are available in develop branch. See issue on GitHub Also, support of php 7 in Magento1 require backward incompatible ...
user avatar
  • 20.3k
9 votes

Magento Grand Total without taxes in 1.9 with PHP7

I really don't know if this will help in any way, but something to look into. It is possible that your collecttotals model order is ordering differently, and that tax is being ordered/applied after ...
user avatar
  • 9,806
9 votes
Accepted

Why doesn't Magento 2.1 support PHP 7.0.3 to 7.0.5?

No official information but this Github issue gives a hint: https://github.com/magento/magento2/issues/4070 alankent commented on 8 Apr Could you try 7.0.4? There are reports of something breaking ...
user avatar
9 votes

Magento 2.1.1 not compatibile with PHP 7.1.0

There are two possibilities: The devdocs are wrong and PHP 7.1 is not supported The requirement in composer.json is wrong. Since Magento 2.1 was released before PHP 7.1, it is most likely option (2) ...
user avatar
9 votes
Accepted

Enable php extension for installation Magento2 on Xampp

Check php.ini file. This is normally under your xampp folder (Example D:\xampp\php) Search like php_soap.dll;,php_xsl.dll,php_intl.dll each dll extension removing the first ; character, to make it ...
user avatar
9 votes

What type of redirect is this?

If you need to know detail about the following code then read the following: $resultRedirect->setPath('*/*/'); First * means current route and second * means current controller. Let me explain it ...
user avatar
9 votes

How to update magento 2.3.0 to 2.3.1?

Yes, you can upgrade via admin as well, To run System Upgrade: Log in to the Magento Admin as an administrator. Click System > Tools > Web Setup Wizard. The following page displays. Click System ...
user avatar

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