Skip to content

v2.5.8 — Fix audit critical error on Business/Agency plans

Choose a tag to compare

@JoshMilli JoshMilli released this 21 Jul 13:28
· 2 commits to main since this release

Audits now work on Business and Agency plans

Root cause (pinpointed by the 2.5.7 diagnostics — the client console reported Call to a member function get_var() on null (at rest-api.php:1886)):

global $wpdb; was declared only inside the if ($audits_per_week > 0) weekly-limit block. Business and Agency plans have audits_per_week = 0 (unlimited), so they skipped that block, $wpdb was never brought into the function scope, and the first per-page content-hash query fatalled on a null $wpdb. Free / Starter / Professional plans entered the block and worked — which is exactly why only the Business-plan client saw the "critical error". The 2.5.3 change that made Business/Agency unlimited is what began skipping the block.

Fix: global $wpdb; is now declared at the top of the audit handler for every plan (the redundant conditional declaration was removed). Verified no other function relies on a conditional $wpdb global.

This is the real fix — audits should complete normally on all plans now. The 2.5.7 diagnostics (widened guard + fatal recorder + console surfacing) remain in place as a safety net.

Update

Self-hosted update channel — sites are offered v2.5.8 through the standard WordPress updates screen. Manual install: download conversion-iq-2.5.8.zip below → Plugins → Add New → Upload Plugin.