Skip to content

Bug: debugbar javascript error #2621

Description

@benrogmans

Describe the bug
When using (a lot of) JavaScript, for instance my VueJS application, elements of the debugbar do not seem to be ready yet in the DOM, when the debugbar tries to modify those. Error in console:

Uncaught TypeError: Cannot set property 'innerHTML' of null
    at XMLHttpRequest.<anonymous> (index.php?debugbar:77)

CodeIgniter 4 version
CodeIgniter 4.0.2

Affected module(s)
system/Debug/Toolbar.php

I've created a PR to load the debugbar script right before the closing body tag, which solves this issue: #2620.

I now see it might re-introduce other issues. @najdanovicivan Does my PR conflict with yours (#2494)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions