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

The tag has no usage guidance.

0
votes
0answers
12 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
43 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
15 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
23 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
43 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
25 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
22 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
65 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 ...
1
vote
0answers
26 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
29 views

Magento 2 Exception Error,

Hello Please help me to sort out this error on magento 2.1.7 Please chexk screenshot.
0
votes
0answers
126 views
0
votes
0answers
74 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
44 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
38 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
81 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
29 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
22 views

magento 2: exception error, please help on debug

i am working on a new magento 2 site. I am working on the theme and today i noticed that the search result page is broken. This is the Exception captured, please help: 1 exception(s): ...
0
votes
0answers
15 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
33 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
53 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
85 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
90 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
23 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
121 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
48 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
37 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
44 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
179 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
200 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
441 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
125 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
48 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
52 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
36 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
64 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
105 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
237 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
22 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
85 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
59 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
37 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
164 views

Magento 2 - catch NoSuchEntityException

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

Magento 2 CLI Area code not set: Area code must be set before starting a session

When I use one of the following commands, php bin/magento module:status php bin/magento setup:upgrade php bin/magento module:enable <module_name> I'll get an error [Magento\Framework\...
1
vote
1answer
50 views

Exception error - What exactly to correct. Magento 2.2 on localhost was fine

I can access admin pannel (backend), but frontend localhost/magento will only display this. I have run compile, upgrade, clean and flush commands. Was working fine was only make changes to css ...
0
votes
0answers
24 views

Exception after patch 10415 on Version 1.7.0.2

After installing patch 10415 on version 1.7.0.2 I get this error. There has been an error processing your request Cannot send headers; headers already sent in /home/user/www/app/code/core/Mage/Core/...
0
votes
0answers
109 views

checkout.cart.item.renderers' already has a child with alias 'default' {“exception”:"[object]

I get the following issues in VAR/LOG/Exception.log Can anyone help me to solve it? main.CRITICAL: The element 'checkout.cart.item.renderers' already has a child with alias 'default' {"exception":"[...
0
votes
1answer
278 views

Magento 2 - Exception : Invalid method Magento\Customer\Block\Form\Register::escapeHtmlAttr

I am getting error when I click on "crate an account" link. Does anyone have a solution for this ? The Error is ... 1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): ...
0
votes
0answers
17 views

Exceptioin after installing theme

I installed a theme in my magento store. After deploying the frontend shows the following error: 1 exception(s): Exception #0 (Magento\Framework\Exception\FileSystemException): The path "_requirejs/...
0
votes
0answers
47 views

Unable to start Express Checkout - No Changes Made

I've suddenly started getting the error in the title (minus "no changes made"). No updates have been made on the site recently. I've verified permissions across all directories and files. I am using ...