Questions tagged [exception]
Denotes questions related to exceptions (An unusual condition during computation)
282
questions
0
votes
0
answers
47
views
Fatal error: Uncaught Exception: User Error:
Fatal error: Uncaught Exception: User Error: Some transactions have not been committed or rolled back in /Users/apple/Sites/magento24/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 4067 in /...
0
votes
1
answer
27
views
Exception log errors (The element "order_totals" can't have a child because "order_totals" already has a child with alias)
Trying to clean up my logs and I keep getting this error over and over in my exception logs.
[2022-12-27 20:07:39] report.CRITICAL: The element "order_totals" can't have a child because &...
0
votes
1
answer
24
views
Display error notice instead of Exception text default for Customer edition
I want to display the error notice when a specific rule match when we edit the customer informations on backend. I tried with default \Exception class or Magento specific but it show the error as text ...
1
vote
3
answers
195
views
On checkout page validate cart items with custom condition
Looking for ideas that implement best-practices and offer the best user-experience.
I'd like to check cart items for custom conditions when the checkout page (not the cart page) loads. I've looked at ...
1
vote
0
answers
34
views
Can't check requested quantity for products without Source Items support at reindexing
Please help regarding this issue.
0
votes
1
answer
206
views
Exception #0 (ReflectionException): Class Ves\PageBuilder\Model\Config\Source\ElementList does not exist
Magento 2.3.7, PHP 7.4.30
I installed the VES Page Builder extension (downloaded file from land of coder) manually, according to their readme:
Upload module files in the module packages in to folder: ...
0
votes
2
answers
252
views
Get concrete error message of CouldNotSaveException
We need to get concrete error message when Magento\Catalog\Model\ProductRepository throws CouldNotSaveException during saveProduct()
private function saveProduct($product): void
{
try {
$...
0
votes
1
answer
559
views
Magento 2 Message Queue - Type Error with expected string, null given
First of all, I am not new to Magento 2 development, I know how to create modules. However, I struggle for 3 days now to get a simple Message Queue in Magento 2 to work. Here are my XML files:
...
1
vote
0
answers
77
views
Filter Creditmemmos with Date is throwing error in admin
While In admin and filter the creditmemos with specific dates it throwing exception.
UI component could not be rendered because of system exception , errorcode: "23000"
Tried clearing cache,...
1
vote
1
answer
240
views
Magento 2 : How to correctly return 401 unauthroized in graphql request
Existing Magento GraphQLExceptions return 200-th http code.
What would be a correct way to throw 401 for example? Or at least show custom status code in response.
1
vote
0
answers
52
views
Magento 2 we are unable to change attribute set from product edit
it shows an error in the exception log and the screen is stuck when trying to change the attribute set of the product
0
votes
0
answers
83
views
Is it a bad practice to throw an exception in the plugin?
Let's say one wants to use a before plugin. Also let's say under a certain circumstance it is impossible to do so, therefore we want to throw an exception.
However it doesn't feel right to do so; but ...
0
votes
1
answer
43
views
General system exception happened - The custom_range value wasn't found in the algorithms
When importing a csv spreadsheet I am getting the following error:
0
votes
1
answer
207
views
Magento2 : How to override /vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
Does anyone know how to override this file?
0
votes
1
answer
2k
views
Magento 2.4 "Bad Request 400 Exception" when using Elasticsearch
I've recently upgraded my Magento version 2.4 and set Elasticsearch as the catalog search option, testing the connection gives a success message but when I try to search on the site itself I get an ...
1
vote
2
answers
2k
views
How to solve this Exception #0 (Magento\Framework\Exception\StateException): The bucket doesn't exist
1 exception(s):
Exception #0 (Magento\Framework\Exception\StateException): The bucket doesn't exist.
Exception #0 (Magento\Framework\Exception\StateException): The bucket doesn't exist.
#1 Magento\...
0
votes
1
answer
1k
views
Magento 2 Graphql Exception handling
I would like to customise the error messages displayed in my GraphQL queries for a coupon code in m2.
You should implement the \GraphQL\Error\ClientAware interface to handle errors in your module ...
0
votes
2
answers
393
views
Magento after setup ReflectionException Class Magento\Search\ViewModel\ConfigProvider does not exist
I setup my project in localhost and I get the below error when try to access frontend.
Exception #0 (ReflectionException): Class Magento\Search\ViewModel\ConfigProvider does not exist
My project is ...
0
votes
1
answer
142
views
Error message is not showing on Login Observer?
The error message is not showing on Login Observer if the error occours.
observer file is :
<?php
namespace Orbitx\Emailblock\Plugin;
use Magento\Framework\Controller\ResultFactory;
use Magento\...
0
votes
1
answer
495
views
How to solve ReflectionException?
I am completely new to magento and trying to install product recommendations module. Prior to that I tried installing its dependencies i.e saas_export and data_services modules.
But when I access ...
0
votes
1
answer
101
views
Invalid template file in a payment gateway
I installed a payment gateway extension, and when placing an order with that specific payment gateway. I cannot view the order in the admin panel, when I click on the order number to view it, I get ...
0
votes
1
answer
57
views
Exception not getting Caught in childHtml
I have a try catch block where inside of try I navigate to different set of childHtml based on a if-else in the parent .phtml file and if there is any error, I need to catch them. Problem is, the ...
0
votes
0
answers
58
views
How to solve Type Error occurred when creating object: Webkul\MpBlog\Block\Account\Navigation?
1 exception(s):
Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Webkul\MpBlog\Block\Account\Navigation
Exception #0 (Magento\Framework\Exception\...
0
votes
1
answer
357
views
ReflectionException Class Mirasvit\Core\Model\ModuleFactory does not exist, when running setup:di:compile or setup:upgrade
I received the following error when I run the command
php bin/magento setup:di:compile
Error
[ReflectionException]
Class Mirasvit\Core\Model\ModuleFactory does not exist
The extension provider ...
0
votes
1
answer
18
views
Spreadsheet layout validation
I created a feature to check if a spreadsheet has the correct layout, before uploading it to the database, it works perfectly for spreadsheets that are outside the requested standard. The problem is, ...
0
votes
1
answer
64
views
Divide by Zero Error on a Bookstore template
I'm trying to work with a template on a bookstore site (M2.3.6). I added a new configurable product with 2 configurations and when I did, I got this error:
Error filtering template: Warning: Division ...
0
votes
1
answer
566
views
Transport Exception : Content-Length mismatch Installing Magento 2.3.6
I have to install the magento 2.3.6 on my vagrant VM it actually already working on other VMs but today I have created another VM and start installing the magento2 but got this weird error at some ...
0
votes
1
answer
558
views
Array to string conversion on File upload functionality in Magento2
I am getting this error after I put a file upload button.When I click save I got this error
[2021-01-20 05:42:43] main.CRITICAL: Exception message: Notice: Array to string conversion in /var/www/html/...
0
votes
0
answers
496
views
Autoload, Registration error on Magento Community 2 installation using Docker on Windows 10 Pro
I am attempting to get Magento 2 Community working in my local environment using Docker and am running into the same error when I finally get to check the admin screen. After I've finished installing, ...
0
votes
0
answers
931
views
M2: Exception #0 (Exception): Notice: Undefined index: id in
I upgraded Magento from 2.3.4 to 2.4
After upgrade,it's impossible to open stores ---> configuration I got Exception:
1 exception(s):
Exception #0 (Exception): Notice: Undefined index: id in /home/...
0
votes
0
answers
189
views
Getting this error in my contactformpage
Hi I am facing the following problem. Currently using Magento 2.3.3
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'class': [facet 'pattern'] The value '...
0
votes
1
answer
117
views
Notice: Undefined index after migration from magento 1.7.0.2 to magento 2.3.4
Notice: Undefined index: in /home/tbnet/public_html/m2.3/vendor/magento/module-developer/Model/View/Page/Config/RendererFactory.php on line 70
how to solve this error? cannot access m2.3.4 backend
0
votes
1
answer
1k
views
Magento 2 Invalid template file
I am trying to override sales_order_create_index.xml to remove the custom payment method but getting this error
1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid ...
1
vote
1
answer
60
views
Magento 2 : Product pages through exceptions
All Magento products were working properly last week. Now I check that all product pages through exceptions.
1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element '...
0
votes
1
answer
170
views
Magento showing errors in developer mode
I have enabled developer and it's showing me following errors :
1 exception(s):
Exception #0 (Exception): Notice: A non well formed numeric value encountered in /opt/bitnami/apps/magento/htdocs/app/...
0
votes
1
answer
104
views
I want to set exceptions on add_to_cart button
I am building E-Commerce website in Magento 1.9. I want to add below functionalities on my add_to_cart button on product page:
Want to keep add_to_cart button disabled always.
I want every user ...
0
votes
2
answers
476
views
{"exception":"[object] (Magento\\Framework\\Validator\\Exception(code: 0): One or more input exceptions have occurred
I'm getting the following issue since today, i'm not able to find out what is going on. It was all working fine for the past few months, and no files was modified recently. What could be the problem? (...
2
votes
1
answer
1k
views
Magento CLI 2.4.0 - ErrorHandler is turning PHP errors into exceptions in production mode
Preface:
I prefer to develop in developer mode, have Magento catch all PHP E_NOTICE|E_WARNING|etc. errors, throw exception on them, and get these issues cleaned up before committing my code. The issue ...
0
votes
1
answer
131
views
Base DB schema didn't create table
In my report_sales > coupons page I get exception
Base table or view not found: 1146 Table salesrule_coupon_aggregated doesn't exist
And I find out that system didn't create this table (It doesn't ...
0
votes
1
answer
348
views
SMTP issue magento 1.9
I am using Aschroder SMTP Pro extension, suddenly the extension stopped working and giving below exception:
On Testsite for gmail
2020-07-20T05:37:03+00:00 ERR (3):
exception '...
3
votes
0
answers
1k
views
Magento 2 : Catalog Layer has been already created
On category page I am getting this exception
Catalog Layer has been already created
I tried to debug it in vendor/magento/module-catalog/Model/Layer/Resolver.php, for the moment i commented the code ...
1
vote
0
answers
235
views
Magento 2 exception Requested product doesn't exist
My site running Magento 2.2.4 has been throwing a high number of exceptions: Requested product doesn't exist.
The error comes from method getById() in ProductRepository, line 273:
...
0
votes
1
answer
220
views
Magento 2.3.4 EE Companies edit not finding the company
I am trying to edit companies using the "Edit" link at the right of the grid of companies.
The link the link is trying to get to is as follows
/admin/company/index/edit/id/4/key/...
1
vote
2
answers
2k
views
Error Incomplete installation
I'm a beginner and trying to install Magento 2.3.5 on my localhost.
I've tried several times but at a point 51% get the following error message:
[ERROR] InvalidArgumentException: Wrong file in
C:\...
0
votes
1
answer
350
views
Exception #0 (ReflectionException): Class Webkul\MpStripe\Observer\PreDispatchConfigSaveObserver does not exist
How can I fix this?
I installed webkul MP Stripe Extension and I am getting this error:
1 exception(s):
Exception #0 (ReflectionException): Class Webkul\MpStripe\Observer\...
0
votes
1
answer
104
views
Login bad credentials error
When I try to login as costumer at LoginPost it gives this error
Exception #0 (Magento\Framework\Exception\InvalidEmailOrPasswordException)
My login post is
/**
* Copyright © Magento, Inc. All ...
0
votes
2
answers
523
views
No element found with ID 'reviews.tab'
I'm facing this issue.
Exception #0 (OutOfBoundsException): No element found with ID 'reviews.tab'.
Anyone have an idea about this one?
1 exception(s):
Exception #0 (OutOfBoundsException): No ...
1
vote
1
answer
2k
views
M 2.3.4 - "Infinite loop detected..." exception on OPC, how to get items in the cart?
I'm trying to get quote on checkout and this exception is thrown in
vendor\magento\module-checkout\Model\Session.php:241
exception.log
Message: Infinite loop detected, review the trace for the ...
2
votes
1
answer
133
views
Magent 2 - Exception logs check
In Magento 2 I got a message to check exception error logs. How can I check that?
2
votes
6
answers
5k
views
how to empty .log file in magento 2?
how to empty .log file in Magento 2 from Terminal ?
system.log
exceptional.log
debug.log