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

Questions tagged [exception]

The tag has no usage guidance.

1
vote
1answer
26 views

Getting error after adding arguments in constructor

I have added model in my constructor public function __construct( Context $context, PageFactory $resultPageFactory, \Vendor\Module\Model\Productsgrid $model ) { $this->model = $...
0
votes
0answers
13 views

Intercept any exception

how are you? So, I've been work in integration between Magento 2 and Microsoft Azure Application Insights to log the errors. There is the possibility to listen to all the exception that can occur in ...
0
votes
0answers
22 views

Trying to remove theme

We've had endless headaches with a theme we purchased when we first launched our site so we are trying to finally migrate away from it, but it's not letting go easily. Whenever I am trying to begin ...
0
votes
0answers
47 views

Magento - 2.2.6 : Unable to send mail error on not found page

I am working on Magento2.2.6 website. https://www.depoto.com/visakhapatnam When i tried to open not existed page on website. I am getting the unable to send mail error. 2 exception(s): Exception #0 ...
0
votes
2answers
45 views

Error during unserialization

I have some problems during importing products and I have repeated this error in exception.log file. exception 'Exception' with message 'Error during unserialization' in /home/mywebsite.com/...
0
votes
1answer
23 views

Handling REST API exceptions

I have an extension that has some code to save a custom object via REST API service. I have a try and catch (\Exception $e) around the save method, but for some reason I get the following message: {...
0
votes
0answers
17 views

Exception Not Working

I have an observer for sales_order_save_before The custom message shows when the user is logged in, but throws the generic message if they are a guest. Does anyone know why this is happening?
0
votes
1answer
9 views

Getting:'Mage_Core_Exception' with message 'Invalid block type:

I just started getting this error in my exceptions log file. I'm running 1.7.0.2 and nothing has been touched on the site in a long time and this is popping up repeatedly. exception '...
0
votes
1answer
82 views

Calling bin/magento return an exception

I have a Magento 2.3.0 website that works correctly but suddenly (maybe after a products import, but also other various activities were done) when I try to call ANY (reindex, deploy...) command of "...
0
votes
0answers
44 views

Exception #0 (Magento\Framework\Config\Dom\ValidationException)

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'action', attribute 'ifvalue': The attribute 'ifvalue' is not allowed. Line: 937
1
vote
3answers
264 views

Error after upgraded to 2.3.0

Recently I had upgraded version from 2.2.6 to 2.3.0 everything is working fine except frontend.It is showing below exception.Admin working perfectly. 1 exception(s):Exception #0 (Magento\...
0
votes
1answer
224 views

Invalid template file:in Magento 2.2.7

When i am installing magento 2.2.7 in my local dev window system using wamp, Than i getting 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'D:/...
1
vote
1answer
154 views

Magento 2 : Sitemap Generation Warnings - Invalid header line detected

I am using magento 2.2.4. The site is working fine. But everyday I got a sitemap error email. The below lines are in the email. Sitemap Generation Warnings Invalid header line detected Also an ...
0
votes
1answer
34 views

Main.critical error in exception

I am working on Magento2.2.6 website. When i checked the exception.log file, i found the following error. [2018-11-22 13:15:59] main.CRITICAL: The file "/home/depoto/public_html/var/tmp/_cache/...
0
votes
1answer
42 views

Order not placed in magento2

Not able to place the order in magento2 checkout. getting below error when place order button is clicked. An error occurred on the server. Please try to place the order again. The request to rest/...
2
votes
1answer
505 views

Magento 2: Zend_Http_Exception Invalid header line detected

I am get the following error: [Zend_Http_Exception] Invalid header line detected. In the terminal when running such below commands as: php bin/magento cache:flush or php bin/magento setup:upgrade ...
1
vote
1answer
229 views

Magento 2: Required parameter 'theme_dir' was not passed

I have installed the following module: https://landofcoder.com/magento-2-out-of-stock-notification.html It works like it's supposed to but getting an error. When looking inside the module i see ...
2
votes
0answers
33 views

Element 'argument': The type definition is abstract and The state object to be removed is not the first in the list

I'm throwing this error on my /success/ page and it seems like such a generic error. It looks like further down the trace it's pointing to stuff like GoogleTagManager and other third-party modules ...
0
votes
1answer
95 views

Can't add a product to cart

in my store I have some configurable product and other simple product. No problem until this morning. I can't add any product in my cart anymore. I don't know why, I have only this exception : &...
0
votes
0answers
18 views

Magento new admin gives an error and doesn't let me log in with any other admin user

I'm using Magento 1.9.2.4 and i tried to create a user using this code that i found in someone else's answer: define( 'USERNAME', 'supermanXX' ); define( 'PASSWORD', 'supermanXX' ); define( '...
0
votes
0answers
39 views

Loads of system error logs in Magento 1

For instance when i'm clearing cache i get some errors and they are pointing to a core module here: 2018-10-04T15:20:26+00:00 ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser ...
3
votes
2answers
123 views

Magento2 need to throw 500 internal server error in webapi response

Can anyone let me know how to throw 500 internal error in api response with REST API? i have used below right now: throw new NoSuchEntityException( __( 'Field : '.$fields.' required.' )); but it ...
1
vote
1answer
86 views

Magento 2 Message Manager not working in custom module Front end Controller

My controller without try catch: class View extends Action { protected $resultPageFactory; protected $productRepository; protected $_messageManager; public function __construct( ...
2
votes
0answers
28 views

Magento 2 Block Payment and Order

I am trying to write a plugin that will block a payment and place order based on a condition. I have this: Vendor/Module/etc/di.xml <?xml version="1.0" encoding="UTF-8"?> <...
2
votes
0answers
144 views

Magento2 - How to return string as object in webapi response?

Can anyone let me know how to return success message with object like this same as magento does for the exception in REST webapi: { "message": "A customer with the same email already exists in an ...
3
votes
1answer
97 views

Magento 2.2.1 Error(Item (Magento\SalesRule\Model\Rule) with the same ID “33” already exists)

I got an error in log like main.CRITICAL: Item (Magento\SalesRule\Model\Rule) with the same ID "33" already exists. {"exception":"[object] (Exception(code: 0): Item (Magento\SalesRule\Model\...
0
votes
0answers
186 views

Magento 2 : collection filter error : Exception #0 (RuntimeException): Illegal state

I am having problem with collection filter I am using event catalog_product_collection_apply_limitations_after to add collection limitations In the observer i am using below code to apply filter. ...
1
vote
2answers
172 views

Exception usage in magento2

I have created a custom controller to create customer using try catch, below is my magento1 code of controller How this can be used in magento2? try { $user = Mage::getModel('customer/...
1
vote
2answers
113 views

Exception Error-Undefined index: category-node-310

can any one help on how to fix this ?? Exception #0 (Exception): Notice: Undefined index: category-node-310 in /home/cp376418/public_html/app/code/TemplateMonster/Megamenu/Model/Configurator/Row/...
1
vote
0answers
565 views

Get error message by Report ID in magento2 Programmatically

message": "Internal Error. Details are available in Magento log file. Report ID: webapi-5b5aff5a570b7 I am getting above message from one of the custom Api. From the report id "webapi-5b5aff5a570b7" ...
0
votes
0answers
31 views

Exception in controller

in my controller, I have this code (I'm getting last order through a form): ... foreach($array as $item){ try { $product = $this->...
0
votes
0answers
50 views

magento 2: exception error

I am working on the theme and today i noticed that the search result page is broken. This is the Exception captured: 1 exception(s): Exception #0 (Magento\Framework\Config\...
0
votes
0answers
16 views

Avoid exception

I'm creating a page where the user can add to his cart the products from his last quote. But when there's not enough product, I have an exception. How can I avoid to show this exception and display ...
0
votes
1answer
96 views

Error when trying to put product into cart (tempnam())

On my live system (PHP7.1 fcgi, magento 2.2.4, prod mode) I get an error when trying to put a product into cart. The product does not end up in the cart. Instead I get this error in the exception.log:...
0
votes
1answer
125 views

How to throw custom exception from cartcontroller?

public function addAction() { if (!$this->_validateFormKey()) { $this->_goBack(); return; } $cart = $this->_getCart(); $params = $this->getRequest()->...
4
votes
1answer
94 views

Overriding default magento exception handler

How would I aproach this? Everything I found so far informed me about extending magento exception handler, although I want to override, or if it's not possible then call my custom handler when ...
1
vote
0answers
12 views

Problem with installation

I have an old and a new version of Magento 2 installed. However, I have to use the old version because the server only supports PHP 5. After installing this error has appeared. After that I tried to ...
0
votes
1answer
135 views

DI Compile fails with “Area code not set” error

I'm trying to use the \Magento\Sales\Model\InvoiceOrder class to invoice some orders. If I include the class in my constructor, however, then I get the "Area code not set: Area code must be set before ...
2
votes
1answer
42 views

Magento2.2.4 : Uninstall a theme throw exceptions?

I have created a theme and then uninstalled it. The storefront or admin view is not using that theme further. But when I restart the server it gives exceptions as follows. How can be fixed this? 1 ...
0
votes
1answer
246 views

running setup:upgrade causes an error from a disabled module

When I run bin/magento setup:upgrade I get this error: Source class "\WeltPixel\Backend\Model" for "WeltPixel\Backend\Model\Logger" generation does not exist. [RuntimeException] Source class "\...
0
votes
0answers
69 views

Logging not working

The log files (var/log/system.log and var/log/exception.log) exists and the folder var and all subfolders and files even have 777 permission, but the log file is not working. I already checked if ...
2
votes
1answer
60 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 ...
0
votes
0answers
62 views

Magento 2 - change user in Ubuntu

My previous directory is this pratyush@pratyush-To-be-filled-by-O-E-M:~$ but when I run sudo -i for removing xampp then it's showing this root@pratyush-To-be-filled-by-O-E-M:~# How can I move ...
0
votes
1answer
393 views

Magento2 : Zend_Json_Exception : Decoding failed: Syntax error in Magento 2

I have a custom module which is working perfectly in my local machine but while I am trying to enable my module in my magento 2store hosted in cPanel, I am getting below error > bbcmanagement@...
0
votes
2answers
843 views

Item with the same ID “860” already exists

1 exception(s): Exception #0 (Exception): Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "860" already exists. I am using Magento 2.2.2 . When switched to developer mode, I got ...
0
votes
0answers
684 views

PDOException: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

I had installed Magento2 in Xampp earlier and now I am trying it removing xampp with local apache2, php and mysql server. I have used the backup database and the previously used Magento2 folder here. ...
1
vote
1answer
201 views

Refreshed all my Magento2 cache and website is down now

I just used all those functions: Flush Magento Cache Flush Cache Sm Module Flush Catalog Images Cache Flush JavaScript/CSS Cache Flush Static Files Cache And refreshed all my ...
0
votes
3answers
78 views

custom theme: add template file in default.xml

here my default.xml <body> <referenceContainer name="header-wrapper"> <block class="Magento\Framework\View\Element\Template" name="customeline" template="...
0
votes
0answers
99 views

Atandra T-Hub and Magento2 API call exception

I have a Magento 2.2.3 store where we are using T-Hub as our Shipping/Order Management Software. This Software communicates with Magento2 and QuickBooks. We download the Order in T-hub from Magento2,...
0
votes
1answer
41 views

Magento 2: Track Order

I have followed the below steps to install 1) downloaded from https://marketplace.magento.com/mconnectsolutions-trackorder.html 2) extracted and placed code app/code/Mconnectsolutions/Trackorder 3) ...