Questions tagged [php-7]

Use this tag when you have problems very specific to PHP7 because of for example BC breaks

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Magento 2 URL Rewrites Very Slow

Setup Dedicated Server Intel Xeon E3-1230 v2 2 Core 16 GB RAM Linux Centos PHP 7.1 APACHE 2.4 I have a site in Magento 2.2.6 which I am trying to do a full URL rewrite of category and products for 1 ...
0
votes
0answers
20 views

Magento 2 LocalHost, Admin Panel error js and disappeared Setup Wizard button

After several days of testing and testing, I ask for help. 3 Problems. The theme in local is no longer the one purchased (The default one appears) The Accordian does not work on the Admin panel The ...
0
votes
0answers
24 views

Magento2: Coupon code removing issue after merging quote

I have created a custom column 'discounted_total' in quote_address table for discount calculation. use Magento\Quote\Model\Quote\Address\Total\AbstractTotal; use Magento\SalesRule\Model\CouponFactory;...
0
votes
0answers
18 views

Attribute code error: null value - how to find which attribute code?

We ran into this exact error: Certain Magento Pages returning HTTP Error 500 after a payment was done with PayPal Express Checkout (PayPal redirects to our website after the transaction is completed, ...
0
votes
0answers
33 views

Fatal error: Uncaught Error: Call to undefined function Magento\Framework\Event\mb_strtolower() in magento 2

when i run cli commends I'm getting error Fatal error: Uncaught Error: Call to undefined function Magento\Framework\Event\mb_strtolower() in /home/project/public_html/vendor/magento/framework/...
0
votes
0answers
21 views

DateTime error on Get Transaction Details request with Authorize.net extension

I am using extension from Authorize.net for payment methods. Everything looks pretty good on testing with sandbox but I am getting errors once launching this extension on live. First everything ...
0
votes
0answers
31 views

Undefined property: DOMDocument::$documentElement in Magento 2

Notice: Undefined property: DOMDocument::$documentElement in /var/www/html/projectnenny/vendor/magento/framework/Config/Dom.php on line 148 Fatal error: Uncaught TypeError: Argument 1 passed ...
1
vote
1answer
27 views

Magento2: How to get the old qty of product?

How to get the available qty of the product before saving the product with new qty in magento2. How to do that. Thanks.
2
votes
1answer
130 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 ...
1
vote
0answers
25 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 ...
2
votes
1answer
26 views

Magento2: Production Critical Error on Cloudinary

I am trying to run the setup:upgrade command I get the following error PHP Fatal error: Uncaught Error: Call to a member function getCloud() on null in /var/www/asprod/vendor/cloudinary/...
0
votes
0answers
10 views

Magento2: How to perfill the color in view page

I want to prefill selected color in product view page from category page. How to do that. Thanks.
0
votes
0answers
26 views

I am getting this error when I click on edit customer in the admin back-end panel

I am getting this error when I click on edit customer in the admin back-end panel
1
vote
2answers
39 views

How to add text box in configurable product page in magento 2?

Just like shown in image above.Is this possible with magento dashboard functionality.
2
votes
0answers
26 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 ...
0
votes
1answer
23 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.
0
votes
0answers
11 views

Replace php function not working as it should

This has been asked many times but still having the issue In magento email templates, on fly am trying to change storename, storeemail and phone number. Everything is working fine but am having issue ...
0
votes
0answers
54 views

ALTER TABLE `customer_group` MODIFY COLUMN `customer_group_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT

PHP version : PHP 7.1.3 Magento Version Magento 2.1.16 I tried to upgrade the Magento from 2.1.16 To 2.3.1 and I face this issue. Query Executed during update: ALTER TABLE customer_group MODIFY ...
0
votes
1answer
32 views

Magento 2.1 adminhtml Action 'Edit' give 404 while Index works

Update: Here is what the Developer Toolbar gives me on the 404 page: Mode: Developer Controler Module: Magento_Backend Controler Class: Magento\Backend\Controller\Adminhtml\Noroute\Index ...
0
votes
2answers
37 views

Magento 2: php version issue

on my ubuntu 16 server i have installed php and it show version PHP 7.1.30-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: May 31 2019 11:43:14) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend ...
0
votes
0answers
46 views

Show Pincode/shipping availability checker in magento 2 header

I have implemented Pincode checker in Magento 2 product detail page by creating a custom module, but I need to show it in the header section and hide it from the product detail page. How can I achieve ...
2
votes
1answer
44 views

Magento filter Collection by Date attribute value [closed]

I would like to know. How can i filter collection by attributes specially When Catalog Input Type for Store Owner is DATE. Each product will have a future date when there stock will be set as out of ...
0
votes
2answers
47 views

Magento 1.8 Adyen Integration

I have an issue with the adyen-magento module. When the payment is successful in adyen, the order status doesn't updated in Magento, so the order is not getting processed. Even though when the payment ...
1
vote
1answer
18 views

How to get product random collection in magento2?

I want to get the random 10 products from whole product collection in magento2. $productCollection = $this ->productModel ->getProductCollection() ->...
0
votes
0answers
28 views

Magento Fatal Error on Running Installation

I am facing below Fatal Error on Magento Running installation, Fatal error: Uncaught Error: Class 'MagentoEavModelEntityAttributeSourceTable' not found in /var/www/magento/vendor/magento/framework/...
5
votes
3answers
178 views

Magento 2.3 - Topmenu tabs with wrong (cached) 'active' class

I have a small menu problem. The active tabs do not match the active class. If I disable the static_block cache it works again, so it actually looks like the menu is cached and continues to display ...
0
votes
0answers
51 views

Magento 2: Exception #0 (InvalidArgumentException): Invalid return type

Hi all! I recently wanted to migrate my store in magento 1 to magento 2, but once I finished the migration, there is a plugin that starts to fail. That plugin that is failing is "Transbank" with the ...
1
vote
2answers
98 views

Magento2 after installation error (Exception log)

I have installed Magento 2 and after first exception, I get an error as below. [2019-05-16 08:16:50] main.CRITICAL: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2....
1
vote
0answers
25 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-&...
0
votes
1answer
200 views

Magento 1.9.4 using PHP 7.3.5

Can Magento 1.9.4 run using PHP 7.3.5? I have seen a number of Stack Exchange posts to the contrary and some supporting it. I have PHP 7.3.5 installed on the server but how (if possible) do I tell ...
0
votes
1answer
52 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
2
votes
1answer
16 views

Show particular Block on the particular URL/page only

I am newcomer in Magento development, after 2 weeks I still feeling lost in the Magento 2 world. I have added following Block to the app/design/frontend/Mojambe/LuarBiasa/Magento_Theme/layout/default....
1
vote
0answers
30 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
1answer
27 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.
0
votes
1answer
104 views

Warning: session_start(): Failed to read session data: memcache

I just patched magento 1.9.3.6 to support php7.2. Now we are not able to login. Here's the error: Warning: session_start(): Failed to read session data: memcache (path: unix:///var/run/memcached-...
0
votes
1answer
32 views

Frontend not working permission issue Magento 2

I get the following error report when attempting to go to the frontend of my Magento 2 website. {"0":"Warning: SessionHandler::read(): open(\/var\/lib\/php\/sessions\/sess_9am6mqijeelnptduc1lku9qhi3, ...
1
vote
3answers
441 views

How to switch between PHP versions on Ubuntu Nginx [closed]

I have PHP 7.0 and 7.2 installed. For now, I use PHP 7.0. How can I switch to PHP 7.2?
2
votes
0answers
28 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
1answer
59 views

Magento 2 : How to set $_FILES = $file in Magento 2.3.0 with Magento Coding Standard?

I had develop one module and it works currectly But When I have check Coding standard using phpcs it will provide me Error in php coding standard --standard=MEQP2 Error is i have get result of $...
1
vote
2answers
133 views

How to Disable Module on the basis of configuration Values in Magento 2

I have created a New module in Magneto 2 Which is Working well Now I want to control the status of the module on the bases of system Configuration setting How can I do this? I have already created a ...
0
votes
0answers
23 views

How to get custom tab input value in the product edit page in Magento 2?

I have created custom tab input type but I don't have an idea how to get their value and save value with product. <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
61 views

How to show both at same time Upsell and Related Products In Product View Page Magento 2

I want to show Related and Upsell both at the same time in my product view page. I tried to change catalog_product_view.xml many times, but it displays me only upsell products not related. anyone, ...
1
vote
0answers
27 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 ...
0
votes
0answers
32 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
2answers
259 views

Save Button Redirecting to Same Admin Form in Magento 2

I am working on a custom module in magneto 2. i am creating an admin form using UI Component, when i click on save button Page redirects to its self Vendor\Module\Block\Adminhtml\ProductSliders\...
3
votes
1answer
78 views

Magento Shipping Estimation Script Not Working

PHP Shipping Estimation script (From StackExchange ) <?php //require_once("Mage.php"); ob_start(); require_once(__DIR__ . '/app/Mage.php'); umask(0); ini_set('display_errors',true); ini_set('...
2
votes
1answer
25 views

Magento 2: How to set from admin to see all the routes of my web content?

I have seen people setting something in the Admin, to see all the files routes of all the content in the store, I just want to know how to do that set. If someone can help, I would appreciate it.
0
votes
1answer
64 views

How to Fetch results from server using JQuery AJAX? on the basis of Drop-down Condition

I have two conditions, if two conditions are matching the given value should display. I am using input value as Drop down. If the value of two drop-downs matched i need to display my value on same ...
3
votes
2answers
81 views

Magento 2.3: How Magento knows that a certain patch is already executed while it didn't use any versioning?

As Magento introduces patches instead of upgrade data and upgrade schema. In earlier version of Magento upgrade data and upgrade schema works by versioning but in Magento 2.3 it only executed the one ...
0
votes
1answer
156 views

Magento 2.2.8 Redirects to Blank Pages from Contact Form and Backend Help

Yesterday I updated to Magento 2.2.8. Now, I'm having serious issues that I'm not even sure what triggers them. Firstly, yesterday, I was having issues with the SMTP (Mageplaza SMTP module) - when I ...