Tagged: W3 Total Cache Troubleshooting
- AuthorPosts
- April 7, 2021 at 5:09 am #35807Angelica LiberatoGuest
Hello,
I have a problem with the plugin W3 Total Cache on WordPress, I can’t add more plugins because of this. I have been trying to follow the instructions to fix the mistakes, but when I give to save the updates in the folder public_html/.htaccess , it says that there are mistakes and that they can not be saved.
How can I solve it?
Thanks.
April 7, 2021 at 5:23 am #35812Marko VasiljevicKeymasterHello Angelica,
I am sorry about the issue you are experiencing and I am happy to help.
To confirm, you are having issues adding new plugins while W3 Total Cache is activated?
WHich instructions have you been following to fix the mistakes? Also, which updates in .htaccess you have made, and when you say they cannot be saved, can you please clarify that? Are the changes in .htaccess are not being saved or you are getting some error?
Thanks!April 8, 2021 at 12:31 pm #35844Angelica LiberatoGuestHi Marko, thanks for the answer.
Q: you are having issues adding new plugins while W3 Total Cache is activated?
Answer: Yes, exactlyQ: WHich instructions have you been following to fix the mistakes?
Answer: On WordPress, these instructions are appearingW3 Total Cache Error: Files and directories could not be automatically created to complete the installation.
Please execute commands manually
or use FTP form to allow W3 Total Cache make it automatically.
Edit file /home/customer/www/visitmind.info/public_html/.htaccess and replace all lines between and including # BEGIN W3TC Page Cache core and # END W3TC Page Cache core markers with:
# BEGIN W3TC Page Cache core
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} =on
RewriteRule .* – [E=W3TC_SSL:_ssl]
RewriteCond %{SERVER_PORT} =443
RewriteRule .* – [E=W3TC_SSL:_ssl]
RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]
RewriteRule .* – [E=W3TC_SSL:_ssl]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteRule .* – [E=W3TC_ENC:_gzip]
RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
RewriteRule .* – [E=W3TC_PREVIEW:_preview]
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} =””
RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
RewriteCond %{REQUEST_URI} \/$
RewriteCond “%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” -f
RewriteRule .* “/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” [L]
</IfModule>
# END W3TC Page Cache coreQ: which updates in .htaccess you have made?
Answer: I have my website hosted in siteground, so I was directly to my profile, site tools–website–files manager–public_html folder–.htacess–right click in edit–I added that line of code that you saw above–I gave click in saved that it said that it cannot be saved because some problems.Q: Are the changes in .htaccess are not being saved or you are getting some error?
Answer: Yes exactly, they are being saved and an error in appearing.April 8, 2021 at 12:35 pm #35873Marko VasiljevicKeymasterHello Angelica,
The message you are seeing means that your files/folder permission needs to be changed on a server level. It should be for folders 755 and files 644.
Now since your website is hosted on a siteground please note that they have their own caching system and you should reach out to your hosting provider to see if you can use W3TC besides their caching system and to help you with updating the .htaccess and changing the files/folder permission.
Thanks! - AuthorPosts
- The topic ‘Can’t install plugins with W3 Total Cache’ is closed to new replies.