• Resolved mcaso

    (@mcaso)


    Hello
    Hope you can help me. I installed W3 version 2.1.7 with WP 5.8.
    I got the error Internal server error 500, I contacted the server provider and they told me that the problem is the .htaccess.
    Here a link to the file. https://pastebin.com/rk37Mgiu

    I create a new .htacess very basic:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    and I was able to login in my site and see the website again.
    After a while I got again the 500 error ( checked the .htaccess and it was nodify again, whith the one I sent the link).
    Now I deactivate W3 and it seems to work fine.
    Now sure about the problem.Can you please help me with that?

    Thank you so much in advance
    Marcela

    I read some post releated with W3, after that I deactivate the plugin and now it see

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mcaso

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    As I can see, the W3TC Browser Cache .htaccess rules are in the Pastebin doc you shared.
    Can you please re-enable W3 Total Cache, disable the Browser Cache in Performance>General settings, save all settings and purge the cache and see if the issue persists?
    If the issue is gone, re-enable Browser Cache and go to Performance>Browser Cache, disable the settings one by one, save all settings and purge the cache and see if the issue persists?
    Thanks!

    Thread Starter mcaso

    (@mcaso)

    Hello

    Sorry for the late anser.
    Here you can see what I have done:

    Here the .hataccess ( before trying to actiuvate the plugin)

    AddHandler x-httpd-php7-3 .php
    # AddHandler x-httpd-php7-2 .php
    # AddHandler x-httpd-php5-6 .php
    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Here the error I got when I tried to activate the plugin
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    as soon as I tried to activate the plugin I got this message

    Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.`

    I checked the .htaccess and here you have it:

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
            AddOutputFilterByType DEFLATE 
        <IfModule mod_mime.c>
            # DEFLATE by extension
            AddOutputFilter DEFLATE js css htm html xml
        </IfModule>
    </IfModule>
    <FilesMatch "\.()$">
        FileETag MTime Size
        <IfModule mod_headers.c>
            Header set Pragma "public"
            Header append Cache-Control "public"
             Header unset Set-Cookie
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.()$">
        FileETag MTime Size
        <IfModule mod_headers.c>
            Header set Pragma "public"
            Header set Cache-Control "max-age=3600, public"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.()$">
        FileETag MTime Size
        <IfModule mod_headers.c>
            Header set Pragma "public"
            Header append Cache-Control "public"
             Header unset Set-Cookie
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.()$">
        <IfModule mod_headers.c>
             Header unset Last-Modified
        </IfModule>
    </FilesMatch>
    <IfModule mod_headers.c>
        Header set Referrer-Policy "no-referrer-when-downgrade"
    </IfModule>
    # END W3TC Browser Cache
    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    So, it seems that as soon as I tried to activate the plugin I got the error.
    Thank you so much

    • This reply was modified 4 years, 8 months ago by mcaso.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mcaso

    Thank you for the information.
    I’ve checked your website and as I can see the W3 Total Cache is active and I am not seeing the 500 error.
    Can you please confirm this?
    I also do not see any files that have any W3TC Browser Cache rules/headers.
    Thanks!

    Thread Starter mcaso

    (@mcaso)

    Hi,
    Now when I tried to see the site I see the 500 eror.
    I was able to log in into the admin in WP but when I went to see the plugins I got the 500 error.
    I checked the .htaccess and I see:

    AddHandler x-httpd-php7-3 .php
    # AddHandler x-httpd-php7-2 .php
    # AddHandler x-httpd-php5-6 .php
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
            AddOutputFilterByType DEFLATE 
        <IfModule mod_mime.c>
            # DEFLATE by extension
            AddOutputFilter DEFLATE js css htm html xml
        </IfModule>
    </IfModule>
    <FilesMatch "\.()$">
        FileETag MTime Size
        <IfModule mod_headers.c>
             Header unset Set-Cookie
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.()$">
        FileETag MTime Size
    </FilesMatch>
    <FilesMatch "\.()$">
        FileETag MTime Size
        <IfModule mod_headers.c>
             Header unset Set-Cookie
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.()$">
        <IfModule mod_headers.c>
             Header unset Last-Modified
        </IfModule>
    </FilesMatch>
    <IfModule mod_headers.c>
        Header set Referrer-Policy "no-referrer-when-downgrade"
    </IfModule>
    # END W3TC Browser Cache
    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    I changed it to

    AddHandler x-httpd-php7-3 .php
    # AddHandler x-httpd-php7-2 .php
    # AddHandler x-httpd-php5-6 .php
    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    And now I could enter.
    But if I go again to the plugins the got the 500 error and the .hataccess is modify again, I think I will need to deactivate the plugin but from the cpanel in order to reinstall againg.
    What do you think? Can you please assit me with that?

    Bye for now
    Marcela

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mcaso

    Thank you for the information. This is a very awkward issue. There is a possibility that there are some nested .htaccess files in the upper level of your website or the httpd.conf has some rules that are causing the conflict.

    To completely remove W3 Total Cache via Cpanel:

    Delete wp-content files and folders
    – cache folder
    – w3tc-config folder
    – object-cache.php (if exists)
    – advanced-cache.php (if exists)
    – db.php (if exists)
    – upgrade folder
    – delete w3-total-cache folder in wp-content/plugins/ (if exists)

    Let me know if this helps!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    No activity for a week.
    Marking topic as resolved

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Internal server error 500’ is closed to new replies.