Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key "traceHash" Error #294

Open
khalid-eyez opened this issue Jul 17, 2024 · 8 comments
Open

Undefined array key "traceHash" Error #294

khalid-eyez opened this issue Jul 17, 2024 · 8 comments
Assignees
Labels

Comments

@khalid-eyez
Copy link

khalid-eyez commented Jul 17, 2024

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
Copy link
Contributor

eluhr commented Jul 18, 2024

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

@khalid-eyez
Copy link
Author

khalid-eyez commented Jul 18, 2024

Here it is please ! @eluhr
scshot

@eluhr
Copy link
Contributor

eluhr commented Jul 18, 2024

@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
Copy link
Author

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

@schmunk42
Copy link
Contributor

schmunk42 commented Jul 18, 2024

@khalid-eyez
Copy link
Author

@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
Copy link
Contributor

PRs welcome, btw ;)

deadmantfa added a commit to deadmantfa/yii2-audit that referenced this issue Jul 25, 2024
Enhance DB panel with query caller and duplicate handling

Refactor variable names for clarity and add functionality to handle duplicate query sums and query caller data. Removed unused method `calculateTimings` which simplifies the codebase and improves maintainability.
deadmantfa added a commit to deadmantfa/yii2-audit that referenced this issue Jul 25, 2024
Add version 1.2.8 to changelog

Include fixes for issue bedezign#294 related to DB Panel error with undefined trashHash. This ensures error tracking and user issue resolution are documented.
@khalid-eyez
Copy link
Author

Any updates on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants