Questions tagged [exception]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Magento 2.4.6 calling createOrder() causes exception with elasticsearch

In one of my scripts, calling createOrder() ( from vendor/magento/module-sales/Model/AdminOrder/Create.php ) causes an exception: {"error":{"root_cause":[{"type":"...
jonny5556's user avatar
0 votes
1 answer
27 views

No callbacks found for cron job analytics_subscribe

Magento 2.4.x I have this exception in var/log/cron.log: main.CRITICAL: Exception: No callbacks found for cron job analytics_subscribe in vendor/magento/module-cron/Observer/ProcessCronQueueObserver....
Daniel Ifrim's user avatar
  • 3,394
0 votes
0 answers
34 views

An exception occurred while completing a multipart upload: Error executing "CompleteMultipartUpload"

I am writing this since I have literally no idea in how to debug this anymore. I have a custom module that creates a csv feed and the uploads it to a digital ocean remote storage (space or whatever it'...
Nicholas's user avatar
0 votes
2 answers
118 views

Base URL changed and not affecting website

Our website randomly started showing this error whenever you access a link outside of the home page or try to access the admin panel. Exception #0 (FishPig\WordPress\Model\Integration\...
Isaac's user avatar
  • 1
0 votes
2 answers
57 views

Magento 2 admin page wont load. Any suggestions to revert changes?

I'm and very new to Magento so please forgive me. Basically I was working on our development server trying to change the layout of our main page. I changed configuration->catalog->catalog->...
Isaac's user avatar
  • 1
1 vote
1 answer
2k views

Deprecated Functionality: Creation of dynamic property $_coreRegistry is deprecated

I am having this issue with magento 2.4.6 custom module and php8.2 This code: public function __construct( \Magento\Framework\App\Helper\Context $context, \Magento\Store\Model\...
G. G.'s user avatar
  • 1,132
1 vote
1 answer
185 views

Exception error : Unable to send data to service in Magento SaaSCommon module Magento 2.4.5 EE

Hi I keep getting this error in exception.log, but the site functions properly (Magento 2.4.5 EE), not sure what is causing this. Any Idea ? [2023-07-24T23:58:06.458525+00:00] report.ERROR: Unable to ...
Rejith's user avatar
  • 311
0 votes
0 answers
43 views

Laminas Uncaught exception

I am facing this issue: Uncaught exception 'Laminas\View\Exception\RuntimeException' with message 'Laminas\View\Renderer\PhpRenderer::render: Unable to render template "error"; resolver ...
Rana Zain's user avatar
  • 642
0 votes
1 answer
249 views

Exception: Warning: Failed to open stream: No such file or directory in /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php on line 71

I have created new module in Magento 2.4.5-p1, the functionality work in the local environment, but when I add the module in the staging environment, I am facing this error in system.log. CRITICAL: ...
Mitul Vadalia's user avatar
0 votes
2 answers
588 views

TypeError: str_replace(): Argument must be of type array|string, null given

I am getting the below error: main.CRITICAL: TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, null given In the following code: public function beforeSendResponse(Http $...
G. G.'s user avatar
  • 1,132
0 votes
0 answers
35 views

Unable to unserialize value. Magento version 2.4.1

I have had this problem for some time now, frontend I can't replicate this error it happens to me 3/4 times a day, in var/log I see this error. [2023-04-17 08:25:43] main.CRITICAL: Unable to ...
GerranoMargeno's user avatar
0 votes
0 answers
215 views

No such entity with id = 40 vendor/magento/framework/Exception/NoSuchEntityException.php:58

Hi I have this problem when I delete a category from admin area. If a user clicks on a url of a deleted product/category, or if he manually enters the id of the non-existent category, he generates a ...
GerranoMargeno's user avatar
0 votes
1 answer
100 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 &...
Head's user avatar
  • 157
0 votes
1 answer
66 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 ...
nlegall's user avatar
  • 21
2 votes
3 answers
629 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 ...
user27786's user avatar
  • 141
2 votes
0 answers
72 views

Can't check requested quantity for products without Source Items support at reindexing

Please help regarding this issue.
Sameed Ahmed Siddiqui's user avatar
0 votes
1 answer
401 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: ...
Gork's user avatar
  • 21
0 votes
2 answers
481 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 { $...
Raul Sanchez's user avatar
  • 3,276
0 votes
1 answer
1k 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: ...
hallleron's user avatar
  • 355
1 vote
0 answers
99 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,...
Shoaib Fareed's user avatar
1 vote
1 answer
509 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.
Herokiller's user avatar
1 vote
0 answers
66 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
Muhammad arslan's user avatar
0 votes
0 answers
161 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 ...
pro100tom's user avatar
  • 145
0 votes
1 answer
65 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:
Magenteiro's user avatar
0 votes
1 answer
326 views

Magento2 : How to override /vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php

Does anyone know how to override this file?
Muhammad arslan's user avatar
0 votes
1 answer
4k 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 ...
CJNotts's user avatar
  • 392
1 vote
2 answers
3k 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\...
Nishita's user avatar
  • 33
0 votes
1 answer
2k 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 ...
Kbee's user avatar
  • 31
0 votes
2 answers
640 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 ...
Sukeshini's user avatar
  • 9,945
0 votes
1 answer
177 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\...
Prits's user avatar
  • 626
0 votes
1 answer
842 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 ...
Stack User's user avatar
0 votes
1 answer
128 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 ...
faisal's user avatar
  • 1
0 votes
1 answer
145 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 ...
Nithin's user avatar
  • 23
0 votes
0 answers
61 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\...
Sonali Ghule's user avatar
0 votes
1 answer
543 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 ...
Mage Explorer's user avatar
0 votes
1 answer
19 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, ...
Paulo Cesar's user avatar
0 votes
1 answer
72 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 ...
Jeffrey Marks's user avatar
0 votes
1 answer
639 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 ...
Shoaib Fareed's user avatar
0 votes
1 answer
724 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/...
Sanaullah Ahmad's user avatar
0 votes
0 answers
608 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, ...
Helen P's user avatar
0 votes
0 answers
1k 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/...
Sylvester's user avatar
  • 2,204
0 votes
0 answers
225 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 '...
Kirtiman Dutta's user avatar
0 votes
1 answer
129 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
Avinash Pandey's user avatar
0 votes
1 answer
2k 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 ...
Bushra's user avatar
  • 62
1 vote
1 answer
75 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 '...
Arun Sharma's user avatar
  • 1,305
0 votes
1 answer
237 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/...
Anonymous Record's user avatar
0 votes
1 answer
106 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 ...
Salman Dalal's user avatar
0 votes
2 answers
678 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? (...
Mage Explorer's user avatar
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 ...
Darren Felton's user avatar
0 votes
1 answer
247 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 ...
Mikhaylo HODOVANIUK's user avatar

1
2 3 4 5 6