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
1answer
21 views

How can I check selected products retrieved from database in my product grid

I am working on a custum module where I want a user to select some products. Select and saving is working well. Now I want to check those product grid when user click on edit option. Here is the ...
1
vote
0answers
18 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
16 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.
0
votes
0answers
31 views

Php Mysql one table username where password length is 60 what md5 or function don't know [on hold]

Php Mysql one table username where password length is 60 but i dont know what is function length is 60 . and i forgot my password. so my question is like i have created new user but which function ...
1
vote
0answers
12 views

Magento 2: How to pass an existing module in the vendor, to the application folder?

I want to pass a module from the vendor folder called "module-checkout" to the application folder. But every time I try to register this module to the application, I get an error that says that the ...
2
votes
1answer
32 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
51 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
18 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
33 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
68 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
48 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
16 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
2answers
380 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
25 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
17 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
19 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
238 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
26 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
72 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
0answers
14 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
41 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
24 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 ...
4
votes
2answers
300 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 ...
1
vote
2answers
64 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 ...
1
vote
1answer
62 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 ...
0
votes
1answer
36 views

How to add footer template in Magento 2?

How to add footer template only for product view page in Magento 2? Thanks.
1
vote
1answer
36 views

How to add loader untill the image not ready on page load

I want to show the image in particular div. I want to show the empty div . if the img src is ready , then it display the img tag in particular div How to do that? Thanks.
0
votes
4answers
225 views

Notice: Undefined offset: 0 in /vendor/magento/module-customer/Ui/Component/DataProvider/Document.php

I am having this error when trying to export csv file with customer fields from Magento 2.2.5 admin: 1 exception(s): Exception #0 (Exception): Notice: Undefined offset: 0 in /var/www/html/vendor/...
1
vote
2answers
30 views

Getting Error while calling a block `$_product->$_call()`

Fatal error: Uncaught Error: Method name must be a string in D:\xampp-7.1.23\htdocs\indiahicks\app\design\frontend\Mgs\ethan\Magento_Catalog\templates\product\view\form.phtml:19 <?php $...
1
vote
1answer
13 views

Grid (Serializer Grid) skip one record while loading

I am loading a serializer grid with record but it skips the very first record it is returning array correct Code for my grid is working like this ->it loads the answer related to a question. ->the ...
1
vote
2answers
134 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.
3
votes
1answer
150 views

Magento 2 : How to get the best seller product collection?

I'm trying to get Best Seller Product collection using below code, but it will not display any data $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $productCollection = $...
2
votes
1answer
358 views

How to create new product slider in home page in Magento 2

I want to create a new product slider in home page of my website without using external extension.
-1
votes
2answers
56 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
0answers
46 views

Product is not updating in Magento 2

I am getting an error while updating a product Warning: trim() expects parameter 1 to be string, array given in D:\xampp-7.1.23\htdocs\indiahicks\vendor\magento\module-eav\Model\Entity\...
0
votes
1answer
84 views

Magento 2 : How to get Custom Field Image Icon url from admin catalog category page?

Below is my code to display custom field in catalog category form. category_form.xml file <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
0
votes
1answer
44 views

Unable to load the collection in DataProvider by matching values in array

I am trying to fetch Collection of specific ids by using filters in my custom DataProvider public function getData() { $id =$this->request->getParam('id');//returns 5 $answerids=$...
1
vote
5answers
51 views

What are the best way to customize Magento 2 core

How I can customize Magento 2 core module? Can I create new module or override core modules?
0
votes
0answers
62 views

cannot update php on ubuntu 16.04 from php7.1.2 to php 7.1.3

I have a magento 2.2.2 and want to update to magento 2.3. The problem is my version of php. Currently I have php7.1.26 while magento 2.3 is compatible only with php 7.1.3+. The solution seems easy: ...
1
vote
1answer
172 views

Magento 2.3 Upgrade : Undefined class constant 'WYSIWYG_EDITOR_CONFIG_PATH' in vendor/magento/module-ui/Block/Wysiwyg/ActiveEditor.php:56

After Upgrading from Magento 2.2.7 to Magento 2.3, I am getting this error Undefined class constant 'WYSIWYG_EDITOR_CONFIG_PATH' in admin and frontend. Received this issue right after upgrading. The ...
0
votes
0answers
31 views

Magento 2.2.5 Class 'IntlDateFormatter' not found

I'm running ubuntu 18.04, using php7.0 and i get this error even though i installed all the extensions while installing magento, is there anyway to fix this, php -i | grip intl shows /etc/php/7.0/...
0
votes
0answers
8 views

Customer Profile Issue on Magento 1.9.3.10 CE

We had Centos 7, we request the hosting for CloudLinux, they said they installed it over CentOs 7. To say CloudLinux7 - Cpanel, Apache + Nginx with PHP-FPM, Php 7.1 and MaraidDB are serving this ...
0
votes
1answer
24 views

Fetch all the students on the basis of ascending marks

This query fetches all the student name and there ids on basis of topics but i want to get these result on basis of ascending marks ... i.e select student_name and ids where student_topic = topic but ...
0
votes
0answers
24 views

How to add radio button in ui modifier

I want to add radio button using ui modifier return [ 'arguments' => [ 'data' => [ 'config' => [ 'label' => __('...
0
votes
0answers
97 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
2answers
69 views

Upload image in custom option

I want to add the file uploaded in custom option (adminend). In CustomOption modifier: return [ 'arguments' => [ 'data' => [ 'config' => [ ...
0
votes
0answers
18 views

How to add swatches in custom option in magento2

I want to change the radio button into swatches for custom option in magento2 How to do it Thanks.
0
votes
3answers
36 views

How to add css in header in magento2

I want to include the css for product view page In catalog_product_view layout: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:...
0
votes
1answer
48 views

upgrade from Magento 2.2.6 to 2.3 Invalid or uninitialized Zip object

I am trying to upgrade from Magento 2.2.6 to 2.3 php bin/magento deploy:mode:set developer php bin/magento cache:disable php bin/magento maintenance:enable composer require magento/...