Title: PHP error
Last modified: August 30, 2016

---

# PHP error

 *  Resolved [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-error-155/)
 * When I view the Diff of a adjusted file, I get the following PHP error:
 *     ```
       Notice: Undefined offset: 1 in /path/to/wp/wp-content/plugins/wordfence/lib/Diff/Renderer/Html/Array.php on line 193
       ```
   
 * This is because of a “typo” in line 194.
 * It currently reads:
 *     ```
       return $this->fixSpaces($matches[1]);
       ```
   
 * but should read:
 *     ```
       $spaces = ( isset( $matches[1] ) ? $matches[1] : '' );
       return $this->fixSpaces($spaces);
       ```
   
 * Hope this helps.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * (@wfmattr)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-error-155/#post-6886963)
 * Thanks for the report! I’ve passed this on to the dev team, with reference number
   FB1251.
 * -Matt R

Viewing 1 replies (of 1 total)

The topic ‘PHP error’ is closed to new replies.

 * ![](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/)

 * 1 reply
 * 2 participants
 * Last reply from: [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/php-error-155/#post-6886963)
 * Status: resolved