Title: 7.2 Error
Last modified: September 7, 2022

---

# 7.2 Error

 *  Resolved [mrgrt](https://wordpress.org/support/users/mrgrt/)
 * (@mrgrt)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/7-2-error/)
 * Good morning,
 * Our website went down this morning and we tracked it down to an issue with the
   latest version of the NinjaFirewall (WP Edition) – Advanced Security Plugin and
   Firewall ([https://wordpress.org/plugins/ninjafirewall/](https://wordpress.org/plugins/ninjafirewall/))
   which looks to have been updated a few hours ago.
 * We tracked the issue down to the following bit of code (ninjafirewall/lib/utils.
   php: 943-964), specifically 958 where there is an additional comma that is incompatible
   with PHP 7.2:
 * function nfw_authenticate( $user ) {
 *  $nfw_options = nfw_get_option(‘nfw_options’);
 *  if ( empty( $nfw_options[‘enum_login’]) || empty($nfw_options[‘enabled’]) ) {
   
   return $user; }
 *  if ( is_wp_error( $user ) ) {
    if ( preg_match(‘/^(?:in(?:correct_password|valid_(?:
   username|email))|authentication_failed)$/’, $user->get_error_code() ) ) { $lostpass
   = esc_attr( wp_lostpassword_url() ); $user = new WP_Error(‘denied’, __(‘Invalid
   username, email address or password.’, ‘ninjafirewall’) . “<br />[“. __(‘Lost
   your password?’, ‘ninjafirewall’). ‘‘, // Extra comma on 958 causes error with
   PHP 7.2. Remove this comma to fix. ); add_filter(‘shake_error_codes’, ‘nfw_err_shake’);}}
   return $user; }
 * Copy from error log:
    [Wed Sep 07 09:25:45.059923 2022] [proxy_fcgi:error] [pid
   28574:tid 140151334356736] [client **IP removed**] AH01071: Got error ‘PHP message:
   PHP Parse error: syntax error, unexpected ‘)’ in /public_html/wp-content/plugins/
   ninjafirewall/lib/utils.php on line 959\n’
 * Removing the comma from line 958 in ninjafirewall/lib/utils.php appears to fix
   this issue.
 * Can you please take a look and resolve the issue?
 * Thanks,

Viewing 1 replies (of 1 total)

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/7-2-error/#post-15986762)
 * Thanks for reporting the issue. Version 4.5.4 (WP and WP+) was just released,
   please update.
 * [https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=2781226%40ninjafirewall&old=2781079%40ninjafirewall&sfp_email=&sfph_mail=](https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=2781226%40ninjafirewall&old=2781079%40ninjafirewall&sfp_email=&sfph_mail=)

Viewing 1 replies (of 1 total)

The topic ‘7.2 Error’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/7-2-error/#post-15986762)
 * Status: resolved