White Screen & Deprecated Function Error When Using Defender
-
Ignore this post, the issue is due to a conflict with the WordPress theme not the deprecated function.
Details:
- WordPress Version: 6.8.2
- PHP Version: 8.4.4
- Defender Version: 5.3.1
Hi Team,
I’ve installed Defender on a local development environment and attempted to set it up, but each time I access any of the Defender features, I encounter a white screen of death.
After enabling error reporting, I received the following message:
Deprecated: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in ../wp-content/plugins/defender-security/src/component/security-tweaks/class-php-version.php on line 85
It appears this issue is triggered under PHP 8.4 due to a deprecated use of version_compare().
Could you please advise whether a fix is planned or available? If there’s a recommended workaround in the meantime, I’d appreciate your guidance.
The topic ‘White Screen & Deprecated Function Error When Using Defender’ is closed to new replies.