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.

0
votes
0answers
29 views

There has been an error processing your request /534208699961

Every time people look for a product on the web, this error comes out, not so much of magento, Exception printing is disabled by default for security reasons.
1
vote
1answer
42 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
25 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
26 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
265 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 ...
0
votes
0answers
34 views

Area code not set: Area code must be set before starting a session on deploy:set:mode production

I've spent many hours trying to solve the following issue. Some specs my server is running: Ubuntu 16.04 PHP 7.1 Magento 2.2.5 My issue is that when I try to switch from developer to production ...
1
vote
1answer
60 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
25 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
0answers
19 views

exception 'Exception' with message 'Quote totals must be collected before this operation.'

I am using Magento 1.9.2 and I have am receiving the below error in the exception-log file when a placing an order 2018-10-16T07:40:00+00:00 ERR (3): exception 'Exception' with message 'Quote totals ...
0
votes
1answer
62 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
16 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
29 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
71 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
35 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
25 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
116 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 ...
2
votes
0answers
49 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
41 views

Magento 2 Exception Error,

Magento 2.1.7 Exception Error :
0
votes
0answers
134 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
73 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
1answer
65 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
238 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
30 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
36 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
56 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
86 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
89 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
111 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
30 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
193 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
56 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
52 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
47 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
286 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
1answer
500 views

Itwm 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
571 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
161 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
59 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
76 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
37 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) ...
0
votes
2answers
81 views

How to Remove Runtime Exception during Setup:di:compile command in magento 2.1.12?

[RuntimeException] Source class "\Magento\CatalogRule\Api\Data\RuleLabelInterface" for "Magent o\CatalogRule\Api\Data\RuleLabelInterfaceFactory" generation does not exist .
0
votes
1answer
185 views

Exception #0 (Magento\Framework\Exception\LocalizedException): More than one node matching the query: /config/zip[@countryCode='US']/codes/code

PHP 7.0.22 and Magento 2.1.3 When I'm trying to add a customization to the US zipcodes masks, Magento throws out an exception Exception #0 (Magento\Framework\Exception\LocalizedException): More than ...
1
vote
1answer
246 views

Execution time: 94.293220043182 in magento2 [closed]

I have install fresh magento2.2.2 version in my local system When I am going to run php bin/magento setup:static-content:deploy -f command it's give me Execution time error... i have attached screen ...
0
votes
0answers
25 views

Warning in Exception log

Magento\Framework\Exception\LocalizedException: The element 'checkout.cart.item.renderers' already has a child with alias 'virtual' <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
0
votes
2answers
106 views

Can't run CRON PDOException Magento 1.9.3.8

I'm using the Magento Module AOE Scheduler do control my crowns. All the jobs in the cron are running without errors when I run them manually but the cron never runs. When I check the cron directly ...
0
votes
0answers
74 views

Errors in exception.log and prices not showing and saving

I get these errors in exception.log Can someone help me with this? [2018-04-13 11:45:23] main.CRITICAL: The element 'product.info.options' already has a child with alias 'default' {"exception":"[...
0
votes
1answer
49 views

Checkout problem with PayFast and Magento 2.2

When I try to make a payment on my site with PayFast, It lets me fill in all details and when you click on "Pay with PayFast" it gives this error: 1 exception(s): Exception #0 (Magento\Framework\...
0
votes
1answer
280 views

Magento 2 - catch NoSuchEntityException

I have following code: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customer = $objectManager->create('Magento\Customer\Api\CustomerRepositoryInterface')->getById($...