• Resolved zgall1

    (@zgall1)


    When I activate the plugin on my site, I receive the following error message:

    3TC\DbCache_WpdbNew::prepare($query, …$args) should be compatible with wpdb::prepare($query, $args) in /srv/users/serverpilot/apps/summitsearchgroup/public/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php on line 340

    Warning: Cannot modify header information – headers already sent by (output started at /srv/users/serverpilot/apps/summitsearchgroup/public/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php:340) in /srv/users/serverpilot/apps/summitsearchgroup/public/wp-admin/includes/misc.php on line 1196

    I am running the latest version of the plugin. What steps can I take to rectify this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zgall1

    (@zgall1)

    When I first activate the plugin, I actually receive this error message:

    Warning: Zend OPcache API is restricted by “restrict_api” configuration directive in /srv/users/serverpilot/apps/summitsearchgroup/public/wp-content/plugins/w3-total-cache/SystemOpCache_Core.php on line 13

    When I clear my cache, it disappears and I receive the message in the original post.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zgall1

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    The warning is caused by server-side restrictions – when OPCache API is not supposed (allowed) to be accessed.
    opcache.restrict_api
    Allows calling OPcache API functions only from PHP scripts which path is started from the specified string. The default “” means no restriction. But as I said previously, this is restricted on a server level.
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error message when plugin is activated’ is closed to new replies.