Title: Parse Error
Last modified: August 31, 2016

---

# Parse Error

 *  Resolved [Brad](https://wordpress.org/support/users/cre8tive/)
 * (@cre8tive)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/parse-error-398/)
 * Parse error: syntax error, unexpected ”request.body[newWhite’ (T_ENCAPSED_AND_WHITESPACE),
   expecting ‘]’ in /home/domainname.tld/public_html/wp-content/wflogs/rules.php
   on line 73
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/parse-error-398/#post-7342615)
 * Hello Brad,
    on what page and when (while trying to do something particular?)
   are you getting this error?
 *  [ciaoweb](https://wordpress.org/support/users/ciaoweb/)
 * (@ciaoweb)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-398/#post-7342743)
 * Hello,
 * I am getting same error, it affecct the backend and fortunately not the front
   end.
 * I had to rename the WordFence folder in my root to be able to access again my
   website so it prevents access to the WordPress backend.
 * This is the full error:
    [21-May-2016 09:06:24 UTC] PHP Parse error: syntax error,
   unexpected ”r’ (T_ENCAPSED_AND_WHITESPACE) in /home/domainusername/public_html/
   wp-content/wflogs/rules.php on line 115
 * Thanks for any help
 *  [ralphonz](https://wordpress.org/support/users/ralphonz/)
 * (@ralphonz)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-398/#post-7342747)
 * I’m getting these errors too. On multiple sites but on the same server:
 *     ```
       PHP Parse error: syntax error, unexpected ''/(?:' (T_ENCAPSED_AND_WHITESPACE) in /home/mydomain/public_html/wp-content/wflogs/rules.php on line 32
   
       [19-May-2016 13:31:05 UTC] PHP Parse error: syntax error, unexpected ''/(?:' (T_ENCAPSED_AND_WHITESPACE) in /home/mydomain/public_html/wp-content/wflogs/rules.php on line 32
       ```
   
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-398/#post-7342748)
 * Hello both of you,
    we now have a bug filed for this. Our internal case number
   is FB1845. It will be included in one of the upcoming releases. I’ll try to get
   back to you when it’s in place.
 *  [ralphonz](https://wordpress.org/support/users/ralphonz/)
 * (@ralphonz)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-398/#post-7342749)
 * this is the line in question:
 * `$this->variables['xssRegex'] = new wfWAFRuleVariable($this, 'xssRegex', '/(?:`
 *  [ralphonz](https://wordpress.org/support/users/ralphonz/)
 * (@ralphonz)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-398/#post-7342750)
 * Cheers! That was quick 🙂
 *  Thread Starter [Brad](https://wordpress.org/support/users/cre8tive/)
 * (@cre8tive)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/parse-error-398/#post-8678591)
 * Guess what? Encountered this error again today?
 * I deleted the plugin and tried to reinstall, but still got same error and original
   thread:
 * Parse error: syntax error, unexpected ”request.body[newWhite’ (T_ENCAPSED_AND_WHITESPACE),
   expecting ‘]’ in /home/domain.tld/public_html/wp-content/wflogs/rules.php on 
   line 73
 * what do I need to do to resolve this for our website? we are paying for the plugin,
   but cannot use if I dont know how to fix.
 * everything is up to date – WordPress Version 4.7.1
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/parse-error-398/#post-8688840)
 * Hi Brad,
    if you are paying for the plugin, please submit a support request via
   our premium support at [https://support.wordfence.com](https://support.wordfence.com).
   Thanks!

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

The topic ‘Parse 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/)

 * 8 replies
 * 4 participants
 * Last reply from: [wfasa](https://wordpress.org/support/users/wfasa/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/parse-error-398/#post-8688840)
 * Status: resolved