wppw
Forum Replies Created
-
Thank you for your follow-up. I will have a go at updating to 3.8 per your suggestion, as soon as I can. Sorry, this may take a while.
In the meantime, the line number (for $term->count = count( $post_ids in class-groups-post-access.php); was 1328. According to WP, I am actively running Groups 3.5.0 (with patch).
Before patch:
);
$post_ids = get_posts( $query_args );
$term->count = count( $post_ids );
}
After patch:
);
$post_ids = get_posts( $query_args );
if (is_object( $term ) ) {
$term->count = count( $post_ids );
}
Kind regards,
Sorry, haven’t had time to pursue this further, but I can share the diagnosis and workaround that is currently in place…
To diagnose, the WordPress debug log was uploaded to ChatGPT, which identified the following issue (when using Groups 3.5.9):
The site crashes due to this plugin:
Groups plugin (
groups/lib/access/class-groups-post-access.php)With this specific error:
Fatal error: Uncaught Error: Attempt to assign property "count" on intThis means the plugin is treating an integer as if it were an object — which was loosely tolerated in PHP 7.4 but throws a fatal error in PHP 8.
The plugin contains code like this (or equivalent):
$term->count = 5;…but
$termis unexpectedly just an integer (not an object), so PHP 8 crashes with:Attempt to assign property "count" on intThis is a common compatibility issue when plugin authors don’t properly validate variable types before accessing or assigning properties. ✅ Fix Options Option 1: Deactivate the “Groups” Plugin
If you do not rely on Groups (or Ultimate Member’s Groups integration):
- Deactivate the “Groups” plugin
- Switch back to PHP 8.0.30
- Site should now load
You can always reactivate if you later downgrade PHP again.Option 2: Wait for (or Request) a PHP 8 Fix
Check if there’s an updated version of the Groups plugin. If not:
- Reach out to the plugin author or support forum
- Point them to the line of failure (around line 1328 in
class-groups-post-access.php)
They need to patch the logic like this:
if ( is_object( $term ) ) { $term->count = ...; }The problem did not occur when using PHP 7.x and only observed with 8.x. Implementing the suggested workaround resolved the issue for Groups 3.5.9 (with PHP 8.3.21).
When I updated to Groups 3.6.0 the problem returned, presumably because the patch had been overwritten by the update – I haven’t had the time to re-implement the patch, so simply restored Groups 3.5.9 with the above patch as it continues to work without issue for me.
Hope that helps clarify the issue.
Kind regards,
Hi Joash,
Here’s a list of the active plugins from the system status report. If you need more, just let me know:
### Active Plugins (31) ###
Broken Link Checker: by WPMU DEV – 1.11.16
Child Theme Configurator: by Lilaea Media – 2.5.8
Complianz | GDPR/CCPA Cookie Consent: by Really Simple Plugins – 5.5.3
Download Manager: by W3 Eden Inc. – 3.2.32
Easy Custom Sidebars: by Titanium Themes – 2.0.1
Filter Everything — WooCoomerce Product & WordPress Filter: by Andrii Stepasiuk – 1.5.1
Flexible Shipping UPS: by WP Desk – 1.17.2
FooBox Image Lightbox: by FooPlugins – 2.7.16
Google Listings and Ads: by WooCommerce – 1.9.0
Groups: by itthinx – 2.15.0
Jetpack: by Automattic – 10.4
Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 2.1.19
Login No Captcha reCAPTCHA (Google): by Robert Peake and Contributors – 1.6.11
Mailchimp for WooCommerce: by Mailchimp – 2.5.4
Search By SKU – for Woocommerce: by Unroll Digital – 0.8.0
SiteGround Optimizer: by SiteGround – 6.0.5
SiteGround Security: by SiteGround – 1.1.3
Ultimate FAQ – WordPress FAQ and Accordion Plugin: by – 2.1.6
Ultimate Member: by Ultimate Member – 2.3.0
Ultimate Member – reCAPTCHA: by Ultimate Member – 2.2.1
UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
DavidAnderson – 1.16.69
WooCommerce Blocks: by Automattic – 6.7.1
WooCommerce Payments: by Automattic – 3.5.0
WooCommerce Shipping & Tax: by WooCommerce – 1.25.20
WooCommerce Square: by WooCommerce – 2.7.0
WooCommerce: by Automattic – 6.0.0
Wordfence Security: by Wordfence – 7.5.7
Yoast SEO: by Team Yoast – 17.8
Custom Product Tabs for WooCommerce: by YIKES Inc. – 1.7.7
YITH WooCommerce Compare: by YITH – 2.9.0
Zoho CRM Lead Magnet: by – 1.7.4.1Correction, it looks like the issues goes away when payment via the Woocommerce Square plugin is turned off.