Error in logs relating to Admin Actions Log in M2 2.4.4

Error in logs relating to Admin Actions Log in M2 2.4.4

This started showing up in our logs after 2.4.4 upgrade and shift to amasty/adminactionslog 2.0.9


[2022-08-01T08:00:06.841008+00:00] main.ERROR: An error occurred during Logging Action execution. Error is Visit History Entry with specified ID "0" not found. [] []

I stuck a debug_backtrace in there and this is what 

  1. [{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/amasty\/adminactionslog\/Model\/VisitHistoryEntry\/Repository.php","line":107,"function":"getById","class":"Amasty\\AdminActionsLog\\Model\\VisitHistoryEntry\\Repository","object":{},"type":"->","args":[0]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/amasty\/adminactionslog\/Logging\/ActionType\/RenderBefore\/Layout.php","line":77,"function":"getBySessionId","class":"Amasty\\AdminActionsLog\\Model\\VisitHistoryEntry\\Repository","object":{},"type":"->","args":["rhdm6tholuf9lmt9vp8cp4ppit"]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/amasty\/adminactionslog\/Logging\/ActionType\/ValidationComposite.php","line":51,"function":"execute","class":"Amasty\\AdminActionsLog\\Logging\\ActionType\\RenderBefore\\Layout","object":{},"type":"->","args":[]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/amasty\/adminactionslog\/Logging\/ActionType\/Composite.php","line":50,"function":"execute","class":"Amasty\\AdminActionsLog\\Logging\\ActionType\\ValidationComposite","object":{},"type":"->","args":[]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/amasty\/adminactionslog\/Observer\/HandleLayoutRenderBefore.php","line":61,"function":"execute","class":"Amasty\\AdminActionsLog\\Logging\\ActionType\\Composite","object":{},"type":"->","args":[]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/magento\/framework\/Event\/Invoker\/InvokerDefault.php","line":88,"function":"execute","class":"Amasty\\AdminActionsLog\\Observer\\HandleLayoutRenderBefore","object":{},"type":"->","args":[{}]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/magento\/framework\/Event\/Invoker\/InvokerDefault.php","line":74,"function":"_callObserverMethod","class":"Magento\\Framework\\Event\\Invoker\\InvokerDefault","object":{},"type":"->","args":[{},{}]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/magento\/framework\/Event\/Manager.php","line":66,"function":"dispatch","class":"Magento\\Framework\\Event\\Invoker\\InvokerDefault","object":{},"type":"->","args":[{"instance":"Amasty\\AdminActionsLog\\Observer\\HandleLayoutRenderBefore","name":"amaudit_handleLayoutRenderBefore"},{}]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/generated\/code\/Magento\/Framework\/Event\/Manager\/Proxy.php","line":95,"function":"dispatch","class":"Magento\\Framework\\Event\\Manager","object":{},"type":"->","args":["layout_render_before",[]]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/magento\/framework\/View\/Result\/Layout.php","line":167,"function":"dispatch","class":"Magento\\Framework\\Event\\Manager\\Proxy","object":{},"type":"->","args":["layout_render_before"]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/magento\/framework\/Interception\/Interceptor.php","line":58,"function":"renderResult","class":"Magento\\Framework\\View\\Result\\Layout","object":{},"type":"->","args":[{}]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/magento\/framework\/Interception\/Interceptor.php","line":138,"function":"___callParent","class":"Magento\\Backend\\Model\\View\\Result\\Page\\Interceptor","object":{},"type":"->","args":["renderResult",[{}]]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/magento\/framework\/Interception\/Interceptor.php","line":153,"function":"Magento\\Framework\\Interception\\{closure}","class":"Magento\\Backend\\Model\\View\\Result\\Page\\Interceptor","object":{},"type":"->","args":[{}]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/generated\/code\/Magento\/Backend\/Model\/View\/Result\/Page\/Interceptor.php","line":23,"function":"___callPlugins","class":"Magento\\Backend\\Model\\View\\Result\\Page\\Interceptor","object":{},"type":"->","args":["renderResult",[{}],{"4":["result-varnish-cache"]}]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/magento\/framework\/App\/Http.php","line":120,"function":"renderResult","class":"Magento\\Backend\\Model\\View\\Result\\Page\\Interceptor","object":{},"type":"->","args":[{}]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/vendor\/magento\/framework\/App\/Bootstrap.php","line":264,"function":"launch","class":"Magento\\Framework\\App\\Http","object":{},"type":"->","args":[]},{"file":"\/home\/cloudpanel\/htdocs\/www.oursite.com\/releases\/2022_07_28_5_00_32_branch_master_v2.4.4\/pub\/index.php","line":30,"function":"run","class":"Magento\\Framework\\App\\Bootstrap","object":{},"type":"->","args":[{}]}]

You're clearly trying to read a value from the amasty_audit_visit_details table before it's set.  

Are you planning on fixing this or should we handle it ourselves?