Bug #22281
closedwhite screen with an error message
0%
Description
Jeff Allred reports:
When i navigate to the site for the course I'm teaching, I get a white screen with an error message that reads:
---
There has been a critical error on this website. Learn more about troubleshooting WordPress.
Most of my sites work, but I did notice that a number of prior sites on the same topic have the same error. So clearly there's something broken that is common to that handful of sites but not to my other sites.
I hope this helps: LMK if you need more detail.
Updated by Boone Gorges about 1 month ago
- Status changed from New to Resolved
- Target version set to Not tracked
The fatal was being thrown by the threewp-broadcast plugin, which references the MULTISITE constant without first checking for its existence. This triggers a fatal error in PHP 8+. I fixed this in the plugin itself soon after our PHP 8 migration, but the plugin has since been updated, overwriting my change.
We had the following line in our cac-env-config.php file:
//define( 'MULSITITE', true );
With great fear in my heart, I uncommented it. It appears that the site is continuing to work properly (multisite, mapped domains, etc). But I don't know why it was commented out in the first place, and it's possible that there will be some unintended consequences. I'm copying Ray and Jeremy here so that they're aware.
Marilyn, the site should be accessible now.
Updated by Boone Gorges about 1 month ago
- Status changed from Resolved to New
Reopening. Setting the 'MULTISITE' constant appears to have broken many things. See #22284.
I've rolled back the change and will see if there's some sort of workaround I can use for threewp-broadcast.
Updated by Boone Gorges about 1 month ago
I'm remembering now that we don't have MULTISITE because we're a legacy WPMu installation. This is related to the use of the wp_1_
prefix for the primary site.
The plugin is bootstrapped in a way that makes it impossible to define the constant conditionally, just in time to catch the fatal error. As such, I'm going to have to apply the hotfix again.
I've opened a support issue with the plugin author: https://wordpress.org/support/topic/unchecked-reference-to-multisite-in-framework-throws-fatals-in-php-8/#new-topic-0
Updated by Boone Gorges about 1 month ago
- Status changed from New to Resolved
Hotfix applied in https://github.com/cuny-academic-commons/cac/commit/f4c83a996f11c94f9576904a989bc236f130870a and pushed to production.
Updated by Raymond Hoh about 1 month ago
I'm remembering now that we don't have MULTISITE because we're a legacy WPMu installation. This is related to the use of the wp_1_ prefix for the primary site.
Yes, we do have an older ticket about the MULTISITE constant here - #16255.