A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [php-7]

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

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

Uncaught Error: Call to a member function getId() on null

I am having an error in a custom module when trying to render its category tree in admin. Although you can create a category, when trying to change store view in admin I get: PHP message: PHP Fatal ...
0
votes
0answers
40 views

How to upgrade friendsofphp/php-cs-fixer?

Server: CentOS 7 PHP: 7.3.13 Litespeed: Enabled Magento: 2.3.3 I was attempting to run some updates via composer when I received an error about my PHP being too high. I attempted to upgrade php-cs-...
0
votes
0answers
32 views

Getting TypeError: $(…).AddFotoramaVideoEvents is not a function in magento 2.3.3

The image gallery is not loading on product detail page getting an error like Uncaught TypeError: $(...).AddFotoramaVideoEvents is not a function at $.<computed>.<computed>....
1
vote
1answer
39 views

“403 Forbidden” if I run Magento 2.2.x with FastCGI (Nginx + PHP-FPM)

Ubuntu 18.04, PHP 7.1, Nginx 1.16.1, Magento 2.2.6 I have some errors in log-file: 2019/12/05 16:58:45 [error] 865#865: *14 directory index of "/var/www/www-root/data/www/mysite.com/" is forbidden, ...
0
votes
0answers
35 views

Add to cart goes 404 redirect in Magento 2

After clicking on add to cart of any product. It goes to 404 page. But when i cleared cache page its working fine and product added to card and cart page is totally working fine but after some day ...
3
votes
1answer
79 views

Magento 2 What is Alternative of Zend\Form\Annotation\Object in php 7.2

i was using PHP 7.0 i used to use Zend\Form\Annotation\Object Now i have upgraded my system to 7.2 and Now i am getting an error that PHP Fatal error: Cannot use Zend\Form\Annotation\Object as ...
0
votes
0answers
57 views

Magento 2.2 display swatch image on Product Page

Magento 2.2.2 I have in my view.phtml the following code /app/design/frontend/mytheme/shop/Magento_Catalog/templates/product view.phtml $img1 = $products->getResource()->getAttribute('...
0
votes
0answers
14 views

Magento report not getting opened

Whenever I apply a filter for the reports, it's throwing an error unable to parse date using some format. As a result, it is getting reloaded to the home page. Please help...!
1
vote
1answer
46 views

M2 2.3.1 White screen on Product page after compile

I'm experiencing a white screen of death on product detail pages (both simple & grouped) after running the php bin/magento setup:di:compile command. I've tracked it down to the global.php file in ...
0
votes
0answers
8 views

Magento2: How to get the review avg rating?

I want to get the avg rating for review like 4.5. How to do that? Thanks.
0
votes
1answer
35 views

Dark Overlay over my PDP (Product Description Page) Magento2

I am using Magento 2.3.2 for my Ecommerce and whenever i open a PDP in my magento 2.3.2, i get overlay on the screen, Please check attachment Image. I have tried with CSS to remove this or to disable ...
4
votes
3answers
752 views

Error browsing simple products 2.3.1

I can't open simple products.. keep getting error as below, tried disabling Temando_shipping.. no joy.. any ideas to resolve? 1 exception(s): Exception #0 (ReflectionException): Class Temando\...
0
votes
0answers
15 views

Magento2 : Image not loading

I have added an image uploader in the customer account edit section in frontend. And also added the image view link. After uploading the image, I'm clicking the image view URL, its working fine in ...
1
vote
0answers
53 views

Help - Magento 1.9 - How to do Observer should be trigger before place an order?

After calculated grand total in checkout page observer not trigger, Observer : app\etc\modules\Gta_RestrictProductByCountry.xml <?xml version="1.0"?> <config> <modules> ...
0
votes
0answers
10 views

Magento2: Get configurable product option label using API

I want to get the configurable product with an option label. So I have to use the CORE API. {{base_url}}/index.php/rest/V1/products?searchCriteria[filterGroups][0][filters][0][field]=entity_id&' ...
0
votes
3answers
63 views

Magento2: Re- trigger total in checkout page

I have init js and corresponding template in checkout_index_index. In that template, I have added on checkout after the payment methods. If I checked the checkbox, I have add a custom fee. In page-...
2
votes
1answer
127 views

magento 2.3.1 inventory:reservation missing commands

I have inventory_reservation inconsistencies that I need to clean up on M2 2.3.1 so following this wiki guide https://github.com/magento/inventory/wiki/CLI-Reference but when running it I get error '...
0
votes
1answer
61 views

Magento2 : Set Limitation for Logged in customer address on checkout page?

I want to set the limitation for count of address list on the checkout page. can we restrict it or not, if yes then How to do that. Thanks in advance.
1
vote
0answers
65 views

Magento 2.3.1 Frontend stock not correct after sql update

I'm updating stock via SQL update along the lines of below website https://www.danjoseph.me/2017/01/12/magento-2-database-level-inventory-management/ The price and qty is updated and visible in ...
0
votes
1answer
32 views

Ajax form submit validation not working in magento2?

I'm trying to submit the form on ajax call. Before submit the form, I'm trying to validate it. $('#customerqa-form').on("click", "#customerqa-submit", function (event) { event....
1
vote
0answers
13 views

How to set parent order value into edit order in magento2?

I have set the custom value in quote and order table using "sales_model_service_quote_submit_before" event. In edit order, I want to set the custom field value from parent order. How to do that ...
0
votes
1answer
91 views

Restore quote in magento2

I have canceled the current order like use Magento\Sales\Model\OrderFactory; $order = $this->orderFactory->create()->loadByIncrementId($order->getIncrementId()); $order->cancel()->...
3
votes
1answer
89 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 ...
3
votes
1answer
64 views

Error when mass updating Attributes

Trying to mass update some attributes of products but when I try to open the update attributes form I get an error.. any ideas of the cause? 1 exception(s): Exception #0 (Exception): Notice: ...
0
votes
3answers
166 views

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

My issue is very closely related to Magmi for magento2 and this question here Fatal Error with Magmi for Magento2. I've noticed when I enter my database credentials correctly in the magmi_engine.php ...
1
vote
1answer
29 views

UPS - Malformed XML on shipping rates request

inside the shipping.log file i can see this error: The XML document is not well formed After some digging I see that my Auth information are not well encoded. It works perfectly when I write them ...
0
votes
0answers
26 views

Magento 2 URL Rewrites Very Slow

Setup Dedicated Server Intel Xeon E3-1230 v2 2 Core 16 GB RAM Linux Centos PHP 7.1 APACHE 2.4 I have a site in Magento 2.2.6 which I am trying to do a full URL rewrite of category and products for 1 ...
0
votes
0answers
25 views

Magento 2 LocalHost, Admin Panel error js and disappeared Setup Wizard button

After several days of testing and testing, I ask for help. 3 Problems. The theme in local is no longer the one purchased (The default one appears) The Accordian does not work on the Admin panel The ...
0
votes
0answers
35 views

Magento2: Coupon code removing issue after merging quote

I have created a custom column 'discounted_total' in quote_address table for discount calculation. use Magento\Quote\Model\Quote\Address\Total\AbstractTotal; use Magento\SalesRule\Model\CouponFactory;...
0
votes
0answers
43 views

Attribute code error: null value - how to find which attribute code?

We ran into this exact error: Certain Magento Pages returning HTTP Error 500 after a payment was done with PayPal Express Checkout (PayPal redirects to our website after the transaction is completed, ...
0
votes
0answers
133 views

Fatal error: Uncaught Error: Call to undefined function Magento\Framework\Event\mb_strtolower() in magento 2

when i run cli commends I'm getting error Fatal error: Uncaught Error: Call to undefined function Magento\Framework\Event\mb_strtolower() in /home/project/public_html/vendor/magento/framework/...
0
votes
0answers
34 views

DateTime error on Get Transaction Details request with Authorize.net extension

I am using extension from Authorize.net for payment methods. Everything looks pretty good on testing with sandbox but I am getting errors once launching this extension on live. First everything ...
0
votes
1answer
133 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
1answer
41 views

Magento2: How to get the old qty of product?

How to get the available qty of the product before saving the product with new qty in magento2. How to do that. Thanks.
2
votes
1answer
357 views

Error installing Magento 2.3.2: An abstract factory could not create an instance of magentoframeworkencryptionencryptor

I am installing magento 2 via a docker image : quay.io/alexcheng1982/apache2-php7:7.2.12 I keep getting this message: An abstract factory could not create an instance of ...
1
vote
0answers
30 views

Get out of stock product collection in magento2

I want to get the wishlist collection for the customer. $this->wishlist->create()->loadByCustomerId($this->session->create()->getCustomerId(), true)->getItemCollection(); How to ...
2
votes
1answer
46 views

Magento2: Production Critical Error on Cloudinary

I am trying to run the setup:upgrade command I get the following error PHP Fatal error: Uncaught Error: Call to a member function getCloud() on null in /var/www/asprod/vendor/cloudinary/...
0
votes
0answers
12 views

Magento2: How to perfill the color in view page

I want to prefill selected color in product view page from category page. How to do that. Thanks.
0
votes
0answers
27 views

I am getting this error when I click on edit customer in the admin back-end panel

I am getting this error when I click on edit customer in the admin back-end panel
1
vote
2answers
78 views

How to add text box in configurable product page in magento 2?

Just like shown in image above.Is this possible with magento dashboard functionality.
3
votes
0answers
42 views

Magento2: Shipment issue in admin order

I trying to create a shipment with track id for the order. but it displays 404 error in chrome browser after enable bundling option in production mode. How to solve the issue. Thanks. And the ...
0
votes
1answer
37 views

How to add alert box in admin form

I want to add the confirm box while click save button in magento2 admin form. How to do that. Thanks.
0
votes
0answers
17 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
126 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
35 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
47 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
114 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
51 views

Magento 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
49 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
46 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() ->...