Questions tagged [php-7.2]

Marks questions related to Magento on php 7.2

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

Jquery dlmenu with Ajax for multilevel click not working properly

I have a custom menu which has been created with dlmenu and ajax. For first level, it has been come the first level menu ul li through Ajax fine and after that, dlmenu is working fine and has been ...
0
votes
0answers
18 views

Sign in with Apple - A php library is required to generate a valid client_secret

While working on Sign in with Apple, I get to know that we get following. authorization: code: "caa37f685e3d94d6bacdbb34d415018d5.0.rrrtv.kQYhdbUkWCaBZciXo-K_eg" id_token: "...
0
votes
1answer
32 views

To add address edit link in existing shipping address in Magento 2 Checkout page

How to add an address edit link besides default feature,Edit link in Shipping Address in Magento 2 Checkout Page if there are multiple shipping addresses with default. That address edit link would go ...
0
votes
0answers
25 views

Google reCaptcha V.2 implementation on one page checkout payment method flow in Magento 1.9

I have been trying to add google recaptcha on magento checkout page where payment methods are toggled, I'm trying to invoke google re-captcha when a button is clicked but it goes through without ...
0
votes
0answers
20 views

Magento2 : How to send a request for a page and get the page status?

I want to check if the status of the page is not 200, then add it to the array along with the status and send it to the mail at the end of the script I can't finish the code, tell me how to implement ...
0
votes
0answers
38 views

How to setup Magento 2 in a different Apache and MySql port in Wampserver

I have different services running on Apache port 8080 and MySql port 3306 so in Wampserver I have set the Apache port as 8081 and MySql port as 3310. I can access Apache Dashboard through http://...
0
votes
1answer
41 views

Quick search filter URL Customize

http://127.0.0.1/CavendishOnline/catalogsearch/result/?q=Sift+Stone+Graphite I want to remove Plus mark in end of the URL String How to do this in Magento 2.3 community Version
0
votes
1answer
20 views

Magento2 - Product Attribute Not reindex error

I can't get SKU name for the title tag because of the not index product attribute?
3
votes
2answers
2k views

Magento 2: Failed to set ini option “session.cookie_samesite” to value “Lax” when updating to - 2.3.6-p1

We're working on updating to Magento 2.3.6-p1. Everything runs and builds properly, but we're getting an error report as well as an error logged in our System.log. The error it's throwing is in line ...
0
votes
1answer
44 views

Generate Random numbers for multiple block call

I am trying to implement custom flash toy for website. To do this I have created custom module. In custom module, I have created a block class. Block class contain the function to generate the Random ...
0
votes
1answer
15 views

Magento 2 get keys values in rest api response

{ "item_id": 191111111, "sku": "qqqqqqq", "qty": 1, "name":"asdasd", "price": 736.52, ...
0
votes
0answers
14 views

Why sending email taking too long in Magento 2 on AWS ubuntu server?

I am using the AWS Ubuntu server(PHP 7.2 installed) for Magento 2.3.5 -p1 version, It is very fast in most cases(page loading, registration, login) but when sending email via SMTP it is taking too ...
0
votes
1answer
31 views

Upgrading php version on Magento 1

I am moving from magento 7.0.3 to 7.2.33 I have a list of functions which will be deprecated with 7.2 php version. I can see there are lots of files that use the deprecated functions. I can't make ...
0
votes
0answers
172 views

Magento 2: Invoice capture programmatically not working in magento 2.2

I am trying to capture payment online but it's not capturing. I am working with Magento 2.2. Not sure why this code does not work even the same code works with the latest version of Magento. public ...
0
votes
0answers
26 views

Magento 2 moved images to S3 now getting FileSystemException

I bought https://magecomp.com/magento-2-amazon-s3.html and it moved my images over to AWS S3 without much issue, the problem now is that when new images are being uploaded to the bucket, they are not ...
0
votes
0answers
64 views

Magento 2: Add Image to the Customer Account Navigation Menu

I hope everyone is doing well! I am new to Magento 2. I would like to add Image for all the menus in "Customer Account Navigation Menu" at the top of each link. I am able to change the text ...
0
votes
1answer
33 views

Protection of variable from concurrent access

I am writing a REST API. In this API I am using a bearer token. This token has a longer expiry time. i.e., several minutes and should be reused until it expires. My REST API may get called concurently ...
0
votes
1answer
96 views

How to remove the footer in compare product print page in magento2

Currently, Our compare product print page showing the footer section on that. I want to remove the footer link in compare product print page. How to do that. Thanks.
0
votes
1answer
148 views

Magento2.3 - Fatal error: allowed memory size of 536870912 bytes

Migrate from one server to another server. I have a big problem with this because I cannot understand the logic on it. Magento 2.3.2 and php 7.2 Fatal error: Allowed memory size of 536870912 bytes ...
0
votes
1answer
247 views

How can I override magento 2 Model Bundle Indexer Price?

I'm trying to override magento 2's default bundle indexer price : Magento\Bundle\Model\ResourceModel\Indexer\Price I created a module Abc_Bundlecstm with the following di.xml : <?xml version="...
0
votes
1answer
138 views

Magento 1.9.4 Session Error with PHP 7.2

I upgrade PHP from 7.0 to 7.2 for magento 1.9.4.2 using redis session storage. But it's tack much time for session connection and got below session errors in log file. 1. PHP Fatal error: Uncaught ...
0
votes
0answers
50 views

Set max execution time for a magento php command

I've implemented some custom php commands for magento 2.3 and I've found a weird issue. The scripts doesn't seem to reset the max_execution time, I've set both from inside the script ( ini_set ) and ...
1
vote
1answer
631 views

Attachement Upload (Uncaught SyntaxError: Unexpected token < in JSON at position 0)

If I want to insert a file, into the product, I get the following error message in the console. Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) ...
1
vote
3answers
368 views

How to add default head block in default.xml

I want to add default head block in default.xml file. so if anyone have idea about it then please send me the solution.
0
votes
1answer
523 views

Porto theme issue in magento2.3

I have created the local setup from the live server. After that, I have copied the theme files like Porto and porto_rtl from the live server and pasted it on the local setup. Then run all the command....
3
votes
1answer
142 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
1answer
96 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 ...
0
votes
0answers
57 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
1answer
67 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
989 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
102 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
51 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
792 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/...
1
vote
1answer
35 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
312 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
2answers
1k 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
77 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
33 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
53 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
1k 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
47 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
161 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
155 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
629 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-...
1
vote
1answer
104 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
802 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
2answers
2k 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 ...
1
vote
1answer
286 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 ...
1
vote
1answer
236 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
214 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 ...