• I run into this warning message when trying to Apply the login protection to xmlrc.php.

    Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in /srv/users/serverpilot/apps/wpthaiuser/public/wp-content/plugins/ninjafirewall/lib/login_protection.php on line 575

    So I search and I found put @ to the line 575 fix problem. I want to know if it is true or if it is good to do?

    @opcache_invalidate( NFW_LOG_DIR . '/nfwlog/cache/bf_conf.php',

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Hi,

    Thanks for reporting the issue. It seems to come from the fact that you have some restrictions in place in the opcache.restrict_api PHP directive.

    Adding a ‘@’ is fine, that will hide the warning.

    I’ll add it to the next release of NinjaFirewall.

    Thread Starter Jatupon Rattanapanop

    (@emilybkk)

    Thank you for the answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Zend OPcache API is restricted by “restrict_api”’ is closed to new replies.