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

1
vote
1answer
21 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.
-1
votes
3answers
24 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/...
0
votes
2answers
23 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
10 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
48 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
34 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
188 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.
0
votes
2answers
35 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
40 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
0answers
17 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
41 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=$...
0
votes
5answers
45 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
28 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
36 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
24 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
16 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
20 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
70 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
0answers
31 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
16 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
35 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
39 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/...
1
vote
2answers
57 views

Override block in magento2

I want to override getCustomizedOptionValue function in Magento\Sales\Block\Adminhtml\Items\Column\DefaultColumn In etc\adminhtml\di.xml: <preference for="Magento\Sales\Block\Adminhtml\Items\...
0
votes
0answers
31 views

How to get payment data in magento2

I have override Magento\Payment\Block\Info\Instructions block file for admin order. How to get the payment data in this file. Ideas welcome.
1
vote
1answer
56 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
0answers
38 views

Add custom text in magento2 [duplicate]

I want to display the custom text under payment method(admin order). How to display the custom text under payment method in below layouts sales_order_view.xml sales_order_invoice.xml ...
0
votes
2answers
79 views

Magento2 : How to add Custom Block?

How to add custom block under payment method(admin order invoice)
0
votes
1answer
55 views

Free Shipping Problem with Magento 1.9.3.10 and PHP 7

I am in the process of upgrading a Magento 1.8.1 installation to ver 1.9.3.10 on a development server with PHP 7.0 using the blank template. Everything seems to work fine except during checkout, if I ...
1
vote
2answers
40 views

How to get the custom option in magento2

I have created custom field in custom option by using custom option, custom fields I want to get my custom option from $block->getOption(); But my custom field not added in the list .. Thanks.
1
vote
0answers
18 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.
0
votes
1answer
22 views

How to remove block in view page in magento2

I need to remove social shares from product view page in magento2
0
votes
2answers
64 views

How to remove the stock status in magento2

I need to remove the stock status for particular product type in admin product form. Thanks.
2
votes
1answer
116 views

How to create a new product type in magento2

I have created new product type in magento2 using https://www.classyllama.com/blog/custom-product-types-magento-2. After the i can't see any product info in view page.. It only display the Images tab ...
0
votes
1answer
648 views

Warning: Use of undefined constant MCRYPT_RIJNDAEL_256 - assumed 'MCRYPT_RIJNDAEL_256'

I have setup magento 2.2.6 website on local system. PHP Version 7.2.12 installed on the local system. When I have run url on local system then getting error: [2018-12-12 06:51:27] main.CRITICAL: ...
2
votes
3answers
546 views

Magento 2.3 installation PHP requirement

I'm trying to update Magento 2.2 to version 2.3 using this command: composer require magento/product-community-edition=2.3.0 When doing so, I receive the following error: Loading composer ...
0
votes
0answers
20 views

How can I increase the speed of my Magento website?

I have a system in magento ready and running, but the speed of the web is not very good. Here you can see a sample of how the web works: https://developers.google.com/speed/pagespeed/insights/?url=...
0
votes
0answers
16 views

Magento Can't generate cache folder for catalog product

there is issue with catalog product images on server. I have uploaded image for newly created product but it doesn't show up on frontend. I checked path at pub/media/catalog/product/cache but there ...
0
votes
1answer
19 views

How to get memory_limit to be recognized by Magento when doing readiness test

I have had a terrible time getting extensions installed due to a readiness check. Magento fails to recognize that I have changed the php memory_limit figure. This post applies but doesn't work. It ...
1
vote
1answer
22 views

Difference between class constant and class static variable with array as a value in php7?

Example: class Test { const URLS = [ 'http://example.com/', 'http://example1.com/' ]; public static $urls = [ 'http://example.com/', ...
0
votes
1answer
27 views

Magento 2.1 adjusting memory_limit on shared hosting

I have Magento 2.1.3 setup on Godaddy shared hosting and after much struggling around with php.ini files, the web host has decided that Magento is showing the global memory limit (512MB) on the server ...
0
votes
2answers
131 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. ...
1
vote
4answers
1k views

Error Magento 2.3.0 upgrade ( php requirement )

I'm upgrading Magento from 2.2.7 to 2.3.0 from composer. Running in sequence php bin/magento maintenance:enable composer require magento/product-community-edition 2.3.0 --no-update composer update ...
0
votes
0answers
134 views

Magento 2 Session issue

I have moved my Magento code base to another folder and I have upgraded the php version to php7. Now I am facing the following error. SessionHandler::read(): Session data file is not created by ...
2
votes
1answer
34 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??
1
vote
0answers
28 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?
4
votes
3answers
583 views

What type of redirect is this?

While i'm studying a line of code in magento vendor file I found this code $resultRedirect->setPath('*/*/'); What does this '*/*/' means and where does this redirects. I hope will get ...
0
votes
1answer
119 views

Magento 1 with Php 7.2, add to cart error if product have option

I have Magento 1.9.3.10 with the patch for PHP 7.2 applied. If I click "add to cart" on a product that has options and no options are selected, I get this error: Exception: Warning: count(): ...
1
vote
2answers
114 views

Passing magento username and email variables into js script (Magento ver. 2.1.8)

<!-- Head --> <script src="https://wchat.freshchat.com/js/widget.js"></script> <!-- Head --> <script> window.fcWidget.init({ token: "WEB_CHAT_TOKEN", host: "...
0
votes
0answers
28 views

Parsing html code with html error problem

I am getting this kind of exceptions in my exception.log . i have no idea where it comes from. main.CRITICAL: DOMDocument::loadHTML(): Unexpected end tag : br in Entity, line: 1 {"exception":"[...