Stack Exchange Network

Stack Exchange network consists of 175 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]

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

1
vote
1answer
30 views

Magento local version doesn't load extensions properly

I have a running live instance of Magento 1.7. I am trying to setup a local dev env. Below is what I've done so far: Copy the project from server Import a dump of the database Edit local.xml with ...
2
votes
0answers
26 views

Notice: Undefined index: magento_eav_attribute_set in/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152

bin/magento setup:upgrade Notice: Undefined index: magento_eav_attribute_set in /vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152 If I understand correctly this is ...
1
vote
1answer
17 views

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '213894' for key 'PRIMARY

The magento works fine, and suddently starts giving an exception. The report says: a:5:{i:0;s:96:"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '213894' for key 'PRIMARY'";i:1;...
1
vote
1answer
25 views

How to “reset” or reinstall Magento 2 without data loss

While working in Magento 2 somehow I have managed to either corrupt some files or permissions. I haven't been messing with xml files but jumping from development to production and back to development. ...
0
votes
2answers
13 views

Error after installing Simiconnetor app builder in magento 2

after installing when i'm tring to access the general setting n simi option i'm getting the followings error Exception #0 (ReflectionException): Class Simi\Simiconnector\Model\Config\Source\ViewType ...
0
votes
1answer
17 views

Magento 2.3.1 : Validation exception in developer mode

When switching from production mode to developer in Magento 2.3.1 the enclosed exception occurs. I have tried to find a solution for 2 days. From what I've read this is probably caused by a .xml file ...
1
vote
0answers
25 views

Magento2.2 - - Failed to read session data

If you open the front end with multiple tabs in the browser, the following error is output:. Exception #0 (Exception): Warning: session_start(): Failed to read session data: user (path: /var/opt/remi/...
2
votes
1answer
29 views

Blank page showing. Magento 1.9

<?php ini_set('max_execution_time', 93600); ini_set('memory_limit', '4096M'); require str_replace('importers', '', dirname(__FILE__)) . 'app/Mage.php'; error_reporting(E_ALL); ini_set('...
0
votes
1answer
41 views

Magento 2.3.1 Base table or view not found

Magento 2.3.1 keep filling logs with these errors: system.log [2019-05-04 23:30:12] report.INFO: SELECT `e`.*, `cat_index`.`position` AS `cat_index_position`, `price_index`.`price`, `price_index`.`...
0
votes
0answers
10 views

Magento throw new Mage_Payment_Exception 503 error

I'm working on a custom payment extension, when save payment method it validate some inputs added from payment method selection step. if those not valid it returns throw new Mage_Payment_Exception($...
0
votes
0answers
26 views

Magento Show Payment Method Validation

I'm working on a magento 1.9 payment gateway extension. It have a little form on payment method step and when we fill and clickon next button it validate after validate it call to this function /...
0
votes
0answers
29 views

Element 'css': This element is not expected in magento2.2.5

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'css': This element is not expected. Line: 542 facing this issue in 2.2.5. My store is working fine but ...
1
vote
0answers
25 views

Magento 2 Problem with arguments in di.xml

The problem is this: I have a module, which passes arguments from di.xml to a class. Deploy mode is a developer. When I make changes in any arbitrary module or install a new module, and subsequently ...
0
votes
2answers
37 views

Magento 2 when I click on frontend my account cannot open and it shows error

I am facing this issue. My XML file is app/code/Prayag/Module/view/frontend/layout/cms_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
2
votes
1answer
83 views

Invalid argument supplied for foreach() Error in magento 2.3

I am getting this error on some Products on Magento 2.3 when I try to view them: 1 exception(s): Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /www/htdocs/...
1
vote
0answers
47 views

Magento 2 Warning: Division by zero : vendor/magento/module-sales/Model/Order/Item.php [closed]

Please Advise on it, i got this error, main.CRITICAL: Warning: Division by zero in vendor/magento/module- sales/Model/Order/Item.php on line 411 {"exception":"[object] (Exception(code: 0): ...
1
vote
0answers
45 views

Magento 1.9 - Sign up - Cannot save the customer

Installed MailChimp on Magento 1.9, now the signup customer not working. It throws "Cannot save the customer". Reviewed the exception log got the below issues. 2019-03-21T10:19:57+00:00 DEBUG (7): ...
4
votes
2answers
112 views

How to resolve Exception #0 (Exception): Notice: Array to string conversion Mailchimp Error

Exception #0 (Exception): Notice: Array to string conversion in /public_html/vendor/magento/framework/View/Element/Html/Select.php on line 244 line 235-244 of the Select.php public function ...
2
votes
0answers
16 views

Product pages open with errors

I don't know if it is the reason to introduce custom CSS. Now my website opens some product pages, which prompts the following error. But some product pages are open normal. How can I solve it?
1
vote
0answers
52 views

CatalogSearch is not working after upgrading to Magento 2.3

Recently I've upgraded from Magento 2.2 to Magento 2.3. After upgrading, CatalogSearch is redirecting to Home page of the website. Previously I /catalogsearch/result was working and shown all ...
2
votes
1answer
15 views

Magento 1.9 - exception 'Mage_Core_Exception' with message 'Invalid block type

Checking the log file of Magento 1.9, in two web site, I find this row: exception 'Mage_Core_Exception' with message 'Invalid block type: ES_Newssubscribers_Block_Newssubscribers How to remove ...
0
votes
1answer
23 views

How to throw exception with stacktrace?

I need my extension to throw an exception which includes a stack trace. I tried Mage::throwException('message') but nothing is logged in var/log/exception.log nor at var/log/system.log nor in the ...
1
vote
1answer
69 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
16 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
27 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
209 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
101 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
65 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
18 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
12 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
270 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
57 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
920 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
609 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
207 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
58 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
160 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
784 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
448 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
62 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
226 views

Element 'css': This element is not expected. in Magento 2.2.5 (upgraded from Magento 2.1.9)

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'css': This element is not expected. Line: 542 facing this issue in 2.2.5. I have upgraded from Magento ...
0
votes
1answer
150 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
19 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
70 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
174 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
169 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
204 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
172 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\...
2
votes
0answers
315 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. ...