Back to Top

Solved: Technical problem error in Catalog Price Rule Page when clicking on rule chooser icon for Category in Magento 2.4.4

Updated 4 years ago

Hello Friends!!!
In this article, we will discuss the technical problem error in the “catalog price rule create/edit page” in Magento 2.4.4 CE.

Problem: In Magento 2.4.4, I got an error when I was creating a Catalog Price Rule. I have got the following error message when clicking on the chooser icon(refer to the following image) to choose the Category to create a condition in the Conditions tab.

Error Message: A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later.

click_icon
Error message will be display when click on this icon
Screenshot-from-2022-05-10-17-53-32
Error’s screenshot

Solution: In Magento 2.4.4, project libraries and dependencies have been updated for compatibility with PHP 8.1, you can read more here https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-4.html
So, due to some conflict, this error is occurring.
To fix this issue/error, we need to make some changes in the following js file in the showChooserElement function.

<magento-root-dir>/vendor/magento/module-rule/view/adminhtml/web/rules.js

We will replace the following statement:

jQuery(chooser).html(transport.responseText);

with the following statement:

chooser.innerHTML = transport.responseText;
Screenshot-from-2022-05-10-18-46-59

Now, see the result in the following image:

Screenshot-from-2022-05-10-17-56-10

Hope this will be helpful.
Thanks 🙂

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home