Questions tagged [debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
23
votes
4answers
22k views

How to log all Magento SQL?

Is there any easy way to log all query executed by Magento ? The goal is to print all the SQL executed, for example during page load
37
votes
6answers
42k views

Debugging layout XML loading

TL;DR: is there a way I can debug the loading of the layout? As I believe one module's layout is conflicting with another. Related to a previous question I made: How to make a module layout to be ...
20
votes
4answers
55k views

How to enable Developer Mode in Magento 1.7

I am trying to enable Developer Mode on a site using Magento 1.7. So far I've added : SetEnv MAGE_IS_DEVELOPER_MODE "true" to the .htaccess file and : ... if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'...
5
votes
1answer
4k views

Magento debug trace

When i enabled query logging in magento from ADD TO CART till the cart page completes loading, it actually gave me same queries repeating 30-40 times.Not all queries but some of them so i decided to ...
3
votes
1answer
995 views

OnePage Checkout Page Error - Free Shipping error : “Please specify a shipping method”

My condition, free shipping for selected zip-code/postal code, range is, from 600003 to 600151 I am using Shopping Cart Price Rule, my workout Note : Shopping Cart Price Rule condition Matching ...
14
votes
5answers
23k views

Magento MySQL Has Gone Away Error

I'm having loads of weird issues on Magento CE 1.7.0.2. During normal operations, the site will occasionally produce a Magento Error Page (There has been an error processing your request) on both ...
1
vote
1answer
254 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 '...
15
votes
1answer
8k views

How can I debug layout file processing in Magento 2?

According to magento 2 theme specification about Layout files processing : The Magento application processes layout files in the following order: 1/ Collects all layout files from modules. The ...
1
vote
1answer
390 views

Tracking down DEBUG logged entries

We've recently inherited a mess of a Magento store with a new client that has come to us and there are thousands of DEBUG entries being written to log every minute. They don't give a lot to go on ...
1
vote
2answers
461 views

Customer Cannot Login After an Update to EE 1.13.1.0 (or CE 1.8.1.0) [duplicate]

I updated to the most recent Enterprise version and can not login anymore. Posting the login form just brings me back to this form.
16
votes
5answers
3k views

Debugging ui components

I'm trying to build a CRUD module that uses UI components for admin grid and form. I've did this before and worked, but this one is a bit different and apparently I screwed something up. The problem ...
7
votes
5answers
5k views

Looking for Magento2 compatible Developer-Debug tool, which can be downloaded for free?

Please brief on the features of extension. Besides this, mention the installation process or the steps involved for enabling the module.
5
votes
3answers
4k views

How can I debug “empty template”: Filename cannot be empty in Template.php

we are suddenly seeing an empty template issue in our logs. And I am finding it difficult to debug which module/function is causing this. Question: with what debug statement could I capture the ...
2
votes
1answer
446 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 ...
1
vote
5answers
181 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> <...
1
vote
1answer
344 views

Debug load time issues on local machine

I am looking for best practice/ good ways to help to identify slow points on Magento loads on a local machine. I think what I am mainly looking for is identifying items that are causing slow time to ...
4
votes
2answers
5k views

Rewrite a local Extension Module doesn't work

I want to rewrite a model from an extension in the "local"-folder. My Extension is also in the "local"-folder but it doesn't work and i have no clue what I'm doing wrong. The relevant part of the ...
2
votes
4answers
985 views

Is there any way to identify what class causes 'Area code is not set' or 'Area code already set'?

I know there are a lot of questions about 'Area code is not set', but no one has yet answered the main question. How to find the file which caused this Exception? In my case, I updated a lot of ...
2
votes
0answers
79 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 ...
1
vote
1answer
2k views

Copy a Widget Instance Programmatically, Preserving Layout Updates

I try to copy a widget instance. The following function is run from a console script (shell/), adminhtml Events are initialized. The problem: What I get from the $orig->getData('page_groups') ...
1
vote
2answers
68 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 ...
1
vote
1answer
2k 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 ...