Skip to content

Conflict with TracyDebugger #30

@Notanotherdotcom

Description

@Notanotherdotcom

Describe the bug

I have TracyDebugger switched on quite a lot of the time on my account.

If you change the main admin page process from ProcessHome to Dashbord, in Chrome dev console, if you wait a minute it throws this error:

Fatal Error: 	Uncaught Exception: Missing parameter: key in /site/modules/Dashboard/Dashboard.module:300

#0 /site/modules/Dashboard/Dashboard.module(234): Daun\Dashboard\Dashboard->renderInstanceByKey(NULL, NULL)
#1 /wire/core/Wire.php(414): Daun\Dashboard\Dashboard->___execute()
#2 /wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___execute', Array)
#3 /wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(Daun\Dashboard\Dashboard), 'execute', Array)
#4 /wire/core/ProcessController.php(337): ProcessWire\Wire->__call('execute', Array)
#5 /wire/core/Wire.php(414): ProcessWire\ProcessController->___execute()
#6 /wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___execute', Array)
#7 /var/www/htm (line 300 of /site/modules/Dashboard/Dashboard.module)  

This error message was shown because: you are logged in as a Superuser. Error has been logged.

It doesn't matter if you have Tracy "on" or minimised in the bottom-right, if Tracy is running it throws that error after a minute or two.

I wasn't sure whether to list it as an issue with this module or on the Tracy module Github page, but I think this is the first module I've seen this sort of error with before so I've posted it here for now - I hope that's alright?

I think a "simple" fix here would be for whatever background JS call is running on the dashboard to simply not run if Tracy is running? Because in theory on a live website Tracy would be switched off.

To Reproduce
Change /admin/ to use Dashboard as its process

Context
Latest ProcessWire dev branch
TracyDebugger installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas fixAn implemented fix needs to be confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions