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
9 views

Call to a member function setMessageType() on null

Using Ultimate Followup Email extension for Magento 2 but throws me an error when cron is trying to send out emails: main.CRITICAL: Error when running a cron job {"exception":"[object] ( ...
0
votes
1answer
16 views

When transferring data through $customerSession, I receive data locally, but not on the production

I have a custom functionality for creating an order, I want to transfer the custom LastOrderId to the success page to which the user gets after submitting the form. The controller responsible for ...
0
votes
1answer
38 views

Magento 1.9 - Custom message display at PDP page

I need to display delivery information on PDP page (app\design\frontend\default\theme\template\catalog\product) If SKU 66 the product delivery information is 5 To 15 Business Days For other product ...
0
votes
1answer
21 views

1 exception(s): Exception #0 (InvalidArgumentException): Unable to unserialize value

1 exception(s): Exception #0 (InvalidArgumentException): Unable to unserialize value when i add new customer and open existing customer In Admin side, Error is mention in above screenshot.
0
votes
0answers
19 views

Add to cart Ajax not working in Algolia Instant search result page

I am getting the issue on the Product listing page. here below is the scenario: 1. Open any Product Listing page and filter with any brand. 2. Then click on add to cart button of any simple product. ...
0
votes
0answers
42 views

Autoload Magento 2 Issue

My website has been migrated to a new server in the same hosting for reasons of optimization, after it, appear this issue when I'm trying to enter in any page of Magento Autoload error Passed ...
0
votes
1answer
223 views

Undefined class constant 'PDO::MYSQL_ATTR_SSL_KEY' in/magento/setup/src/Magento/Setup/Model/ConfigOptionsList.php:179 in magento localhost

Ater execute any command getting this error Operating system :- Mint ubuntu Php version :- 7.2 Magento :- 2.3.4
0
votes
0answers
14 views

PHP Script in Magento 2 Custom Module Works in Browser but Not Working through Cron

We have a custom module that executes a php script. When running the script through an observer event, the script runs without a problem. When running the script through Cron, the script runs but does ...
1
vote
1answer
32 views

How to Set Condition for MetaDescription in Magento 2

I am trying to set a meta description dynamically for Magento 2 categories as default rules. And I did manage to do it, here is my code. public function execute( \Magento\Framework\Event\Observer $...
0
votes
0answers
12 views

Set Category default sort order to custom option

I have created a module that removes default Category product listings sorting orders and adds new custom ones. How do I go about setting one of the custom sortiong options as a Default one? Right now ...
0
votes
1answer
37 views

including external js library showing error in console in magento 2

I am getting error in the console after including the external js file like this in default_head_block.xml
1
vote
1answer
26 views

Error in Curl request with response in Controller

I'm trying to get curl response from js (cc-method.js) file. The curl call code is in controller file domain.com/frontname/section/index. Below is the code, public function execute() { // create ...
1
vote
3answers
28 views

Magento2 - How to make custom module for customize maintenance mode?

I want to customize maintenance mode in Magento2. Magento2 error message will be hide and my custom message will be visible. If you know anything related to this then share with me.
0
votes
2answers
41 views

how to move fotoroma navigation thumbnail vertical to horizontal in magento 2

how to move fotoroma navigation thumbnail vertical to horizontal to the bottom of the main image in magento 2
1
vote
0answers
45 views

Magento2 - override extension template

The project using an extension called 'Amitshree'. I need to override an email template file (filename.html) created in this extension in my project. I need a step by step solution because I am not ...
1
vote
1answer
31 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! /...
0
votes
2answers
38 views

PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found

How to solve this issue? DOM extension enabled in cPanel. PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/freshvcf/public_html/test/vendor/magento/framework/Config/Dom.php:...
0
votes
0answers
21 views

The file was not uploaded in categories

I have this error when I am in the category then I upload an image. My php.ini is fine, the permission on pub/ is set to 0777 then the correct user:group. What I forgot? Tech details: PHP 7.0.33 ...
0
votes
0answers
19 views

M2 - Create function in module

I have a piece of code that I need to use multiple times, but I don't want to get a very long page with a lot of the same code. I have this piece of code: <div class="av-product-specs-list-...
0
votes
0answers
26 views

Magento 2 Import CSV File upload option dissapearing

Magento 2.2.2 I am trying to upload a csv file for an import. However when I select Entity Product the option for uploading the csv in admin dissapears. I have tried resetting permission for ...
1
vote
1answer
33 views

Customer Navigation Links reordering not working

I am trying to re-order customer account navigation links. And I have tried out the below 2 approaches: Using move File Path: \design\frontend\DasLeben\porto\Magento_Customer\layout\...
0
votes
0answers
52 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
124 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
108 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
63 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
77 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
124 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
59 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
73 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
44 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 ...
5
votes
3answers
1k 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
16 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
57 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
12 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
113 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
192 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
78 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
86 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
50 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
14 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
159 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
98 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 ...
4
votes
1answer
161 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: ...
1
vote
3answers
237 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
40 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
41 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
36 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
38 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;...

1
2 3 4 5
9