Questions tagged [php-7.2]

Marks questions related to Magento on php 7.2

Filter by
Sorted by
Tagged with
2
votes
1answer
35 views

Database schema related change reverted

I have one of my Magento 2 projects running with version 2.3.3. There are so many simple products for one single configurable product and as a result, there is an issue with the length of the SKU. To ...
0
votes
0answers
8 views

how to install plain magento (docker not supported) on windows ? php storm

how to install plain Magento 235 (docker not supported) on windows 10- with xampp ? Nothing I found on the internet is working in 2020 - PHP storm env I need it in dev mode for debugging
0
votes
0answers
22 views

Magento 1.9.4.5 - Issue with php 7.2 and onestepcheckout

I'm using Magento 1.9.4.5 and php 7.2 and i get the below error after user completes order. FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to ...
0
votes
0answers
10 views

Eway Payment Gateway Not work in Magento 2.3.0

I am facing error {"error":"Error happened when getting access code, please try again later"} AND http://cityflowersales.com/rest/default/V1/carts/mine/payment-information 400 as I am using eway 3.0.5 ...
0
votes
0answers
20 views

Magento2: How to output the contents of an entire JS file into a phtml file?

I defined a function in a block class as below to return the contents of an entire custom JS file, the path of which is stored in $absolute_custom_js_file_path . What is the right PHP function to be ...
0
votes
0answers
7 views

Undefined offset: 2 inpublic_html/lib/internal/Magento/Framework/Encryption/Encryptor.php on line 588

I am getting this error while I am trying to login my account in Magento. it was working in aws server recently i changed my server to cpanel after that i am getting this error. i am using magento 2.3....
0
votes
1answer
20 views

Restrict Compare Products for Guest

I want to restrict compare products for guest when guest compare 3 products. How can i do that ? I tried the following code but not worked for guest. It is working for registered users only. In My ...
0
votes
1answer
45 views

Uncaught TypeError: Argument 1 passed to Magento\Catalog\Block\Product\ImageFactory::getRatio() must be of the type integer

I have this error in product page after upgrade to magento 2.3.4 from 2.2.6 php 7.2 [20-Apr-2020 15:39:48 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Block\Product\...
0
votes
1answer
31 views

Moving from Hostgator Magento 1.9.3.3 to Digital Ocean Magento 1.9.4.4

I am trying to move away from a HostGator VPS to a Digital Ocean VPS and also upgrade my Magento version in the meantime. I have a very basic knowledge of VPS and the LAMP stack. So on Hostgator, I ...
0
votes
2answers
35 views

Warning Count Magento 2.2 & PHP 7.2

I receive the warning after upgrading to PHP 7.2 while running magento still in 2.2. Warning: count(): Parameter must be an array or an object that implements Countable in /vendor/magento/module-...
1
vote
1answer
125 views

Magento 2.3.4 custom module - Uncaught Error: Call to a member function setData() on boolean

I've got a custom Magento 2 module that is causing issues on newly created products. All of the existing ones seem to be okay. I'm running Magento 2.3.4 in my template: /app/design/frontend/MySite/...
0
votes
0answers
18 views

Magento2 - Maintenance page for cloud

I want to show the custom page while running the Magento commands like (upgrade, di: compile, deploy) on the cloud server. I have referred to the below URL. https://devdocs.magento.com/cloud/cdn/...
0
votes
1answer
29 views

Magento2 - Maintenance page

I want to show the custom page while running the Magento commands like (upgrade, di: compile, deploy). How to do that. Thanks.
1
vote
0answers
75 views

Magento 2.3.4 magento blank and luma theme less compilation error

After updating to Magento 2.3.4 from 2.2.6 on my staging server with nginx server and php7.2 I am facing issue in compiling less and css files. The files styles-l.css and styles-m.css are missing - ...
0
votes
0answers
29 views

Magento 2.3.3. tax not included in credit memo

We are running on Magento 2.3.3. PHP 7.2. The starting point is an order where a cart price rule was applied that reduced product price (was 3,00) AND shipping (was 2,00) to zero resulting in a total ...
0
votes
2answers
176 views

AJAX IN MAGENTO2.HOW TO ADD information from form IN DATABASE?

I already have a form and controller action, that send data without using ajax.How to do it with AJAX? I would appreciate your help! view/frontend/templates/reviews.phtml <form action="<?...
0
votes
3answers
41 views

Magento Performance Down sometimes

I am trying to optimise Database and Code because some time its going not well, I saved session in database so when database size are increase My site performance is also bad. Also I need to handle ...
0
votes
2answers
30 views

output information from the database magento 2

/Block/Reviews.php <?php namespace Training\Reviews\Block; use Training\Reviews\Model\ResourceModel\Reviews\Collection; use Magento\Framework\View\Element\Template; class Reviews extends \...
1
vote
1answer
34 views

Fatal error: Uncaught Error: Call to undefined method Training\Reviews\Model\ResourceModel\Reviews\Collection::addAttributeToFilter()

I want SELECT COUNT (*) FROM name_table WHERE result LIKE 'likes%' to be executed, and a numeric value is displayed on the page.How do I do it? I'm a beginner. I'll be very grateful for your help! /...
1
vote
2answers
183 views

Fatal error: Uncaught Error: Call to a member function select() on null.Magento2

<?php $connection = $this->getConnection(); $select = $connection->select(); $select = $model->getCollection() ->select() ->count() ->from($this->getDbPrefix() . '...
0
votes
1answer
19 views

Magento 2: Error 500 with correct Password in Magmi.ini with PHP7.2

My question relates strongly to Magento 2: Error 500 with correct Password in Magmi.ini However I am not running PHP 7.1 but running PHP7.2.27 on centos 6 but still getting the sodium crypto error ...
0
votes
1answer
58 views

Magento 2.3.4 ImageMagick 7.0.9-20 Q16 issue

Just testing upgrade form 2.3.3 to 2.3.4 and noticed there is an issue with ImageMagick display of product images. On category pages, some images are missing and on product view page no images are ...
1
vote
1answer
92 views

Why phpseclib takes time in magento 2.3.3?

Recently we have upgraded Magento 2.2.8 to 2.3.3 and PHP 7.2.11, post that we are facing more performance issues. When we put site in maintenance mode phpseclib related changes keep takes time. ...
1
vote
1answer
174 views

Magento 2.3.3 on Centos 7 with Nginx using composer - Website not working?

Following tutorial : https://devdocs.magento.com/guides/v2.3/install-gde/composer.html After download magento by using, composer create-project --repository=https://repo.magento.com/ magento/project-...
0
votes
1answer
38 views

Magento 2.3.3 invalid form key frontend

Last days I have this strange issue in my Magento instance. When you are in front end catalog category page and press store view link, Magento changes to the right store view but you get message ...
1
vote
1answer
178 views

Sorting attributes are not working Magento 2.3

I'm trying to apply sorting from the toolbar on listing page, but none of the sorting properties like price, new, name etc. are working. As you can see I have applied sort by price, but it's not ...
1
vote
0answers
158 views

We can't find products matching the selection in magento 2.3

On every listing page, I'm getting We can't find products matching the selection. I followed this also but dint helped We can't find products matching the selection. I'm attaching a screenshot for ...
0
votes
0answers
27 views

Detail page product zoom not working properly magento 2.3

I'm facing difficulties in product magnifier on the product detail page. Like on mouse over to product image it is more showing other parts of the image. I'm attaching a screenshot for your reference ...
1
vote
1answer
91 views

Cash on delivery not showing on payment page in Magento 2.3

Cash on delivery payment method not showing on the payment page. I have enabled it from backend but it's still not showing. All Other payment methods are working except COD. I have gone through this ...
0
votes
0answers
108 views

Issue with categories on Magento 2.2.10 Porto Theme demo 19

I have a very strange issue when I create a new subcategory inside the default category in Magento 2.2.10 Porto Theme demo 19. After I enable the "include in menu" button, it does not show on the ...
1
vote
1answer
82 views

Read a category attribute from title.phtml in Magento 2.3

I have found a lot of examples on how to create an extra attribute for the categories. I want to create a text field for adding a different H1 - instead of using the category name as the headings, on ...
0
votes
1answer
110 views

Getting all the listing page blank in Magento 2.3

I installed Magento 2.3 on my local system, but ongoing to the listing page it's showing blank. I have checked the error log, exception log, system log, debug log but nothing are there. I tried this ...
0
votes
1answer
111 views

Magento 2 - php 7.2 - The each() function is deprecated in AbstractCollection.php

I am getting below error in Magento 2.1 using PHP 7.2. main.CRITICAL: Exception: Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls in /...
0
votes
0answers
26 views

Magento 2.1.9 Admin Menu Empty

As you can see below the admin interface just doesn't have any Buttons. I already tried clearing the static folder and switching in the app/etc/di.xml “Magento\Framework\App\View\Asset\...
0
votes
1answer
368 views

Cant install Klarna on magento 2.3.2

I tried to install Klarna in my Magento 2.3.2 website using composer trollweb. I kept getting errors as the klarna checkout was not working. In the end, I used mage2pro klarna to set it up Is there ...
1
vote
1answer
318 views

Exception #0 (Exception): Warning: count(): Parameter must be an array or an object that implements Countable

On Magento 2.3.2 I switched from php 7.1 to php 7.2. When I did I started getting this error- Exception #0 (Exception): Warning: count(): Parameter must be an array or an object that implements ...
0
votes
0answers
15 views

What are the chhanges to keep in mind while applying Magento php7.2 patch in Magento 1.9?

What are the possible things to keep in mind while applying compatible patch for PHP7.2 in magento1.9?
0
votes
0answers
22 views

Magento 1.9.2.4 Eval() function generating error in third party extension after upgrading php verion to 7.2

I have installed php 7.2 official patch and then upgraded php version to 7.2 but I am having issue in third party extension . Eval function is used in extension and its depreciated in php 7.2 ...
0
votes
1answer
340 views

How to fix “Unable to unserialize value. Error: Syntax error” Magento 2.3.2

Hello, Guys! I get this error, please help me solve it... String value: a:1:{s:14:"logotype_image";s:57:"/frontend/Alias/mysite/web/images/logo_grey.svg";} And json_last_error = 4 The string ...
2
votes
2answers
70 views

Call Custom function after binding customer name in magento2?

I have updated the customer name using ko. After binding customer name, I want to add one custom class. <li class="customer-welcome"> <span class="customer-name" role="...
3
votes
1answer
103 views

PHP 7.X vulnerability and Magento 1.7

As many of you know there are multiple vulnerabilities that pertain to PHP 7.1, 7.2, and 7.3. I currently run PHP 5.6 with Magento 1.7. I am pretty confident that 1.7 does NOT support any of the ...
0
votes
1answer
39 views

Magento 2: How to differentiate the app and web based orders?

How to identify whether the order is placed from an app or website? I want to add one custom column in admin sales order grid. And the column displays the values for order source(app or website order)...
0
votes
0answers
89 views

PayPal Issue: Field format error: ORIGID missing when trying to “Accept Payment”

We are on Magento 2.3.2 and ran into an issue with the PayPal fraud protection flags in Magento. So anything we so through the Payflow Pro a, it's tagged with "Suspected Fraud" So when we go to ...
0
votes
1answer
32 views

Magento2: Get Quote details in view page

I can't get the current quote in the Product view page. I have 3 items in my cart. I have used both files. use Magento\Checkout\Model\Session; use Magento\Checkout\Model\Cart; $quote = $this->...
0
votes
1answer
24 views

Magento2: How to display most view product collection in home page?

I need to display product collection in home page in magento2. Thanks.
0
votes
1answer
93 views

Magent2.3.2 Installation process,PHP extension issue in Ubuntu18.04

In magento2.3.2 installation issue : 'PHP Extensions Check 3 missing PHP extensions' PHP Extension bcmath. PHP Extension intl. PHP Extension soap. I installed PHP in ubuntu18.04 through this ...
0
votes
1answer
230 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
0answers
131 views

Magento 2.3.2 Unsupported operand types indexer

I'm using a custom module in magento 2.3.2 In one of my php files I have this code: $queryResult = $client->search($requestQuery); $offset = $queryResult['hits']['total']; if (!$offset) { ...
0
votes
1answer
104 views

Magento2: How to display out of stock product in wishlist

How to display out of stock products only in the wishlist. How to do that. Thanks.
2
votes
1answer
867 views

Magento 2.3.1 - Issue with catalog search when using php7.2-fpm

When we search any string from the search text box, We have encountered a 500 server error into the search result page in our live web site or search page getting blank. When we check in logs or ...