Questions tagged [debugging]

The tag has no usage guidance.

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

Authenticate and Capture not working. How do I go about debugging this?

When I set payment methods to 'Authorize and Capture' (tried authorize.net, paypal, and others) I get a server failure notice on the website. The error and exception logs show an integrity constraint ...
Jon's user avatar
  • 295
0 votes
1 answer
36 views

How to print / echo / debug RateRequest properties in custom shipping method

I'm able to use this city dropdown plugin successfully. Now I'm trying to call shipping vendor API in my custom shipping module. Can anyone help me how I can print / echo / debug the destination in ...
dinotame's user avatar
0 votes
2 answers
92 views

How to connect a Magento 2 module to an external API

I created a module in Magento 2 to connect to a third-party API (which I created). The problem is that it's not connecting and giving me a 404 error in the view path. local-project.test/getprovider/...
Arturo Cabrera's user avatar
1 vote
1 answer
544 views

Exception: Namespace prefix xsi for type on argument is not defined in Merge.php / Extra content at the end of the document

We are using justbetter/magento2-sentry for catching errors in our Magento 2.4.5-1 shop and have lots of reports of such errors: Warning: simplexml_load_string(): namespace error : Namespace prefix ...
Alex's user avatar
  • 13.8k
3 votes
0 answers
49 views

Troubleshoot issue with controller [closed]

How to manage troubleshoot issue with controllers are not working and returning is erroremphasized text
Ansari's user avatar
  • 435
0 votes
2 answers
50 views

How to debug or enable logging in a function

Is there a way to enable logging, and or debug this function in Magento? The invoices is created successfully, but the capture online doesn't work. private function createInvoice(Order $order, int $...
Aknot's user avatar
  • 288
0 votes
1 answer
100 views

Exception log errors (The element "order_totals" can't have a child because "order_totals" already has a child with alias)

Trying to clean up my logs and I keep getting this error over and over in my exception logs. [2022-12-27 20:07:39] report.CRITICAL: The element "order_totals" can't have a child because &...
Head's user avatar
  • 157
0 votes
2 answers
393 views

Magento 2 - Get stacktrace

I try to figure out the exact stack trace after I click on a link for example the link which prints the order PDF in the customer area. I tried it by adding the following code after $response = $...
Black's user avatar
  • 3,280
2 votes
5 answers
391 views

Configure Debug Logging Type

As Magento throws info into system.log and debug.log I can see 3 different types Is it possible to disable main.INFO and main.DEBUG while keeping main.CRITICAL to avoid large file size for logging ...
David Buik's user avatar
1 vote
0 answers
86 views

ERROR Illegal offset type on reindexing catalog_product_attribute. Cant reindex product attributes

Upgraded from Magento2.4.2pt1 to Magento2.4.4-pt1. Now reindexing from SSH I am getting error with reindexing catalog_product_attribute. php -d memory_limit=2G bin/magento indexer:reindex ...
Jonathan's user avatar
  • 113
1 vote
2 answers
248 views

Cron Debugger not Working

Can anybody tell me how Can I use debugger on the Cron. I tried to do many things, but it doesn't work.
Rana Zain's user avatar
  • 642
2 votes
0 answers
38 views

There is already an account 2.4.4

I'm having following issue that i'm not able to reproduce https://ibb.co/0M1mvQ6 I checked in system.log but i don't have any critical warning. I made also a registration with a different email ...
user3718303's user avatar
2 votes
2 answers
171 views

Magento Debugging Tools

Can Anyone suggest me the best tools for the debugging in the Magento 2 for free besides X-debugger.
Rana Zain's user avatar
  • 642
0 votes
1 answer
520 views

Debug with Magento 2.4.4

Hello i'd like to understand how to enable all possible error log that can happen in my Magento 2.4.4 in production mode since website is live. I checked that in var/log folder there are usefull files ...
user3718303's user avatar
0 votes
3 answers
800 views

How to configure and setup Xdebug in phpstorm for Magento?

I want to use the debugger to debug my module but I don't know how to configure and set up debugger in phpstorm, any hints or solutions?
Afzal Arshad's user avatar
0 votes
1 answer
338 views

Where is the code which populates DataObjects' protected $_data property?

For the second time in as many months, I'm debugging an issue where a key expected to be found in the Magento\Framework\DataObject class' $_data array is expected but not found. Last time, I tried to ...
dotancohen's user avatar
  • 1,115
13 votes
7 answers
34k 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.
Adarsh M's user avatar
  • 582
0 votes
0 answers
90 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 ...
audio-engineer's user avatar
2 votes
1 answer
144 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 ...
Alex's user avatar
  • 13.8k
0 votes
1 answer
585 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.
Anton Mikhaylenko's user avatar
0 votes
3 answers
342 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.
Jonathan's user avatar
  • 113
0 votes
1 answer
89 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 ...
Mage Explorer's user avatar
0 votes
1 answer
152 views

File show placeholder image, even existing

I imported files, but the cached image is the placeholder iamge. How can I debug this?
Alex's user avatar
  • 13.8k
0 votes
2 answers
1k 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, ...
joeybab3's user avatar
  • 378
0 votes
1 answer
29 views

Magento2 Create Error

I don't know why, when I click save post it will return an error Please help me!
user89434's user avatar
0 votes
1 answer
471 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 ...
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
349 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 ...
Sabareesh's user avatar
  • 348
1 vote
2 answers
789 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:...
sulman's user avatar
  • 529
0 votes
1 answer
370 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 ...
mybinaryromance's user avatar
0 votes
1 answer
1k 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 ...
mjamb's user avatar
  • 39
0 votes
2 answers
932 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 ...
Zuby's user avatar
  • 348
1 vote
5 answers
359 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> <...
zus's user avatar
  • 155
2 votes
1 answer
509 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.
temper's user avatar
  • 984
0 votes
0 answers
40 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 "...
treyBake's user avatar
  • 141
0 votes
0 answers
134 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" ...
user83920's user avatar
7 votes
5 answers
3k 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 ...
Alex's user avatar
  • 13.8k
1 vote
2 answers
3k 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 ...
Jack Brooks's user avatar
1 vote
1 answer
559 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 ...
Oscprofessionals's user avatar
1 vote
1 answer
101 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/...
Alex's user avatar
  • 13.8k
6 votes
1 answer
206 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 ...
Daniel's user avatar
  • 2,219
3 votes
0 answers
422 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 ...
Alex's user avatar
  • 13.8k
0 votes
1 answer
960 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] (...
Mage Explorer's user avatar
4 votes
1 answer
459 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 ...
Ben Rubin's user avatar
  • 549
1 vote
2 answers
151 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 ...
MageLerner's user avatar
15 votes
2 answers
2k 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 ...
Alex's user avatar
  • 13.8k
3 votes
1 answer
2k 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 ...
Shubhajay Das's user avatar
7 votes
3 answers
2k 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 ...
Alex's user avatar
  • 13.8k
1 vote
3 answers
909 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....
Hafiz Arslan's user avatar
1 vote
0 answers
89 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 ...
vino's user avatar
  • 31
1 vote
0 answers
90 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 ...
ItsJhonny's user avatar
  • 379