Posted on

Warning: Parameter 1 to W3_Plugin_TotalCache::ob_callback()

 


Find this folder in your Cpanel

public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin

Then find this function

function ob_callback(&$buffer) {

For me it was on line 512 and was coded as such

* @param string $buffer
      * @return string
      */
    function ob_callback(&$buffer) {
         global $wpdb;

         if ($buffer != '') {

All you need to do is delete the ampersand (&)
When finished it looks like this

* @param string $buffer
      * @return string
      */
    function ob_callback($buffer) {
         global $wpdb;

         if ($buffer != '') {

Now you’re all set 🙂

PS Don’t forgot to backup just in case