First thing you should do is take a look at the code where the error comes from.
$exs->push(new FilesystemOperationException(
sprintf(__('The Page Cache add-in file advanced-cache.php is not a W3 Total Cache drop-in.
It should be removed. %s', 'w3-total-cache'),
w3tc_button_link(__('Yes, remove it for me', 'w3-total-cache'), wp_nonce_url($remove_url,'w3tc')))));
return;
It appears that you have some file in your cache that W3TC does not like and it want’s to ask you if you want it removed, so it’s trying to load the w3tc_button_link but it can’t find that function.
You could try two thing. Completely clear all of your cache (even ones that were created by other plugins) so that there are no files that w3tc does not like. Then try to reinstall, most likely that will work.
Or you could require the file where the button function is located. Place the require code just before the button function is called. Most likely that will work, but perhaps there are other functions that are also missing. It would look like this:
require_once(W3TC_DIR.'/inc/functions/other.php');
$exs->push(new FilesystemOperationException(
sprintf(__('The Page Cache add-in file advanced-cache.php is not a W3 Total Cache drop-in.
It should be removed. %s', 'w3-total-cache'),
w3tc_button_link(__('Yes, remove it for me', 'w3-total-cache'), wp_nonce_url($remove_url,'w3tc')))));
return;
Craig