Title: WordPress 7, Wordfence, php 8.5 errors
Last modified: May 28, 2026

---

# WordPress 7, Wordfence, php 8.5 errors

 *  [nicollb](https://wordpress.org/support/users/nicollb/)
 * (@nicollb)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/wordpress-7-wordfence-php-8-5-errors/)
 * I have several sites using WP7 (latest), Wordfence (latest), and php 8.5.
 * On some, there are no problems at all. On others, I see errors from Wordfence,
   mostly pointing at xmlrpc.php in the Wordfence folder. After looking through 
   the Wordfence docs and help files, I see that there might be issues related to
   the php .ini load of the waf files. So, on the site listed, I removed the prepend
   lines from the .user.ini file and poof! the errors disappeared. But, Wordfence
   wanted to optimize the firewall. I said OK. The errors reappeared, and the prepend
   reappeared in the .user.ini file.
 * Currently, the prepend has been removed from the .user.ini and the firewall is
   in learning mode, and there are no errors.
 * Interestingly, I have several other sites that are happily running the same combination
   with no errors.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-7-wordfence-php-8-5-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/wordpress-7-wordfence-php-8-5-errors/#post-18922065)
 * Hi [@nicollb](https://wordpress.org/support/users/nicollb/),
 * Do you have any examples of the errors being thrown on **xmlrpc.php** from the
   logs? Feel free to censor domain names or IPs here on the forums, as the wording
   of the message is the most important part.
 * Thanks,
   Peter.
 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [2 days, 20 hours ago](https://wordpress.org/support/topic/wordpress-7-wordfence-php-8-5-errors/#post-18929516)
 * Do you still require assistance with this [@nicollb](https://wordpress.org/support/users/nicollb/)?
 * Peter.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-7-wordfence-php-8-5-errors%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [2 days, 20 hours ago](https://wordpress.org/support/topic/wordpress-7-wordfence-php-8-5-errors/#post-18929516)
 * Status: not resolved