Questions tagged [exception]

Denotes questions related to exceptions (An unusual condition during computation)

Filter by
Sorted by
Tagged with
2 votes
1 answer
614 views

Undefined Component - Stack Trace Debugging?

I'm fairly new to magento2 and trying to fix a broken extension. I'm having a lot of trouble with stack traces, I'm not sure if it's just the way magento is or if it's because of reflection making it ...
Zachary Craig's user avatar
13 votes
6 answers
13k views

Category error : Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "191" already exists

I know there is a similar issue regarding a product, but now I've got this error with a category. I can't recall that I did something different, it just all of a sudden started throwing this error as ...
Giel Berkers's user avatar
  • 12.1k
0 votes
2 answers
430 views

cron has started throwing and exception 'Mage_Core_Exception' with message 'Mage registry key "_singleton/admin/session" already exists'

Magento 1.9.2.1 has just started throwing the exception 'Mage_Core_Exception' with message 'Mage registry key "_singleton/admin/session" already exists' it happens with different cron jobs - if I ...
grizlyadams's user avatar
1 vote
2 answers
181 views

RuntimeException during New theme Installation

I have installed magento 2 and previously working on default Luma theme. Now I am trying to install new free theme in my magento. But when I am using below command: php bin/magento setup:upgrade –...
Gaurav Agrawal's user avatar
0 votes
1 answer
156 views

Desktop theme is loading in both mobile and desktop

I want to set two different themes for desktop view and mobile view. After all configuration also the mobile theme is not coming in mobile view , instead its loading the desktop theme. My mobile ...
Pattnaik's user avatar
1 vote
0 answers
424 views

"There has been an error processing your request" while moving to server

I have created my magento website on my localhost with magento 1.9.x. With windows 7 and xaamp server. URL was 127.0.0.1/demo Database name was demo Now I want to move it from localhost to my ...
parish's user avatar
  • 151
0 votes
1 answer
1k views

SoapFault exception: [1] Internal Error after upgrading to magento 1.9.3

After upgrading to Magento 1.9.3, I am having loads of problem, currently I am having the above error. After looking at the exception log here is what I find: SoapFault exception: [1] Internal ...
Sid's user avatar
  • 1
3 votes
2 answers
7k views

Magento 2: 'Invalid sender data' While sending custom Email

Below is code that i am using send mail , and getting 'Invalid sender data' <?php namespace Mycompany\Orderupdate\Helper; use Exception; use Psr\Log\LoggerInterface; use Magento\...
Vishwas Bhatnagar's user avatar
1 vote
0 answers
73 views

Magento 2 Product editing error: Form\Gallery doesn't extend Element\AbstractElement

Today we've updated from version 2.0.6 to 2.1.2, it was everything but flawless. But I've managed to fix all te problems except one: When editing a product I receive this error: Exception #0 (...
Xaiamedia's user avatar
  • 341
2 votes
1 answer
356 views

Magento is not showing error if I set duplicate SKU

I have a requirement where I have to update Magento products from outside of Magento code (a CodeIgniter project). Everything is working perfectly, but, one thing is wrong, if I save 2 products with ...
Umair Ayub's user avatar
1 vote
2 answers
561 views

I want to refresh the page automatically if users clicks on CHECK button

I want to refresh the product page automatically if the user clicks on "CHECK" button of zipcode field. I want to refresh the page automatically every time user click on CHECK button of zipcode or ...
Salman Dalal's user avatar
2 votes
2 answers
716 views

Call to a member function getRootCategoryId() on a non-object on $product->save()

Magento CE 1.9 I'm having some trouble with an exception being thrown and I'm not sure why. Background I have some code that is running on Cron which updates the attributes of one or more products ...
Mattias's user avatar
  • 123
0 votes
2 answers
327 views

Want to make the add to cart button freeze if zipcode if invalid

I am building the ecommerce magento website named "bookslab.in". I want to make the add to cart button freeze if the zipcode of the users they entered in the zipcode field is invalid & want to ...
Salman Dalal's user avatar
0 votes
1 answer
131 views

Want to add an exception on add to cart button

I am building an ecommerce site name bookslab.in. I want to add the exception on add to cart button. If the zip code of the users are invalid then i want a pop message that says "Your zipcode is ...
Salman Dalal's user avatar
1 vote
1 answer
4k views

“An error has happened during application run.” error while installing Magento 2.1.2 with sample data

I've uploaded Magento 2.1.2 CE on my server and want to install it. But after one minute, I get this error: An error has happened during application run. See exception log for details. This is ...
Mohammad Saberi's user avatar
4 votes
2 answers
3k views

Invalid webservice adapter specified

I keep receiving this error in my exception log: 2016-10-14T09:20:43+00:00 ERR (3): exception 'Mage_Core_Exception' with message 'Invalid webservice adapter specified.' in /homepages/22/d123456/...
jensusu's user avatar
  • 113
0 votes
1 answer
107 views

Magento 1.9.2 exception.log throwing up erros continously

Sites been slow and many people are unable to access to the site. The exception.logs been throwing up an an invalid block error and i cant find where this error is cropping up from. The error is ...
I rehman's user avatar
0 votes
5 answers
23k views

Magento 2: Product Import Error - Product Type is invalid or not supported. Duplicates found in column names [SOLVED]

I'm using Magento 2 CE Version 2.1.2 I have exported Sample CSV File from Magento Admin & importing the same file again. Then also it's not working for more than 1 record. If you have only 1 ...
Jackson's user avatar
  • 9,749
1 vote
0 answers
1k views

Magento 2: Runtime Exception

I got below error on my Magento 2 CE Version 2.1.0 on WAMP 1 exception(s): Exception #0 (RuntimeException): The path "D:/wamp/www/magento2/var/generation/Magento/Config/Model/ResourceModel/Config/...
Jackson's user avatar
  • 9,749
1 vote
1 answer
66 views

Facing exception error while loading magento [duplicate]

I am facing this error. Kindly give me a solution to resolve this. Exception printing is disabled by default for security reasons. Error log record number: 1845623148
Muhammad Hassam's user avatar
2 votes
3 answers
10k views

Magento 2: Admin Attention Something went wrong

I'm using Magento 2 CE Version 2.1.0 I already referred Magento SO post with the same error. When I'm going to Edit Any of the Product then while loading it's giving this error. Below are the ...
Jackson's user avatar
  • 9,749
2 votes
0 answers
454 views

Magento 2: Runtime Exeception

I'm getting below kind of Exception exception 'RuntimeException' with message 'The path "D:/wamp/www/magento2/var/generation/Magento/Swatches/Block/Adminhtml/Product/Attribute/Edit/FormFactory.php....
Jackson's user avatar
  • 9,749
0 votes
1 answer
315 views

Invalid Blocktype in Mage.php

Hi i have this error in Log File The Extension Free Besteller is deleted Can anybody help me please 2016-09-19T20:22:26+00:00 ERR (3): exception 'Mage_Core_Exception' with message 'Ungültiger ...
Andi Wyder's user avatar
0 votes
3 answers
2k views

Magento 2: RuntimeException it is being used by another process

When I do clear cache using command line & refresh page on Frontend 1st time it gives below exception. 1 exception(s): Exception #0 (RuntimeException): The path "D:/wamp/www/magento2/var/...
Jackson's user avatar
  • 9,749
2 votes
1 answer
1k views

Configurable product does not have sub-products magento 2

I am facing one problem with the configurable product. I am using Magento 2.1.1 and when i open category page than it throws me below error. 1 exception(s): Exception #0 (Magento\Framework\...
Sanjay Jethva's user avatar
2 votes
1 answer
801 views

An error occurred while saving the attribute set. magento 1.9.1

I am trying to save to attribute in attribute set but getting error like An error occurred while saving the attribute set can anyone help. In Exception Log file getting below error Exception ...
Jack's user avatar
  • 436
3 votes
1 answer
5k views

Magento2 custom collection invalid method exception

I made a custom CRUD Module and when i call the collection without the addFieldToFilter function everything works fine but when i try to filter the collection i get the exception 1 exception(s): ...
Cenzo's user avatar
  • 173
13 votes
1 answer
297 views

Is there a good reason to put the same code in both try AND catch blocks?

In the file: app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Datetime.php, within the render() method, it seems like the exact same code is being run in both the try and catch blocks. ...
David Angel's user avatar
9 votes
1 answer
6k views

Custom Exceptions for module for Magento 2

There are a few good-answered questions like this for Magento 1, but I haven't found anything for Magento 2. What should be the way for adding in custom module custom Exception class. Can I add some ...
Bartosz Kubicki's user avatar
0 votes
1 answer
892 views

Error while trying to upgrade magento through composer

I am trying to update magento/product-community-edition 2.0.5 to version 2.1.0. To do that I replaced version in composer.json and tried to run composer update -vvv. Unfortunately, script is failing ...
Maciej Paprocki's user avatar
1 vote
2 answers
300 views

How can i solve the error : Fatal error: Uncaught exception for removing duplicate images

I am try to delete duplicate images using this source link
Gem's user avatar
  • 669
1 vote
0 answers
378 views

REST API correct error handling

I'm migrating a bunch of xmlrpc API code from magento1 to the rest API in magento two, and was wondering if anyone knew the correct way to return API errors. Previously we would've been throwing a ...
Pat Marx's user avatar
  • 207
23 votes
2 answers
43k views

Exception handling in Magento 2

In Magento 1 I was able to catch exceptions and log them into the exception.log file using Mage::logException($e); Now, in Magento 2, I can catch (\Exception $e) but what do I do with the caught ...
Andre Nickatina's user avatar
5 votes
1 answer
2k views

How should I define and use a custom module Exception?

I want to create a custom Magento exception class for my module. Are there any rules for how I should do it? Where should I put the new class? How should it be thrown? I'm familiar with Mage::...
scrowler's user avatar
  • 2,004
4 votes
4 answers
14k views

Magento2 custom module overrides layout: The element "checkout.cart.item.renderers" already has a child with alias "simple" in exception log

In a custom module I override the cart item template. It works, but my exception log is filling up with The element "checkout.cart.item.renderers" already has a child with alias "default" and alias "...
tecjam's user avatar
  • 4,013
2 votes
1 answer
2k views

Magento 2 - How to catch Exception when run batch file?

When I ran my batch file and get Excetion below: I try to catch exception but I can not catch. My code sample is below: /** * {@inheritdoc} */ protected function execute(InputInterface $input, ...
MrTo-Kane's user avatar
  • 3,616
0 votes
1 answer
35 views

Desktop theme for Android tablets

I am using a separate theme for mobile devices but I still want to present the desktop theme for Android tablets. here's my matched expressions for the exception iPhone|iPod|BlackBerry|Palm|...
Haim's user avatar
  • 2,104
1 vote
1 answer
1k views

Magento - Invalid block type

i open this topic for a problem that is generate in exception.log 2016-03-25T15:25:07+00:00 ERR (3): exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Blog_Block_Blog' in /var/...
Gabriel91's user avatar
  • 487
0 votes
1 answer
46 views

lamp stack localhost using vagrant - not getting any error messages in var/log for system.log or exception.log

It's a magento 12 ee build... I went into some core code and purposely changed a method for log exception purposes to see if i would throw and error. It broke my store (like i suspected) and i got the ...
thismethod's user avatar
5 votes
3 answers
2k views

Magento 1 - Get email if cron is not working / cronjob fails

I was wondering if there is an option in Magento ver. 1.9.2.2 to get an email if cron is not running or more important if a cronjob fails. I didn't find any configuration in backend nor any ...
Xavin's user avatar
  • 405
1 vote
2 answers
4k views

404 Page - Front controller reached 100 router match iterations

In a fresh install of Magento Community Edition 1.9.2.2, if I try to hit a 404 page (wrong url) I get a Magento Exception, instead of the regular CMS No Route page. Example URL: https://www.example....
J Plana's user avatar
  • 327
0 votes
1 answer
559 views

Invalid block type: Code is working fine locally but after uploading to live enterprise site, it is giving error

I am new to magento. I followed one tutorial and created one custom report. Report is working fine on local pc but after i deployed the report on live server it is not giving any error and showing ...
nzafar's user avatar
  • 3
0 votes
1 answer
4k views

how to debug Invalid block type

I am trying to insert a custom module/block in my home page. but I am unable to figure out how to call the block from layout file. can some one explain how to debug the log file. I can see that my ...
wlin's user avatar
  • 382
3 votes
2 answers
753 views

Magento Exception log

I am getting the same exception over and over in the log, it actually making the log file very large over time. I'm really not sure how to even begin fixing this: 2016-01-14T05:30:34+00:00 ERR (3): ...
Johnnyrt's user avatar
66 votes
13 answers
104k views

'Area code not set' issue in custom CLI commands in Magento 2

I'm getting following error while updating data through CustomerRepositoryInterface [Magento\Framework\Exception\SessionException] Area code not set: Area code must be set before starting a ...
MJ.'s user avatar
  • 829
2 votes
0 answers
749 views

Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'Mage_Core_Model_Config_Element' is not allowed'

I was trying to build a custom payment extension for magento. I noticed when I click "Place Order", I got this error from network tab. I tried testing with all cache disabled and enabled. Also I'm not ...
SKM's user avatar
  • 43
1 vote
1 answer
1k views

Magento 2 SOAP exception: missing values for message placeholders

When calling the Magento2 SOAP API to create a new product, I get a generic error message saying 'Invalid product data: %1'. I was hoping that the Magento2 API would throw better exceptions than ...
Erik's user avatar
  • 177
8 votes
2 answers
27k views

Magento 2.0: Exception printing is disabled by default for security reasons

I was able to login into Admin and see the website albeit without any data or graphics. shortly I received this message: Exception printing is disabled by default for security reasons I don't ...
George Ng's user avatar
  • 101
0 votes
0 answers
483 views

Call to a member function getId() on null in <magento_path>/lib/Varien/Data/Tree/Dbp.php

When I want to switch the store view under Catalog->Manage Categories, from "All store views" to a specific one, I always get this exception: Call to a member function getId() on null in <...
Artisan72's user avatar
  • 293
1 vote
1 answer
2k views

How to diagnose “Invalid block type ..” error?

Not sure what's wrong with this, have been googling around but cannot find a solution, hopefully someone can help me here. exception 'Mage_Core_Exception' with message 'Invalid block type: ...
ankermarco's user avatar