Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php-7]

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

0
votes
0answers
9 views

How to get total amount of reviews belongs to one category? [Magento 1.9]

I am trying to generate SEO rich data in Magento category page or listing page. I just don't understand how can I get the total amount of reviews that category got. I don't want to slow down the ...
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
21 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
21 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
32 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
24 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
39 views

Magneto 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
44 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
17 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
22 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/...
3
votes
2answers
86 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
27 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 ...
0
votes
1answer
29 views

Magento2 after installation error (Exception log)

I have installed magento 2 and after first excetion i get error as below. [2019-05-16 08:16:50] main.CRITICAL: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.core_config_data' ...
1
vote
0answers
17 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
50 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
32 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
14 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
45 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
31 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
129 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
53 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
50 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
22 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
46 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
21 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
23 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
1answer
99 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
73 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
49 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
71 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
113 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 ...
0
votes
0answers
32 views

Magento 2 : How to get selected record from ui form fieldset listing grid in controller?

I have created one UI form with UI grid. When I get params in controller I can not get selected row of UI grid. How to do that? Here is my UI Component layout file. <fieldset name="other_field"&...
2
votes
3answers
2k 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 ...
1
vote
1answer
30 views

Magneto2 : What are the Tables effected when an order created

I am creating custom attributes and magento 2.2.6 and I just want the list of the tables effected after an order creates successfully.
0
votes
0answers
53 views

I am trying to Create a product Grid in My custom Module Admin Form

I am trying to add a product Grid in My custom Module I searched a internet and found this Solution Magento 2 : How to add product grid in custom module's tab Now there is a function in this ...
1
vote
0answers
23 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?
3
votes
1answer
295 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/...
3
votes
1answer
30 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 ...
1
vote
1answer
23 views

Are Magento Object propertyNames that are prefixed by “_” different from ones that aren't?

what does this tell me ? Is there a place in the devdoc's I wasn't able to find or is this a convention I don't know about? thanx for your help...
1
vote
2answers
89 views

Magento Api request foreach error

I am trying to get attribute option Ids for a sku using this below api call. http://localhost/rest/V1/configurable-products/sh8/options/all I used this curl request: $curl = curl_init(); ...
0
votes
1answer
20 views

Multi store URL's of wrong store with GEOIP extension

I am using Magent0 2.0.6 PHP 7.0.32 I have multiple store views: - Dutch - English - French And have GeoIP extension installed that check user's IP and redirect to matching store. But on the ...
1
vote
0answers
42 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 ...
0
votes
1answer
38 views

Magento does not create cache, reports and logs

I noticed that my magento onlineshop does not create any files in var/cache, var/report and it does not report anything to the logfiles in var/log. The var directory has the permissions drwxrwxr-x ...
5
votes
2answers
381 views

Which php.ini is used on my system?

I'm using Magento 2.3.0 with PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS ), and I'm not sure which is the php.ini file that I should modify. I am currently modifying these ...
0
votes
2answers
170 views

how to create a attribute programmatically in magento2

I need to delete the existing attribute called Manufacturer if this attribute exists. And then Create a new attribute called Manufacturer with the same properties as that of the existing one.its ...
2
votes
1answer
101 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 ...