Questions tagged [php-7]
Use this tag when you have problems very specific to PHP7 because of for example BC breaks
49
questions
72
votes
13
answers
29k
views
Is Magento ready for PHP 7?
PHP 7 is reaching beta status and lots of testing is going on at the moment. Given that Magento caught up within the last year from "runs only on PHP 5.3" to "fully compatible with PHP 5.6", I would ...
5
votes
3
answers
7k
views
Magento 2 - How do I programmatically remove payment method?
I've followed the guide on the selected answer here:
Payment method only admin Magento 2?
But still no luck.
What I want is to be able to show the Cash On Delivery method only to certain customers. ...
4
votes
1
answer
8k
views
Magento 2: installation stuck at 65% "installing user configuration"
So I recently installed Ubuntu 16.04 on an old laptop.
Running PHP 7:
PHP 7.0.4-7ubuntu2.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend ...
12
votes
5
answers
66k
views
Magento 2 PHP extensions missing
I am trying to setup a new vagrant box for Magento 2 development, however when running composer install, I receive the following errors:
Problem 1
- The requested PHP extension ext-gd * is ...
17
votes
3
answers
11k
views
Magento Grand Total without taxes in 1.9 with PHP7
We're working in a 1.9 & php7; detected this issue with paypal suspect fraud (due the difference amount).
All correct in frontend (apply taxes); but in checkout and calculation, magento uses the ...
9
votes
2
answers
6k
views
Why doesn't Magento 2.1 support PHP 7.0.3 to 7.0.5?
As you may know Magento 2.1.0 is out.
According to the release notes, only PHP 7.0.2 AND PHP 7.0.6 are supported
Why aren't PHP 7.0.3 / 7.0.4 / 7.0.5 supported ?
Edit: 2.1.2 now supports PHP 7.0.4
4
votes
3
answers
10k
views
How to update magento 2.3.0 to 2.3.1?
Magento just released new versions of Magento Commerce and Open Source to increase product security, performance, and functionality.
One of it is the Magento Commerce and Open Source 2.3.1.
My ...
24
votes
2
answers
38k
views
How can solve error Magento 1.xx on PHP 7? [duplicate]
Magento 1.9.4 not run with PHP 7, it showing error as below:
Fatal error: Uncaught Error: Function name must be a string in
app\code\core\Mage\Core\Model\Layout.php:555 Stack trace: #0
app\code\...
15
votes
7
answers
24k
views
Magento 2.1.1 not compatibile with PHP 7.1.0
I've a new server with PHP v7.1.0RC3 installed. According to DevDocs Magento 2 is compatible with 7.0.2 up to 7.1.0, except for 7.0.5 which makes PHP 7.1.0 compatible with M2 however when tried to ...
10
votes
2
answers
11k
views
Magento 1.9.2 and php7 - image upload error
I'm just testing Magento 1.9.2 with Php 7. All seemed to work, but suddenly I tried to upload image for the product. I got error like below:
Fatal error</b>: Uncaught Error: Function name must ...
9
votes
3
answers
25k
views
Magento 1.9.x php 7 support
I run Magento 1.9.2.2 and I want to switch to php 7.0.
Is it possible and save to switch to 7.0 with this Magento install?
8
votes
2
answers
12k
views
How to display Yes/No values in admin grid (Magento2)?
I have created a InStock column in admin grid and table.
In table, Instock column values are 0 (or) 1 based on productstock.
In admin grid, the Instock column values are dispalyed 0 (or)1 .
But i ...
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/...
5
votes
4
answers
21k
views
How we can install magento 2.2.0 via command line comand?
How we can install magento 2.2.0 via command line command(CLI) using Ubuntu ?
Could you please some share command?
4
votes
3
answers
5k
views
How to add custom block in admin order create form in magento 2.2.5
I need to add custom block after order comment section in admin order create form using version(magento2.2.5)
2
votes
2
answers
969
views
Error with language pack using Magento 1.9.x and php 7.0
Did anyone found a work around to install language package on php 7 and magento 1.9.x?
it throws me this error:
CONNECT ERROR: Package community/Mage_Locale_es_ES 1.9.0.0: requires
PHP version >=...
1
vote
1
answer
2k
views
Magento 1 session in database error with PHP 7.2
Updated to Magento 1.9.3.10 with PHP 7.2. If I save the sessions in db:
<session_save><![CDATA[db]]></session_save>
I get this error:
Recoverable Error: session_module_name(): ...
1
vote
3
answers
907
views
Magento 2: Error 500 with correct Password in Magmi.ini
My issue is very closely related to Magmi for magento2 and this question here Fatal Error with Magmi for Magento2.
I've noticed when I enter my database credentials correctly in the magmi_engine.php ...
0
votes
2
answers
11k
views
Magento2 : How to add Custom Block?
How to add custom block under payment method(admin order invoice)
0
votes
1
answer
730
views
Fatal Error on Controller Accessing Session
I am trying to access the session so I can redirect if the user is not logged in. Used what should be correct, from several sources:
protected $_session;
public function __construct(\Magento\...
6
votes
2
answers
2k
views
After Returning to Magento with Paypal Express Purchase. Error: The totals of the cart item amounts do not match order amounts (#10413)
So here's what I initially started with:
You would go to pay via PayPal, and it would flat error out with
Paypal error # 10413: The totals of the cart item amounts do not match order amounts
I have ...
5
votes
3
answers
12k
views
Undefined class constant 'PDO::MYSQL_ATTR_SSL_KEY' in/magento/setup/src/Magento/Setup/Model/ConfigOptionsList.php:179 in magento localhost
Ater execute any command getting this error
Operating system :- Mint ubuntu
Php version :- 7.2
Magento :- 2.3.4
4
votes
0
answers
1k
views
Magento 2 First Name is a required field Error While Placing Order
When I try to place an order after the customer registration/Login. Magento 2.2.5 shows "First Name is a required Field Error".
A Sample error message is attached.
This is the response I am getting:
4
votes
4
answers
10k
views
Magento 2 not working on apache2, php7 and ubuntu
We are working on a magento 2 project. Since Windows lack cron job, magento 2 refused work full fledged. We decided to install ubuntu.
After striving hard I was able to make PHP7, apach2, mySQL and ...
3
votes
1
answer
1k
views
Magento 1 : each() function is deprecated
In Magento 1, I have been getting this error:
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/test/app/code/core/Mage/Eav/Model/...
2
votes
2
answers
1k
views
How to remove sidebar in Shipping Address step Magento 2
I want to hide the sidebar in this Shipping Address Page on Checkout.
Note: I only want to hide the sidebar in Shipping Address step, not in other steps.
I did some research on it But found Solution ...
2
votes
3
answers
3k
views
Session_regenerate_id in Magento 2 with PHP 7
I've got an install of Magento 2.0 running on Centos 6.7 with PHP 7. I'm using Redis for cache and Memcached for session data. Everything so far on the frontend works great, but I'm getting the ...
2
votes
5
answers
1k
views
How to get recently viewed product collection in magento2?
I want to get the recently viewed product collection directly from model without using block function.
Thanks.
2
votes
2
answers
2k
views
Can't install PHP 7 support patch?
I downloaded the official php7 support patch PATCH-1.9.3.0_PHP7-2018-09-13-07-59-59.2_v2 from here.
I noticed that the file is downloaded without any extension, so I renamed it from PATCH-1.9.3.1-1.9....
2
votes
3
answers
7k
views
Magento 2 installation stuck
When trying to install Magento 2, the installation is currently stuck at 49% "Installing user configuration". I have tried changing the "vendor" directory to 777 as recommended by a couple of others ...
2
votes
1
answer
3k
views
Magento 2 low image quality on products
We are currently using Magento 2 and all the images uploaded to the website are resized or modified by the system. The result is a poor image quality on all the products.
I'm not finding any ...
1
vote
4
answers
15k
views
Magento 2: "There has been an error processing your request"
I installed Magento 2.1 on my Centos 7 server, running Nginx 1.10.1, MariaDB 10.1 and PHP7 with SSL. In theory, everything installed just fine and after the installation I got no errors what-so-ever, ...
1
vote
2
answers
4k
views
Nginx Magento 2 403
Going through the magento devdocs on setting up magento 2 enterprise.
Ubuntu 16.04 PHP 7.1
https://devdocs.magento.com/guides/v2.2/install-gde/prereq/nginx.html
This is my issue I have worked through ...
1
vote
2
answers
1k
views
Upload image in custom option
I want to add the file uploaded in custom option (adminend).
In CustomOption modifier:
return [
'arguments' => [
'data' => [
'config' => [
...
1
vote
1
answer
2k
views
Checkout page validation not working in magento2
I have added custom text field for bank transfer method.
In template file:
<div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}">
<div class="payment-...
1
vote
1
answer
2k
views
How to add tab in product Edit Page in Magento2?
How to add tab in product edit page in magento2?
I refering some tutorial ...but its not woking for me...
https://webkul.com/blog/add-tab-product-page-magento-admin/
If anyone knows ,Explain me...
1
vote
1
answer
1k
views
Changed PHP 5.6 to PHP 7 with Magento 1.9
I changed the version of PHP [5.6.30] to PHP [7.0.17]. But now Magento 1.9.2.1 returns the following error:
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
I ...
1
vote
0
answers
3k
views
Customise grid collection in magento2?
I have created admin grid for product in product view page.It display all product details.But i need to display the current product details in admin grid.
How to apply filter collection from table ...
1
vote
4
answers
4k
views
Magento 2.2. Customer Custom Attribute
I want add bonus to my customer, in the internet i read that i need use custom attribute.
etc/Module.xml
<module name="Kt_Addbonus" setup_version="1.2.2">
<sequence>
<...
0
votes
3
answers
1k
views
adding new column in admin/sales/order/ view page
I tried this code but it is giving a column at the end of the table, I want this column at the starting of the table (product image)
file : app\code\Product\image\view\adminhtml\layout\...
0
votes
1
answer
458
views
Magento 2 delete one month old files or images
The below code will delete pub/media/tmp directory and sub directory all files which is older than one month.By the help of core php function.
0
votes
1
answer
626
views
How to override template in magento 2?
How to remove the line below
<span class="discount coupon" data-bind="text: getCouponLabel()"></span>
in Magento_SalesRule/cart/totals/discount.html
var config = {
'config': {
...
0
votes
0
answers
667
views
Accordion not working Magento 2 after minify JS
I have minified JS and HTML and CSS in Magento 2.
After that Accordion is not working.
<?php
$collectionTitle = $this->getCollectionFaqcat();
?>
<div class="shy-shadow-container row mrg0"...
0
votes
2
answers
910
views
catalog_product_import_finish_before Event in magento2?
Created an observer file in Magento1, using event
catalog_product_import_finish_before
event
$productIds = array();
$adapter = $observer->getEvent()->getAdapter();
...
0
votes
2
answers
122
views
Product sku in magento2 [closed]
I have created custom grid using ui component.
I want to add product sku column in custom grid which contains product skus list from product table.
How to do that ....
If anyone knows please ...
0
votes
2
answers
3k
views
how to set order increment Id while creating order dynamically in magento 2
I am creating orders in magento 2 programatically but i cannot know how to set increment Id for orders , client's want to migrate old order into magento 2 , so we already have order increment id but
...
0
votes
0
answers
801
views
How to add radio button in custom option in magento2
I want to add radio button in custom option .
I refer this link Magento2 adding radio buttons in customoptions.
But not working.
If anything i want to chage it.
Thanks.
0
votes
1
answer
900
views
"Magento supports PHP 7.0.2, 7.0.4, and 7.0.6" error message when I have PHP 7.2.12
Having installed the DB for Magento 2.2.6 I get this error message when trying to initiate setup;
http://www.ben-grant.co.uk/magento226/
"Magento supports PHP 7.0.2, 7.0.4, and 7.0.6 or later. ...
0
votes
2
answers
440
views
Image Uploading Issue After Applying Patch 8788
We are facing an issue of image upload in catalog product in admin after applying patch 8788. Please do not say clear magento cache, clear browser cache, flush CDN etc...etc...we already tried all ...