I have made the WordPress Update (5.8.1 → 5.9) of a bedrock/sage website. After that, the front-end was OK, but now the back-end. I explain why : when I try to edit a page, I got a white page.
I have tried to find the debug.log or error.log to get some clues but I haven’t find these files.
Does someone know how to check if error are active?
And where are this files? debug.log / error.log
Do you know a way to know the version of my sage installation? I guess it’s the 9.0 but I am not sure.
Looks like a Gutenberg-related issue (Gutenberg editor is based on React).
Have you installed and enabled the additional Gutenberg plugin? Is it of the last version?
Sorry for the late reply, just had a few hectic weeks.
Yes our version of Sage is slightly modified
No, the problem does not happen with a fresh Sage install
remove_theme_support doesn’t fix the issue.
Now, much more relevant, I have the same kind of issue (different error in the console but same result) on an old “from scratch” theme, which seems to indicate my problem is not coming from Sage. Moreover, we’re finalizing a new website with the same tech stack than the initial failing ones (Sage themes) and it supports the 5.9.1 version of Wordpress without issues.
So we’ll try to find an explanation somewhere else.
I’ll answer that thread if I find anything !
After sorting through a few posts about the exact same issue, it looks like this is happening because the core is trying to load the block editor stylesheet and can’t find it.
In our case it was because amongst the theme modification we made, we added that filter :
add_filter('block_editor_settings', function ($editor_settings) {
unset($editor_settings['styles'][0]);
return $editor_settings;
});
to reset the default editor style.
When our filter is removed, the admin pages are back up.