bedezign / yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.
https://bedezign.github.io/yii2-audit/
Other
193 stars 111 forks source link

Undefined array key "traceHash" Error #294

Open khalid-eyez opened 1 month ago

khalid-eyez commented 1 month ago

I have installed this extension the lastest version 1.2.7 following the documentation and works well except when clicking the database panel (DbPanel) it shows that error. see attached screeshots for more details..It seems that the bedezign\yii2\audit\panels\DbPanel::calculateTimings() is not adding the "traceHash" compared to the one from its parent yii\debug\panels\DbPanel::calculateTimings()... i am using yii 2.0.50 advanced project template Screenshot 2024-07-17 at 14-22-57 yii_base_ErrorException

Capture1234 Capture123

eluhr commented 1 month ago

@khalid-eyez Could you please send me a section of your configuration in which you configure the audit module?

khalid-eyez commented 1 month ago

Here it is please ! @eluhr scshot

eluhr commented 1 month ago

@khalid-eyez It looks like the problem is not caused by the audit module but by the debug module. Have you possibly reconfigured some things in the debug module or changed files directly in the vendor?

khalid-eyez commented 1 month ago

@eluhr No...i did nothing on the debug module...i did not touch the vendor as well.

schmunk42 commented 1 month ago

FYI: traceHash was added in 2.1.23 see https://github.com/yiisoft/yii2-debug/commit/5e4d49a2c5025cf88da8b3abde182d45ba6f4856#diff-cb48add4e37bc9b2ada1a193a9f3f0949db35f1cb2716d66f20410d9d1a49307R190

khalid-eyez commented 1 month ago

@schmunk42 as i can see there is also introduction of $queryDataProvider and $callerDataProvider. Look at lines 152 and 153. I also bumped onto that wall when i was trying to skip this current error.

schmunk42 commented 1 month ago

PRs welcome, btw ;)

khalid-eyez commented 4 days ago

Any updates on this issue