Not Allowed to Preview Drafts
-
I’m converting a Weaver II themed website into a Weaver Xtreme themed website and have been advised by the theme author (Weaver) to first create a clone of my website in a subdirectory then convert that clone to Weaver Xtreme. That way, I can keep the Weaver II site live while I convert to Weaver Xtreme. All has gone well with the conversion except whenever I try to preview a page in Weaver Xtreme, while it’s still in the subdirectory, I get this error message:
======
Sorry, you are not allowed to preview drafts.Warning: Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given in /var/www/vhosts/gerlachproductions.com/communiclips/wp-includes/functions.php on line 4339
======I have tried the following:
1. Cleared browser cached files & cookies
2. Deleted the W3 Total Cache pluginBut neither solution worked. This clearly has something to do with your plugin but I cannot fix it. I can preview the home page just fine but none of the other pages of my website. Does this error have something to do with trying to preview a cloned site in a subdirectory?
-
Hello,
There are some other warnings on that page:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Text has a deprecated constructor in /var/www/vhosts/gerlachproductions.com/communiclips/wp-content/themes/weaver-ii/includes/widgets.php on line 12Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_PPText has a deprecated constructor in /var/www/vhosts/gerlachproductions.com/communiclips/wp-content/themes/weaver-ii/includes/widgets.php on line 78Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Login has a deprecated constructor in /var/www/vhosts/gerlachproductions.com/communiclips/wp-content/themes/weaver-ii/includes/widgets.php on line 121
Have you tried updating you WP and PHP to the latest version?-
This reply was modified 6 years, 11 months ago by
Marko Vasiljevic.
I have the very latest versions of WP, PHP & W3TC (9.7.5). I deleted W3TC but that didn’t solve the problem.
If you have disabled and deleted W3 Total Cache make sure to remove the following:
Assuming that W3 Total Cache is installed:
1. Purge Cache (if you already uninstalled W3 Total Cache skip this step)
2. Deactivate and Delete Plugin (if you already uninstalled W3 Total Cache skip this step)
3. Check .htaccess File (make backup)
W3TC will create many directives in .htaccess file to control the caching behavior. Each section will start and end with comments like “#BEGIN W3TC Page Cache core” and “#END W3TC Page Cache core”.
Ensure that no residual entries are left over in your .htaccess file after deleting the plugin.
4. Delete wp-content files and folders
– cache folder
– w3tc-config folder
– dbcache.php (if exists)
– object-cache.php File (if exists)
– advanced-cache.php (if exists)
– upgrade folder
5. Delete the w3-total-cache folder in your wp-content/plugins (if exists)
6. Delete Cached Files from CDN (if using CDN)
Besides deleting all the relevant files, if you use CDN then ensure to purge the cached content from your CDN. This is necessary when you enabled minify option in W3TC settings. You should delete the minified and combined scripts and CSS files from your CDN server to avoid the site breaking on the browser.The problem was due to permalinks not being converted properly. After fixing the permalinks, I can preview even after I reinstalled the most current version of W3TC.
Glad to know the issue is resolved.
-
This reply was modified 6 years, 11 months ago by
The topic ‘Not Allowed to Preview Drafts’ is closed to new replies.