Nosto / nosto-magento2

https://marketplace.magento.com/nosto-module-nostotagging.html
Open Software License 3.0
27 stars 26 forks source link

Call to undefined method Nosto\Tagging\Logger\Logger::warn() #783

Closed mohammedTBB closed 1 year ago

mohammedTBB commented 2 years ago

Magento 2 version(s) used: 2.4.4 Extension version(s) affected**: 6.0.3

Description
An error appear in the checkout when clicking at "create order"

image

in system.log an error of nosto generated: [2022-07-07T15:01:58.974396+00:00] main.CRITICAL: Error: Call to undefined method Nosto\Tagging\Logger\Logger::warn() in /var/www/html/magento2-gymcompany/vendor/nosto/module-nostotagging/Observer/Order/Save.php:279

How to reproduce
-- add produc to the cart -- go to checkout -- create order

Magento 2 mode

Full page cache

Nosto indexer mode

Possible Solution
we have noticed that the class used for logging is "Nosto\Tagging\Logger\Logger" and the father of this class "Monolog\Logger" none of these classes have function "warn" but there is function "warning" that could be used

supercid commented 1 year ago

Fixed by #784