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/...
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 ...
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 ...
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 ...
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 ...
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 ...
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="...
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 ...
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 ...
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 ...
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"...
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 ...
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://...
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, ...
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 |...
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 ...
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 ...
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 $...
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, ...
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->...
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 ...
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(
...
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/...
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 ...
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 ...
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 ...
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) ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
php-7 × 488magento2 × 205
magento2.2 × 122
magento-1.9 × 63
magento-2.1 × 41
php × 37
magento2.3 × 32
installation × 21
nginx × 19
database × 18
javascript × 13
error × 13
composer × 12
product × 11
module × 11
onepage-checkout × 10
session × 9
grid × 8
fatal-error × 8
xampp × 8
upgrade × 7
php-7.2 × 7
apache2 × 7
ubuntu × 7
centos × 7