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
1
vote
0answers
11 views

Magento 2 Not Removing Product Special Price by importing CSV

I am trying to remove the special price of my product by the import CSV. Tried Several Ways. By adding "0" in the column. Also tried to import with Empty Column. But nothing happened.
0
votes
0answers
15 views

get product id to export to: CSV

I need to find out how this "Export to: CSV" field in order management does to export all products at once. Does he receive id for all products?
0
votes
2answers
23 views

I want to update order status using magento's rest api

I want to use Magento Api for Updating Status of order in Magento 2.3.5 so anyone can guide me from scratch how can i use api. I also want to know in Magento how many default api is there and how to ...
1
vote
2answers
35 views

Magento 2 - I'm upgrading magento 2.1 to 2.3.5 but compile command returning error

I'm trying to upgrade magento 2 version to the latest version by following commands php bin/magento maintenance:enable composer require magento/product-community-edition 2.3.5 --no-update composer ...
0
votes
0answers
12 views

Your PHP version is 7.2.24-0ubuntu0.18.04.6. The required PHP version is ~5.6.0|7.0.2|~7.0.6

Trying to install Magento 2 to my ISPCONFIG / UBUNTU 18 I'm getting an error saying: Your PHP version is 7.2.24-0ubuntu0.18.04.6. The required PHP version is ~5.6.0|7.0.2|~7.0.6. Any idea how can I ...
0
votes
3answers
66 views

How to redirect a request in Magento from custom Module controller?

I have a third-party module installed in my Magento ver 2.3.4-p2 instance. I need to put a redirect from a file in the module, which is present in app/code/Plazathemes/Blog/Controller/Router.php ...
0
votes
0answers
16 views

getting problem for magento1.9.4.4 backend product attributes at edit time how to fix it

I have updated magento from magento 1.9.3.8 to magento 1.9.4.4 using magento manager connect. after upgrading every thing working perfect, but getting problmes for backend when i go for edit ...
0
votes
1answer
29 views

solution to invalidate private content?

Please help me, I want to know exactly how the Invalidate private content works? the solution to invalidate private content? example: when I add to cart in Magento 2, how to identify change data and ...
0
votes
0answers
13 views

Magento 2: How to pass date in URL to home page logo?

I need to pass date-stamp in the format 20200513 in URL to homepage logo to ensure browser doesn't cache the logo and gets the latest logo whenever the logo switching recurs following a cron job meant ...
0
votes
1answer
24 views

Looking to replace document.write(new Date().getFullYear() with an equivalent PHP function

I am looking for an equivalent PHP function to accomplish what document.write(new Date().getFullYear() is expected to do. This function is to be used in place of deprecated document.write(new Date()....
0
votes
1answer
11 views

store logo not showing in transnational order email in magento 2

the store logo is not showing in order email which was showing and uploaded in the configuration -> design ->transnational email section
0
votes
0answers
37 views

Magento 2 is giving me Fatal error: Allowed memory size of 1073741824 bytes exhausted when i am trying to save product

I am getting following errros Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 73400328 bytes) in public_html/vendor/magento/zendframework1/library/Zend/Db/Statement/...
0
votes
1answer
49 views

How to get local storage in magento controller to use as available?

I writing a plugin to add condition into beforeLoad function of product collection. I set local storage example js to set local storage: if (typeof(Storage) !== "undefined") { // Store ...
0
votes
1answer
20 views

magneto sql unknown query

we are seeing this sql query in our DB and are unsure what is genereting this, we have flat catalog index enabled so it should not be asking for this sql query select `e`.*, if(at_visibility.value_id ...
0
votes
0answers
36 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
39 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
23 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
38 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
46 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
2answers
1k 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
34 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
39 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
41 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
50 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
45 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
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! /...
0
votes
2answers
50 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
34 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
85 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
228 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
177 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
105 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
136 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
206 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
63 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
137 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
9 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
56 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
18 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
61 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
14 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&' ...

1
2 3 4 5
10