Questions tagged [debug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 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
1 answer
31 views

Magento 2, xdebug when cron running show issue with bin/magento

When I run cron with debugging. I get the message like this It takes so long time to run my cron. So anyone knows to fix this issue? Thanks alot.
Simpa407's user avatar
3 votes
1 answer
36 views

Troubleshoot issue with controller

How to manage troubleshoot issue with controllers are not working and returning is erroremphasized text
Ansari's user avatar
  • 435
0 votes
1 answer
296 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,105
0 votes
1 answer
62 views

Magento 2.3.4 - CMS_Block Query taking up resource

Hope someone can help because I'm aghast. So we have a 2.3.4 store (migrated from 1.9) which we put live recently. After an hour or so, the site completely collapsed under the traffic (apparently it ...
Thomas Harding's user avatar
0 votes
1 answer
2k views

main.DEBUG: Request validation failed for action ... Invalid request received at Account/CreatePost.php:327 on loop error in debug log

Hey There i have been facing a serious issue in my magento 2.3.7. in my debug.log this error is constantly hitting n filling it in seconds Request validation failed for action "Magento\Customer\...
Sayyed Hasan's user avatar
0 votes
2 answers
104 views

Magento 2: best Debuging software

I am working on speed optimization of the Magento 2 site. Does anyone know the best debugging software where I can track which magento2 PHP function takes more time? Please share your thoughts to ...
Niraj Patel's user avatar
0 votes
1 answer
26 views

Checkout cart suddenly is not working anymore

In the middle of the day after 2 months without deploying anything, my Magento 2 cart is not working, everyone that tries to go to the cart account sees an error 500, my server said it's probably a ...
Rafael Corrêa Gomes's user avatar
1 vote
1 answer
2k views

ERROR: URI '/checkout/cart/add/uenc/%25uenc%25/product/9495/'' cannot be accessed with GET method (Magento\Checkout\Controller\Cart\Add)

I keep seeing this error in my system error logs and not sure what it is and why this error keeps popping up? Any help on how to fix this error would be greatly appreciated. We are on Magento2.3.5pt-2....
Jonathan's user avatar
  • 103
1 vote
3 answers
4k views

Magento2 configure PHPstorm & xdebug and how to use it

I was using sublime and VScode for the development. Recently I heard that PHPStorm is the best IDE for the Magento2 development and using xdebug you can easily debug the issues and write modules. I ...
Jackson Wyss's user avatar
0 votes
2 answers
82 views

Template path hints are not displaying on front end, I tried in default and developer mode

Template hints are not displaying in both developer and default mode. I am using magento 2.3.5 p1
vinaysirige's user avatar
0 votes
1 answer
521 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
1 vote
0 answers
139 views

Error in debug.log

I found below errors in debug.log file. [2020-07-09 00:59:52] main.INFO: Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter ...
abu abu's user avatar
  • 714
1 vote
2 answers
463 views

How to Observer place order event?

Hi i'm new at magento 2 and want to get orderId() using Observer on place order event. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
Rafael Fagundes'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
1 vote
0 answers
3k views

How to Debug {"identifier":"LOCKED_RECORD_INFO_SYSTEM_CONFIG"}} []

My Centos - Nginx Configuration, etc/nginx/conf.d/magento.conf server { listen 8087; server_name abc; set $MAGE_ROOT /usr/share/nginx/html/abc; include /usr/share/nginx/html/abc/nginx.conf.sample; ...
zus's user avatar
  • 145
2 votes
3 answers
283 views

Magento 1.9 - How to Debug 3rd party Extension which is affect Magneto Core Function?

I have installed free price extension, https://pluginarchive.com/magento/rp_display_price_free the extension collapse my configurable product price. How to debug which part of the extension affects ...
zus's user avatar
  • 145
0 votes
0 answers
125 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
0 votes
0 answers
1k views

site is super slow GET customer/section/load/?sections=cart&force_new_section_timestamp=false&_=xxxxxx

My site became super slow since yesterday. I can not find out which extension causes this. I thought it might because of the weltpixel Google Tag Manager, i disabled it. Run setup:upgrade; setup ...
Mage Explorer's user avatar
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
0 votes
2 answers
529 views

Use Zend_Debug in Magento 2.3?

As Magento removed many Zend functions in v2.3, is there a way to use Zend_Debug::dump() by potentially manually installing the missing composer module?
vladPavlov's user avatar
0 votes
1 answer
217 views

How to do a dry run in root folder? [closed]

Is there way to do a dry run within your root folder to make sure the line of code works
joe willmott's user avatar
0 votes
1 answer
347 views

magento 2.3 after enabling system logs unable to run any command

I have enabled system logs in magento 2.3.1 using command bin/magento setup:config:set --enable-debug-logging=true But, after enabling it, I am unable to run any command in terminal and getting ...
chanchal's user avatar
  • 397
1 vote
1 answer
2k views

UPS shipping method not showing magento 2

I had integrated Magento UPS XML Shipping module with all live credentials. But What I see is No shipping Methods Available I enabled the debug mode the debug file is below Error code I got is &...
Ramesh KR's user avatar
  • 836
4 votes
1 answer
7k views

X-Magento-Cache-Debug: MISS

I installed Varnish, but getting this message. Varnish cache not working. And check the var/page_cache/ directory is not empty.still have mage-tags file. i have in System > Full Page Cache > ...
niceonelee's user avatar
2 votes
2 answers
1k views

How to know if the observer function have executed after an event?

I am trying to observe an event. How can I debug or know if the observer function has been called? I am using the event "checkout_cart_add_product_complete" and trying to do something simple when a ...
Daniel Silva's user avatar
1 vote
1 answer
622 views

Enable template path hints in production mode Magento 2

This seems like it should be straightforward, it seems as though it is not. Is there any way to enable template path hints in production mode in Magento 2?
YorkieMagento's user avatar
1 vote
1 answer
899 views

Magento 2.2.5: How to try catch in magento with AJAX?

I'm looking for some way to try catch in Magento with AJAX and then alert the error message out. I'm following some solution but doesn't work. Ok so here is what I've done til now : C:\xampp\...
fudu's user avatar
  • 1,258
3 votes
0 answers
2k views

Magento 2.2.5: How to console.log() in js file

I'm trying to debug a js file in Magento 2. And I don't know how to do that. I've try console.log('something in here') but doesn't work, I've clear cache as well. Here is my problem: I've 3 ...
fudu's user avatar
  • 1,258
0 votes
1 answer
893 views

Magento 2: error in developer mode: help debugging

when i put Magento 2 in developer mode i get this error, can you help me debugging? Thanks 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): ...
goplastic's user avatar
  • 125
1 vote
0 answers
315 views

Property "CheckoutFields" does not have corresponding setter in class "Magento\Quote\Api\Data\AddressExtensionInterface"

i updated magento, and now in the checkout page i get this error. How can i debug this? Thank you! [2018-07-31 16:16:15] main.CRITICAL: Report ID: webapi-5b608b4fab129; Message: ...
goplastic's user avatar
  • 125
3 votes
1 answer
3k views

Magento 2: how to debug json error

After a while of developing (with a colleague) I get this JS error on every page: "SyntaxError: JSON.parse: unexpected character at line 5 column 50 of the JSON data" in file main.js. This is nice to ...
omsta's user avatar
  • 672
2 votes
1 answer
616 views

How to install XDebug in Lampp to debug Magento?

I have installed xdebug from source in my system and add to my php.ini the following code at the end of the file: /opt/lampp/etc/php.ini [Xdebug] zend_extension=”/usr/lib/php/20151012/xdebug.so” ...
Nuno Sousa's user avatar
1 vote
0 answers
298 views

Debugging in Rest Api

I want to debug which api is called.Any tool is available for debugging in magento 2.1.12?Anybody help me.
Lovely Setia's user avatar
2 votes
1 answer
837 views

Magento 2.2.x debug in NetBeans IDE 8.1 via chrome or mozilla

In order to debug PHP scripts in NetBeans IDE 8.1 via Chrome or Mozilla. What i need to install for Browser and which code i should put in my Magento project and php.ini file? What changes i need to ...
Aditya Shah's user avatar
  • 7,517
0 votes
1 answer
55 views

Can someone explain this entry in debug.log file?

I found this in debug.log file on my Magento ver. 2.1.8 store but don't really understand what it is saying. Can someone explain? http://lb1.i:80/)"],"tagsPattern":"((^|,)catalog_product_3666(,|$))|((...
Greg's user avatar
  • 2,899
2 votes
1 answer
1k views

Magento 1.9.x - Debug Routing

I'm looking for advice on best practices on how to debug the routing of Magento 1.9.x efficiently. We're running into a strange issue here where we push a Mage 1.9.3.6 install from our local dev ...
pete19's user avatar
  • 163
1 vote
0 answers
115 views

How to debug error "Unable to get content for ..."?

How to find error in this file? I can't find error and fix it. I has moved to production mode and merge all js/css file.
Toan Duc Vu's user avatar
0 votes
1 answer
851 views

huge size of debug.log file in Magento2

I have created a cronjob which will create or update a number of products(around 2000 products, runs cron two times in a day). When the cron runs and update the products data, huge amount of "cache-...
amesh's user avatar
  • 551
1 vote
0 answers
130 views

How to debug in magento 2?

I'm new to magento and it's really difficult for me to debug codes if something went wrong. What are the best, free tools that we can use to speedup debugging, track the errors, find the exact point ...
P S's user avatar
  • 1,983
8 votes
1 answer
1k views

Magento 2 debug router

Is there some functionality to view all routes same like Symfony(router:debug) which shows us all the available routes(URL) in the current application.
AbdulBasit's user avatar
15 votes
7 answers
21k views

Template Path Hints not showing on front-end in magento2

In my case, after enable the path Hints, from magento2 back-end section, its not showing. I enabled the settings in. Store > Configuration > Advanced > Debug > Enabled Template Path Hints for ...
Anikesh Shahi's user avatar
1 vote
6 answers
6k views

magento 2 Error: cannot call methods on priceBox prior to initialization; attempted to call method 'option'

I am having an issue on my website the issue Error: cannot call methods on priceBox prior to initialization; attempted to call method 'option' My website https://www.cartaroo.com.cy/?...
Danial Butt's user avatar
2 votes
3 answers
12k views

magento 2 intercept invalid method

I am getting strange issue. I removed var folder and loaded the page .but no luck. I am using marketplace multi-vender extension as you can see in paths. 1 exception(s): Exception #0 (Magento\...
Peter's user avatar
  • 189
3 votes
0 answers
1k views

magento 2 Error: cannot call methods on modal prior to initialization; attempted to call method 'openModal'

Getting error magento 2 Error: cannot call methods on modal prior to initialization; attempted to call method 'openModal' First time it work fine but when I click on button to change area then it ...
Peter's user avatar
  • 189
0 votes
0 answers
2k views

magento 2 customer Exception message: Notice: Array to string conversion

Admin side on save customer getting following exception: Please help system exception: [2017-09-06 11:28:49] main.CRITICAL: Exception message: Notice: Array to string conversion in C:\wamp\www\...
Danial Butt's user avatar
0 votes
1 answer
3k views

magento 2 override block \Magento\Theme\Block\Html\Header

I am trying to override block \Magento\Theme\Block\Html\Header But it is not working at all no error. Any suggestion? Created new module. Header.php code /** * Copyright © 2013-2017 Magento, Inc. ...
Danial Butt's user avatar
0 votes
0 answers
2k views

Mage_Core_Model_Store_Exception

I have two store views with store codes en and mx. Store ids 1 & 2. This exception only happens if I save or update a product in english or spanish store views. Saving in default store view ...
Freejoy's user avatar
  • 809
1 vote
1 answer
1k views

How to trace the content $this->getChildHtml() inside head.phtml file

I am in head.phtml file and need to change the content of <?php echo $this->getChildHtml() ?> as there is no name inside getChildHtml(), i don't know thow to look in layout file then. I ...
inrsaurabh's user avatar
  • 1,676
2 votes
0 answers
853 views

Can not debug magento 2 use phpstorm with xdebug

When I try to debug magento2 by phpstorm and xdebug I got this error: /opt/lampp/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 ...
Hoàng Nguyễn's user avatar