Skip to content

Site is Experiencing a Technical Issue in lib/client-assets.php file #16360

@SeniorSpielbergo

Description

@SeniorSpielbergo

Describe the bug
There seems to be a bug in the client-assets.php file.

To reproduce
Actually, I am not sure how to reproduce this as I only received an email by my WordPress installation informing me that:

Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, Gutenberg.

...

Error Details

An error of type E_ERROR was caused in line 58 of the file /.../httpdocs/wp-content/plugins/gutenberg/lib/client-assets.php. Error message: Uncaught Error: Call to a member function query() on null in /.../httpdocs/wp-content/plugins/gutenberg/lib/client-assets.php:58
Stack trace:
#0 /.../httpdocs/wp-content/plugins/gutenberg/lib/client-assets.php(539): gutenberg_override_script('react', 'https://www.dav...', Array, NULL)
#1 /.../httpdocs/wp-content/plugins/gutenberg/lib/client-assets.php(435): gutenberg_register_vendor_script('react', 'https://unpkg.c...', Array)
#2 /.../httpdocs/wp-content/plugins/gutenberg/lib/client-assets.php(230): gutenberg_register_vendor_scripts()
#3 /.../httpdocs/wp-includes/class-wp-hook.php(286): gutenberg_register_scripts_and_styles('')
#4 /.../httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#5 /...

When looking at my homepage, I was not able to see any problems, but as I received this email for the sixth time within a few weeks (using different versions of Gutenberg), I wanted to report this issue.

Expected behavior
I would expect that no such error messages occur.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Version: 67.0.4. 64 bit

Additional context

  • Gutenberg Version: 5.8, 5.9, 6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions