Questions tagged [debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
4answers
3k views

Logging in Magento 2.4+

What are the different way a developer can log messages in Magento 2.4+? Zend logger can't be used anymore either.
0
votes
0answers
169 views

LOCKED_RECORD_INFO_BLOCK in magento 2

The Magento Debug is generating lot of errors. See below the part teh tail part of the log. [2021-04-21 05:59:50] main.DEBUG: cache_invalidate: {"method":"GET","url":&...
0
votes
0answers
205 views

Type Error occurred when creating object: Magento\Framework\Communication\Config\Data

My application Runs on Magento2 2.3.4-p2 Version , till yesterday it was working fine , and I haven't changed any code modifications. But throws following error I have followed Clearing the Cache. ...
0
votes
0answers
35 views

Category attribute value changes unexpectedly after saving category in Magento 2.4

I created a module that uses an Image Uploader UiComponent to upload an additional image to a category and save its path in the database. The controller I use to do this is basically a copy of the out ...
2
votes
1answer
51 views

What are good debugging strategies for MFTF (v2) tests which only faily sometimes?

We have a MFTF test related to coupon codes that fail in 4 of 10 cases. How can we debug this properly. We already isolated the single test case and can reproduce it locally, it still takes 50 minutes ...
0
votes
1answer
51 views

Where can I get all observers(events) of current page?

Where in the code magento2 trigger one by one all events of observers. I want to debug it by xdebug and find all events that can be on that page.
0
votes
3answers
67 views

(Magento\Customer\Model\Customer\Interceptor) with the same ID "16" already exists. Error keeps showing in Health Monitor Suite

(Magento\Customer\Model\Customer\Interceptor) with the same ID "16" already exists. Error keeps showing in Health Monitor Suite.
0
votes
1answer
55 views

Time to first Byte takes over 3 seconds on home page, Fully load time 14s - Magento 2

The site was working fine until recently, the loading speed has dramatically increase, visitor get Internal 500 from time to time. First i thought it was the recent extension I installed, Marisvit ...
0
votes
1answer
14 views

File show placeholder image, even existing

I imported files, but the cached image is the placeholder iamge. How can I debug this?
0
votes
2answers
367 views

Debugging Magento 2 cron errors when no message is left?

Quite often when I'm attempting to create a CRON job I'll mess up along the way and the job will fail to run. Typically I'd check my logs and see where I went wrong, put the missing semicolon back, ...
0
votes
1answer
25 views

Magento2 Create Error

I don't know why, when I click save post it will return an error Please help me!
0
votes
1answer
179 views

How to detect if the store is using developer mode via browser?

I usually do some store audits even without ssh access, and I'd like to be more precise checking if the store is using developer mode just browsing through the browser console. How could I check if ...
0
votes
1answer
203 views

How to stop db.log in magento 2.3

How to stop the DB log i had used the CLI to stop but it is not stopping it increasing to huge file. I used the below command but it is not stopping. It is in the path var/debug/db.log bin/magento ...
1
vote
2answers
291 views

Magento 2 How can I find where/what is making MySQL calls

I have Tideways profiling on my Magento 2 product page which is very slow. The profiling shows that the same 2 queries are run about 60,000 times each. (120,000 queries per page load!) The queries are:...
0
votes
1answer
194 views

Magento 1.9 Error 503 on user login, but only on some random accounts

Some of the users of my shop experience a 503 'Service unavailable' error when trying to log in or reset their passwords. if a user gets the 503, the same account keeps getting the error, until I ...
0
votes
1answer
775 views

Magento\Framework\Config\Dom\ValidationException: Element 'argument': Duplicate key-sequence

I have an error when the developer-mode is active. The Exception is thrown out when entering any product detail page. I am running Magento 2.3.4. could you please help in finding a solution 1 ...
0
votes
2answers
555 views

magento 2.3.3 review not showing on product page

I migrate Magento 1.9.4 to Magento 2.3.2 everything is working fine but review not showing on the product page, even its total number of reviews on the product and the stars as well, also show in the ...
1
vote
5answers
289 views

Magento 1.9 - Anyone help me What is error in my Observer?

My Custom observer : app\etc\modules\Gta_FindPaymentGateway.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules> <Gta_FindPaymentGateway> <...
2
votes
1answer
257 views

Magento 2 How to create log of upgrade command?

I wanted to create logs of upgrade command under var/log folder: php bin/magento setup:upgrade Please help me.
0
votes
0answers
27 views

How do I debug Magento report with no error?

I have a module that I created that stores data posted via form to a custom table and then sends a confirmation email. I got to a point of testing the form action, and it gets there - but I get the "...
0
votes
0answers
57 views

Debug doesn't work (Version 2.3)

I tried all ways to enable debug but it doens't work. I modify all box on dashboard about debug on "Yes". I tried to use command line with "bin/magento setup:config:set --enable-debug-logging=true" ...
7
votes
5answers
2k views

Which server settings can cause Magento reindex to run really slow?

Shop facts: around 100 categories but in the main category, there are ~ 70.000 products (because filtering is heavily used) After moving a shop developed by us to a production server of an external ...
1
vote
2answers
2k views

How to put log in observer Magento 2 [duplicate]

I am trying to put log in observer sales_order_save_after Whenever I put logger in the execute I can’t do any checkout it complains about guest checkout payment Is there any other way I could see ...
1
vote
1answer
363 views

Debug in Remote Server Configuration with PHP Storm unsuccessful on Breakpoints

Scenario: We have code on our local machine and are remotely handling the code and database on a Remote Server (Virtual Machine). Now we want to Debug our Code. This is how we have configured ...
1
vote
1answer
48 views

My checkout got a width of 1500%, how do UI library grid make sense here?

After upgrading to Magento 2.3.2 and using the latest Magento, the <div class=".opc_wrapper"> in our checkout got a width of 1500% making it ugly. We are actually using https://github.com/...
6
votes
1answer
112 views

How to debug that tax_class_id gets overwritten

How can we debug or reproduce the following problem: We noticed that the tax_class_id of almost all products (96%) get reset to 0 so we mass updated the tax class of the products back to normal. The ...
3
votes
0answers
217 views

Possible bug in and handling of getOrigData when updating tier prices, goes away when cleaning the cache

We are on Magento 2.2.8 and I was debugging the following issue for hours: When sending a product-update via the REST API, we were getting Unique constraint violation found for a request as simple ...
0
votes
1answer
497 views

main.CRITICAL: Email template '' is not defined. at /public_html/vendor/magento/module-email/Model/Template/Config.php:225)"} []]

in my exception.log i see this error message, I am unable to trace where the exception came from. magento: 2.2.6 main.CRITICAL: Email template '' is not defined. {"exception":"[object] (...
4
votes
1answer
269 views

How do I prevent interceptor classes from being generated so I can debug?

I'm using xdebug to set breakpoints in Magento Commerce, which is installed locally on Ubuntu. I have a breakpoint set in vendor/magento/framework/App/FrontController.php. However, that breakpoint ...
1
vote
2answers
126 views

Unrealistic error description on developer mode

I m running Magento2.3 and getting below error. How can I find where exactly error in file. which XML is causing the issue? Please, can anyone guide me on this? This is very confusing to solve ...
15
votes
2answers
1k views

Whats the purpose of lockedLoadData / uncached page build takes around a minute, spent in usleep

I think since the update to Magento 2.3.1 I have problems with uncached page loads (during development). I did a blackfire.io trace and it turns out that 42 seconds are spent in usleep here. Now I ...
3
votes
1answer
1k views

Magento 2 : How to detect if payment has failed

How can I check a payment process failed while ordering in Magento 2? I want to set some logic if payment failed during order placing. Payment can be done from any payment method like PayPal, debit ...
7
votes
3answers
1k views

Trying to reproduce (and fix) "options is undefined" in customer-data:90

We are sporadically facing the following problem when on /checkout/cart/. As an effect, clicking on "Proceed to checkout" does not work. We believe the proceeding is not working because of the ...
1
vote
3answers
658 views

Magento2: how to debug in sales_order_place_after event

registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Hafiz_Sms', __DIR__ ); etc/events....
1
vote
0answers
86 views

CatalogSearch is not working after upgrading to Magento 2.3

Recently I've upgraded from Magento 2.2 to Magento 2.3. After upgrading, CatalogSearch is redirecting to Home page of the website. Previously I /catalogsearch/result was working and shown all ...
1
vote
0answers
76 views

Logging Magento 1.9 database queries. What doe the

With the below code, what does "#0000000005dc945b000055af41b2fb74#" from lines 5 and 6 represent? Is this related to the PID or session hash? Any idea. This code is taken from database queries after ...
5
votes
1answer
1k views

Some very few images are rendered with inverted colors by Magento

We have the problem, that one image in the catalog is shown negatively in Magento below the gallery. I tried to reproduce with n98-magerun2 dev:console $i = $di->create('\Magento\Framework\Image',...
0
votes
1answer
387 views

Template debug areas on transaction emails

We are sending out order confirmation emails programatically using the following code in Magento 2: # Now send out the emails: $emailSender = $objectManager->create('\Magento\Sales\Model\Order\...
3
votes
1answer
5k views

Magento 2 PHPSTORM Xdebug Configuration setup

How to setup and use Xdebug in Magento 2 which is very necessary tool for Magento 2.
0
votes
1answer
32 views

What kind of Magento (2.3) Installation is Best for Future any Updates?

For further future updates what kind of installation is best , Command-line installation (or) Setup Wizard installation
0
votes
1answer
166 views

Debugging customer session issues... tools?

We periodically run into issues on our M2.2.3 website, where customer cannot seem to complete their checkout process (spinning circle for example). It has been a nightmare to try and debug these ...
0
votes
1answer
492 views

Debugging "Invalid return type" in generated code?

Is there a way to track down this error report? stdClass Object ( [0] => Invalid return type [1] => #0 /home/maxxcou1/public_html/mag2/generated/code/Magento/Framework/App/Http/...
0
votes
3answers
2k views

Magento 2 debugging js ui component in browser

As i am searching debugging of ui component i don't find any great articles to debugging ui component in browser console so here i am writing my question. As we all know magento current system is ...
1
vote
1answer
3k views

You need to choose options for your item even if option is chosen - Magento 2

I get this error on all configurable products "You need to choose options for your item" when i try to add a product to cart even if size and color option are chosen Magento 2.2.5 This error is only ...
2
votes
0answers
32 views

After update from Magento 2.1 to 2.2.5, categories are not displayed because is_active is missing

After an update to 2.2.5 it turned out, that all categories are not shown anymore. Debugging the issue revealed, that $category->isActive() just is null. Debugging further showed that ...
2
votes
3answers
3k views

How to debug php which is run by cron job only

I am trying to customize Ebizmart Mailchimp extension. This extension has few batch processing which are run by Cron job. My Server is in Ubuntu VM and my IDE is netbean run on Windows. Debugging ...
0
votes
2answers
553 views

Debug problems on Mage::getSingleton('checkout/cart')->getQuote()

I'm investigate a compatibility problem with two m1 extensions. For this I need a simply output of any information I can get about Mage::getSingleton('checkout/cart')->getQuote(). I have tried ...
2
votes
1answer
930 views

Magento2 : Not able to Log Order Details when order is Placed

I am trying to print order details in Log /return JSON result when a new order is placed. Nothing is printing in System.log or in exception.log, Please check my code below, Let me know where I am ...
2
votes
1answer
774 views

Get source xml of error

Is there a way to resolve any xml-file that causes an error? I cannot find the source file that causes this error (happens on checkout): Magento\Framework\Config\Dom\ValidationException): Element '...
0
votes
1answer
481 views

Magento1.9: Customer Account Information Edit Form Admin Dashboard

Where can i find the template form for this account information Tab magento 1.9?