Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

1
vote
1answer
20 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\...
2
votes
0answers
24 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 dont know how to do that. I've try console.log('some thing in here'), but doesn't work, i've clear cache as well. Here is my problem: I've 3 checkbox ...
0
votes
0answers
24 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): ...
0
votes
0answers
21 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: ...
0
votes
0answers
14 views

How to debug if magento 1 reach xml file, or xml tag?

When I need to know if magento search a php file or method, I just put Mage::log("controller is loaded"). But, how can I do something like that for xml tags or files? It is really hard to work like ...
2
votes
1answer
91 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 ...
2
votes
1answer
52 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” ...
1
vote
0answers
31 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.
2
votes
1answer
137 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 ...
0
votes
1answer
19 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(,|$))|((...
0
votes
1answer
97 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 ...
0
votes
0answers
93 views

MAGENTO XML ERROR </CONFIG>

I've this error in my magento system.log. 2018-01-03T20:12:42+00:00 DEBUG (7): XML_ERROR: <config/> 2018-01-03T20:13:21+00:00 DEBUG (7): XML_FILE: /home/xxxx/public_html/app/etc/config.xml ...
1
vote
0answers
37 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.
0
votes
1answer
209 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-...
1
vote
0answers
49 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 ...
0
votes
0answers
288 views

UPS Shipping Method Not Enable in Magento 2

I am working on to configuration UPS shipping method in Magento 2.1.7 After enable and fill all the fields, it is not shown on Checkout page, and I have set Debug ==> yes But not throw any ...
0
votes
0answers
237 views

How to disable debug.log

How to disable / turn off Debug.log file ? We dont have more space on our server Is that possible to delete the debug.log?
2
votes
3answers
1k 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 ...
1
vote
1answer
408 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/?...
0
votes
0answers
102 views

magento 2 deployment error logs

I am getting deployment errors.Using developer mode and magento 2 Not getting the idea that where exactly I am doing wrong. tried verbose -v -vv -vvv Processing file 'i18n/en_US.csv' for area ...
0
votes
1answer
936 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\...
1
vote
0answers
236 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 ...
0
votes
0answers
843 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\...
0
votes
0answers
193 views

How to Debug a Missing Invoice record in the sales_flat_invoice_grid?

We are running Magento 1.9.3.4 on a Linux CENTOS 7.3 x86_64 standard – host cPanel & WHM 64.0 (build 36); We have been running since December 24th 2016. We are very happy for the most part. ...
0
votes
0answers
32 views

magento 2 layed navigation filter results in right column

I have added list of store in left sidebar with names and ids. So my url become magento2/index.php/food-stuffs.html?storeID=8 So now I want to display list of products in right column when user ...
0
votes
1answer
669 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. ...
0
votes
0answers
213 views

magento 2 session issue on header.phtml

Facing some strange issue. Below code is taken from header.phtml My pop-up appear and it show city and areas but in the form submit, I am sending form data to custom module and setting it in session....
0
votes
0answers
901 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 ...
1
vote
1answer
336 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 ...
1
vote
0answers
348 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 ...
9
votes
3answers
3k views

How to use Debug Backtrace in magento 2?

In magento 1.x we can use backtrace like echo Varien_Debug::backtrace(true, true); exit; How can we use this facility in Magento 2?
3
votes
4answers
4k views

How to print or debug array or object in Magento 2?

I am working on Magento 2. if ($this->getRequest()->isAjax()) { $layout = $this->_layout; } How can I print or debug value of $layout in above code ??
1
vote
3answers
915 views

Mage::log clear log files

I want to programmatically clear manual log-files in order to always only see the new Logging Code for the last iteration. Is it possible (e.g. via a parameter) to only log the last iteration with ...
0
votes
2answers
773 views

Send email to a friend is not working

I am working with Magento 1.9.2 and send email to a friend is not sending emails. It gives sent successfully report message. But not sending. Any clue how to debug?
4
votes
2answers
8k views

Cache invalidate issue

in debug.log i see following entries: [2016-11-11 21:59:39] main.DEBUG: cache_invalidate: {"method":"GET","url":"http:/","invalidateInfo":{"tags": ["CONFIG"],"mode":"matchingTag"},"...
0
votes
1answer
80 views

No able to download system.log through FTP connection

I open files of a site in Magento 1.9 through Notepad++ with plugin for FTP connection. I don't try to download system.log file. The error is the following: Download of /balmain/var/log/system.log ...
2
votes
0answers
1k views

Magento 2: How to debug on Checkout Pages when having KnockOut JS & Web Template

http://localhost/magento2/checkout/ vendor\magento\module-paypal\Model\Hostedpro\Request.php public function setPaymentMethod($paymentMethod) { $this->paymentMethod = $paymentMethod; ...
1
vote
2answers
1k views

how to debug large object in Magento 2 without var_dump?

I usually var_dump object->getData() in my module to see what's it it. Because of the injection dependencies , it looks like i cannot do that anymore. When i try it, nothing is printed out, which is ...
0
votes
1answer
99 views

Session has been destroyed at product details page

From last few days, I have been facing a strange issue at product detail page. At product details page, session is changing.. Old session has been destroyed at new session is being created. Have ...
5
votes
1answer
5k views

Magento 2 - Turn on / off debug log

How to turn off / on the var/debug.log of Magento 2? Is there a way to set the log level?
4
votes
1answer
2k views

Magento 2 admin custom route results in 404 error

I'm beginning with Magento CE 2.1 and I'm stuck with an admin custom route issue that results in a 404 error. I created a module named 'VM_import' and get it registered (checked). Now i try to ...
0
votes
1answer
313 views

No error logs created in var/report

I recently bought a magento site from someone. I am now trying to move it to my own host, but the only thing I get is an error message. Trying to debug it, I googled around and I've seen the error ...
1
vote
1answer
185 views

Magento consuming a lot of memory on specific store view

I have a Magento store, with two store views, one for spanish language, and another one for english, so, I have this code: //setting spanish store view Mage::app()->getStore()->setId(8); $...
1
vote
1answer
348 views

If it is possible to debug PHP of the admin side in Magento2?

General question Just interesting, if it is possible to debug the admin side in Manento2. If it is, wold be glad to saw some hints. Debug process now For now I'm using PhpStorm with XDebug. If I ...
0
votes
0answers
17 views

Profiling of popup. Is it possible?

I'm going to run profiler for one page in admin area. It opened in popup. I enabled profiler in system / configuration, uncommented Varien_Profiler::enable(); in index.php Profiler started working, ...
6
votes
2answers
2k views

How to use zend_debug:dump in Magento2

Do we need to include the class in the constructor? In Magento 1, we simply use zend_debug::dump()->debug to debug object, how about for Magento 2?
1
vote
2answers
576 views

Store Debug Information error

I have been getting this Error via e-mail with the subject "Store Debug Information", And I can't figure out whats causing it. I know it has something to do with Captcha! How do you read this error?...
1
vote
1answer
156 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 ...
8
votes
2answers
4k views

How to debug Magento 2 code when using command lines?

Running a script in command line is something we frequently do in Magento 2. For example, when creating new module, we must run setup:upgrade command. We cannot see all the information we need to know....
1
vote
0answers
61 views

How to enable log in magento 2.02

I can't find any settings in developer tab from backend about log in version 2.02. Someone can told me where to find it