Solved: Technical problem error in Catalog Price Rule Page when clicking on rule chooser icon for Category in Magento 2.4.4
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.
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;
Now, see the result in the following image:
Hope this will be helpful.
Thanks 🙂