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
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:
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):
Additional context