Jump to content

Strange "Error: TracyLogsPanel" in one project


Stefanowitsch
 Share

Recommended Posts

I keep getting this error message on all backend and frontend pages in one of my projects:

ErrorException: Undefined array key 1 in /var/www/html/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/TracyLogsPanel.php:71
Stack trace:
#0 /var/www/html/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/TracyLogsPanel.php(71): Tracy\Bar->Tracy\{closure}(2, '...', '...', 71)
#1 /var/www/html/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.10.x/src/Tracy/Bar/Bar.php(142): TracyLogsPanel->getTab()
#2 /var/www/html/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.10.x/src/Tracy/Bar/Bar.php(115): Tracy\Bar->renderPanels('')
#3 /var/www/html/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.10.x/src/Tracy/Bar/Bar.php(89): Tracy\Bar->renderPartial('...')
#4 /var/www/html/site/modules/TracyDebugger/tracy-2.10.x/src/Tracy/Debugger/DevelopmentStrategy.php(123): Tracy\Bar->render(Object(Tracy\DeferredContent))
#5 /var/www/html/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.10.x/src/Tracy/Debugger/Debugger.php(314): Tracy\DevelopmentStrategy->renderBar()
#6 [internal function]: Tracy\Debugger::shutdownHandler()
#7 {main}

image.thumb.png.a2e42378869741f2bab1563995819516.png

I am using the newest PW Version and the newest Tracy Debugger Version, can anybody give me a hint what is happening here?

 

Link to comment
Share on other sites

Hi @Stefanowitsch - can you take a look at the *.log files in site/assets/logs/tracy - each line in the files should start with something like this: [2023-07-18 07-59-40]

Do any of the files have lines that don't have this?

You could also add: bd($entry); after line line 67 in that TracyLogsPanel.php file and review the entries that are dumped to see which one doesn't have the date in that format so we can attempt to figure out how that might have happened.

Link to comment
Share on other sites

1 hour ago, adrian said:

Hi @Stefanowitsch - can you take a look at the *.log files in site/assets/logs/tracy - each line in the files should start with something like this: [2023-07-18 07-59-40]

Do any of the files have lines that don't have this?

You could also add: bd($entry); after line line 67 in that TracyLogsPanel.php file and review the entries that are dumped to see which one doesn't have the date in that format so we can attempt to figure out how that might have happened.

Very interesting. The folder only contained only old logs:

image.png.cc6ed0fcedc80d3fe04a63834b675bd8.png

Logging the bd($entry) revealed an error from 2023 that was actually no longer part of the reay.php anymore.

 image.thumb.png.e6d8861647ba1ca6d2c1654374d8f932.png

I manually deleted all tracy logs files inside the site/assets/logs/tracy folder and also deleted the cache folder under /assets. After that this error disappeared.

Link to comment
Share on other sites

The issue would have been that empty line - the blank string in the dump in your screenshot. Not sure why that would have happened - if you see it happen again, let me know and I'll adjust the logic to handle it, but it seems like a weird anomaly rather than something that happens normally.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...