Questions tagged [php-7]
Use this tag when you have problems very specific to PHP7 because of for example BC breaks
213
questions with no upvoted or accepted answers
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
1
answer
992
views
After upgrade 2.1.2 to 2.1.7, Redis cache ends up in bad state intermittently, then all requests return 503
This site was stable on Magento CE 2.1.2. After upgrading to 2.1.7, we have encountered some issues in production.
There are 2 recurring errors with an interval of hours to days between occurrences. ...
3
votes
0
answers
117
views
Magento2: Shipment issue in admin order
I trying to create a shipment with track id for the order.
but it displays 404 error in chrome browser after enable bundling option in production mode.
How to solve the issue.
Thanks.
And the ...
3
votes
1
answer
174
views
Magento 2.3.0 Shared Server Are Different PHP Version(s) An Issue
I’m trying to install Magento 2.3 with Composer, with php 72. I am hosted on a shared cloud server that has php 70 as the server version (what php -v returns). I can set the local version of php to ...
3
votes
1
answer
375
views
How to change the current password optional
How do I change the current optional password in edit account section in Magento 2 as customer is already logged in, hence I don't want customer to put the current password again for the store.
How ...
3
votes
0
answers
165
views
My deployment scripts are utilizing all the ram and taking forever
Even if I increase the ram it will end up just using it up and bogging down. I'm not sure if this is riding the gray line of what should be in magento stack exchange vs ask ubuntu.
Why are these ...
3
votes
1
answer
41
views
Add content in sales order?
How to insert additional block in create order page (magento2 admin side order) after billing/ shipping address**
2
votes
2
answers
722
views
magento 2.3.1 inventory:reservation missing commands
I have inventory_reservation inconsistencies that I need to clean up on M2 2.3.1 so following this wiki guide https://github.com/magento/inventory/wiki/CLI-Reference but when running it I get error
'...
2
votes
1
answer
1k
views
Error installing Magento 2.3.2: An abstract factory could not create an instance of magentoframeworkencryptionencryptor
I am installing magento 2 via a docker image :
quay.io/alexcheng1982/apache2-php7:7.2.12
I keep getting this message:
An abstract factory could not create an instance of
...
2
votes
0
answers
38
views
Magento 2.2.7 NGinx Error
Hello as you can see in the title:
I have nginx installed it is working fine
PHP 7.1
Installed PHP-XML
Installed PHP-DOM
But still getting this problem when i for example want to clear cache.
pelase ...
2
votes
0
answers
209
views
Update Store Summary By Checkout Address Country Change
So Basically I want to update my checkout cart summary when user select country from shipping address ,cart price and currency change according to the country he selected in shipping address.
2
votes
1
answer
631
views
setup:upgrade error when updating magento 2.2.7 to magento 2.3
I hope somebody has een idea to solve this, I tried removing all my cache, generated folder, composer install, compile etc but no luck
PHP Fatal error: Uncaught Error: Call to undefined method ...
2
votes
1
answer
299
views
How to solve magento 2 localhost not working properly
I already run comment
sudo chmod -R 777 var/www/html/myproject/*
but still not showing
how i can fix this??
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 ...
2
votes
0
answers
66
views
QuickBook Desktop
Can we sync data from quickbooks desktop to Magento 2, Specifically If an invoice was Marked paid / or partial paid in Quickbooks will It sync that data up to magento 2?
I want to synchronise invoice,...
2
votes
1
answer
481
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 ...
2
votes
1
answer
47
views
Composer in Magento 2?
How to upgrade new version of module code by using composer in Magento 2 from the third-party repository.
How to upgrade third-party module using composer?
If anyone knows then please help me out. ...
2
votes
2
answers
233
views
Magento Memory issue for installing extensions
I am really stuck at the moment.
I keep getting the following error:
"Your current PHP memory limit is 512M. Magento 2 requires it to be set to 756M or more. As a user with root privileges, edit ...
2
votes
2
answers
3k
views
How to filter product with salable filter in magento2
In magento 1 ,
$products = Mage::getModel('catalog/product')->getCollection();
$products->addAttributeToFilter('status', 1); // enabled
$products->addAttributeToFilter('type_id', 'simple');
...
2
votes
0
answers
273
views
Magento 2 - How to add new action type in shopping cart rule
I want to add New action type Name = Buy 1 get 1.
If anyone gets 1 product and cart rule condition true then I give one free product to that order.
How to add the new action to cart rule. and how to ...
2
votes
2
answers
4k
views
Programmatically updating quote items in Magento2
I'm trying to update quote programmatically.
In controller file:
public function execute()
{
$id = 298;
$params['id'] = 298;
$params['product'] = 6765;
$params['...
2
votes
1
answer
74
views
How to override template in Magento2?
In my custom module I have overwrote the file
app/code/Magento/module-checkout/view/frontend/layout/checkout_cart_item_renderers.xml
For overriding cart page
with the following code:
<page ...
2
votes
1
answer
176
views
Class 'SessionHandler' not found
After install Magento2.2 using the .tar into a nanobox and setting up via /setup, the admin page and home page give an error
Fatal error: Class 'SessionHandler' not found in /app/vendor/magento/...
2
votes
0
answers
224
views
Time save in db in magento2?
I 'm able to get gmtDate.But,I can't not save that in db.How to save gmt time in database?
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
use Magento\Framework\Stdlib\DateTime\DateTime;
use ...
2
votes
0
answers
942
views
Magento 2.1 and PHP 7.0.8 work extremely slow
I had Magento 2.0.4 instance running on vagrant machine:
CentOS 6.5
PHP 7.0.1
MySQL 5.6.31
I've upgraded to 2.1 with composer but then when I tried to run
php bin/magento setup:upgrade
I get ...
1
vote
1
answer
2k
views
How to increase max upload image size to 16M in Magento 2?
I modify the field values upload_max_filesize = 20M ,post_max_size = 20M and memory_limit = 2048Min the PHP.ini file of the server.
I have to upload the banner images up to 16MB on the website but it ...
1
vote
2
answers
288
views
How to add an input field with a date to the checkout page?
I'm studying Magento2, downloaded the module https://github.com/ecomteck/module-delivery-date and added it to the app / code / vendor / module-delivery-date folder
I cannot understand in which files ...
1
vote
0
answers
804
views
Magento 2.4.1 Disabling MSI Modules (responsible for inventory) after Upgrade to 2.4.1
We have a Magentoshop (2.4.1) running with elastic-search. Because there is no need of any inventory-tracking, I disabled all the modules according to the following suggestions:
https://devdocs....
1
vote
0
answers
94
views
Magento 1 configuration in .htaccess is not working
In magento
i have added the below configuration in .htaccess file
php_value session.cookie_secure 1
php_value session.cookie_httponly 1
<IfModule mod_php5.c>
php_value session.cookie_httponly ...
1
vote
4
answers
1k
views
Magento 2 - I'm upgrading magento 2.1 to 2.3.5 but compile command returning error
I'm trying to upgrade magento 2 version to the latest version by following commands
php bin/magento maintenance:enable
composer require magento/product-community-edition 2.3.5 --no-update
composer ...
1
vote
1
answer
735
views
store logo not showing in transnational order email in magento 2
the store logo is not showing in order email which was showing and uploaded in the configuration -> design ->transnational email section
1
vote
0
answers
55
views
Magento2 - override extension template
The project using an extension called 'Amitshree'. I need to override an email template file (filename.html) created in this extension in my project.
I need a step by step solution because I am not ...
1
vote
1
answer
162
views
Customer Navigation Links reordering not working
I am trying to re-order customer account navigation links.
And I have tried out the below 2 approaches:
Using move
File Path: \design\frontend\DasLeben\porto\Magento_Customer\layout\...
1
vote
2
answers
3k
views
How to upgrade friendsofphp/php-cs-fixer?
Server: CentOS 7
PHP: 7.3.13
Litespeed: Enabled
Magento: 2.3.3
I was attempting to run some updates via composer when I received an error about my PHP being too high.
I attempted to upgrade php-cs-...
1
vote
0
answers
594
views
Add to cart goes 404 redirect in Magento 2
After clicking on add to cart of any product.
It goes to 404 page. But when i cleared cache page its working fine and product added to card and cart page is totally working fine but after some day ...
1
vote
0
answers
113
views
Help - Magento 1.9 - How to do Observer should be trigger before place an order?
After calculated grand total in checkout page observer not trigger,
Observer :
app\etc\modules\Gta_RestrictProductByCountry.xml
<?xml version="1.0"?>
<config>
<modules>
...
1
vote
0
answers
214
views
Magento 2.3.1 Frontend stock not correct after sql update
I'm updating stock via SQL update along the lines of below website https://www.danjoseph.me/2017/01/12/magento-2-database-level-inventory-management/
The price and qty is updated and visible in ...
1
vote
0
answers
28
views
How to set parent order value into edit order in magento2?
I have set the custom value in quote and order table using "sales_model_service_quote_submit_before" event.
In edit order, I want to set the custom field value from parent order.
How to do that
...
1
vote
3
answers
906
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 ...
1
vote
1
answer
171
views
UPS - Malformed XML on shipping rates request
inside the shipping.log file i can see this error:
The XML document is not well formed
After some digging I see that my Auth information are not well encoded.
It works perfectly when I write them ...
1
vote
0
answers
103
views
Get out of stock product collection in magento2
I want to get the wishlist collection for the customer.
$this->wishlist->create()->loadByCustomerId($this->session->create()->getCustomerId(), true)->getItemCollection();
How to ...
1
vote
1
answer
423
views
How to add alert box in admin form
I want to add the confirm box while click save button in magento2 admin form.
How to do that.
Thanks.
1
vote
0
answers
206
views
How to add pager limit in core file in magento2?
I want to add some condition for pager in order collection.
In Magento\Sales\Block\Order\History.php;
protected function _prepareLayout()
{
parent::_prepareLayout();
if ($this-&...
1
vote
0
answers
43
views
Magento 2: How to show shipping amount without refreshing my cart page?
I try to bring the amount of the shipment from the backend without javascript. But when the cart page is displayed for the first time, the shipping amount is displayed as follows:
but when I refresh ...
1
vote
1
answer
44
views
How to set the product store view in magento2?
How to programmatically changes the product from default store view into all store view.
Thanks.
1
vote
0
answers
151
views
Insert order data from csv programatically in Magento 2.2
I have 2 different CSV files 1st has orders and 2nd have order details. I am trying to insert data into magento2 DB using Magento Models. so that my data will insert into all different tables and will ...
1
vote
0
answers
39
views
Show Product Out of Stock if Related Item Out of Stock
Is there a way in Magento 2.2.1 to mark a product out of stock if the related item is out of stock?
1
vote
0
answers
60
views
Upgrade 2.2 to 2.3 - unique situation, PHP Stuck at 7.2
So, I'm on shared hosting, which works great for me, until now. My host updated PHP CLI to 7.2.15 My magento is on 2.2.6(doesn't support 7.2.15) so I need to upgrade to Magento 2.3.
My issue is I ...
1
vote
0
answers
42
views
Multiple file uploader in magento2
By default , magento have the file upload option under customise option->option type in product form.
How to add multiple file uploader under customise option .
Thanks.
1
vote
0
answers
231
views
Magento2 : How to get value of checkbox in observer?
I will refer to previous post: Magento : How to get value of checkbox in observer?
Anyone have example of how to do the exact same for Magento 2?