Fatal error caused by GenerateBlocks
-
Hi team,
I’m running into a fatal error with GenerateBlocks on a fresh WordPress install (6.9.4), I’ve hosted my website on WordPress.com.
Error: Call to a member function get() on null in wp-includes/query.php:29
From the stack trace, it looks like this is triggered by GenerateBlocks_Libraries->hide_admin_bar() calling get_query_var() very early, before the query object is initialized.
I can reproduce this consistently on a clean setup. It seems to be related to environments that include Jetpack/wpcom MU plugins, where is_admin_bar_showing() is triggered early.
As a temporary workaround, disabling GenerateBlocks resolves the issue.
Happy to provide more details or test a fix if needed.
Thanks for your help 🙂
You must be logged in to reply to this topic.