Support » Plugin: Hummingbird – Speed Optimize, Cache, Minify & Defer Critical CSS & JavaScript » Warning: Zend OPcache API is restricted by “restrict_api”

  • Resolved bonsaigil


    Warning: Zend OPcache API is restricted by “restrict_api” configuration directive in …public/wp-content/plugins/hummingbird-performance/core/integration/class-opcache.php on line 44


    Just updated the plugin and got this error both on the back and front-end. Added debug false as per this article:

    Still showing the error.

    Any ideas? (Deactivated the plugin for now)

    Was working perfectly until this update.

    Digital Ocean Server + ServerPilot + PHP7.2 + WP5.2

    Thanks! : )

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Adam – WPMU DEV Support


    Hello @bonsaigil

    I Hope you’re well today!

    This is related to Zend OPCache API access being restricted but the plugin should “silence” such warning. Our developers are already aware of the issue and are looking into it.

    Meanwhile, have you tried also adding following line to the “wp-config.php” file of your site:


    This should hide the warning (this warning doesn’t actually affect how site works, it’s only a message that should be hidden anyway).

    Best regards,



    Hi Adam,

    Thanks for the update. : )

    Okay, I rolled back to the previous version I had installed (2 releases back). So, I’ll wait for the next release and see if that resolves the error message.

    • This reply was modified 1 year ago by bonsaigil.

    Hi Adam,

    I am using the free version. I have included @ini_set(‘display_errors’,0); to my wp-config.php file, but the error is still showing. Is there any other way to try?



    Plugin Author Anton Vanyukov



    You can just disable the OPcache integration in Hummingbird – Page Caching.

    Best regards,

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