• Hello!

    I open this post because we managed a site with the same issue described here Bug with Cache purge and WPML | WordPress.org

    We don’t have the same issue every time we clear the cache but just every 10 days more or less and we don’t have any cron activitys set up.

    could you please tell us the solution to prevent w3 total cache to modify our .htacess and cause 500 error ?

    good coding.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor ImageMarko Vasiljevic

    (@vmarko)

    Hello @likedigital

    Thank you for reaching out and I am happy to help!
    I’ve checked this with the Dev team and it seems like a possible bug. We are workin on a fix for this.
    What you can do is change the .htaccess prermissions and preven any writer permissions to make sure .htaccess is not changed for now.
    I’ll keep you posted on the proccess

    Thanks!

    Plugin Contributor ImageMarko Vasiljevic

    (@vmarko)

    Hello @likedigital

    Thank you for your patience.
    Can you please make the update of the file below and let me know if this helps!?

    diff --git a/Util_Environment.php b/Util_Environment.php
    index 4530fc3f..3517bfa0 100644
    --- a/Util_Environment.php
    +++ b/Util_Environment.php
    @@ -852,13 +852,16 @@ class Util_Environment {
    */
    if ( self::is_url( $uri ) ) {
    $uri = wp_parse_url( $uri, PHP_URL_PATH );
    +
    + // Remove query string arguments from the URI.
    + $uri = strtok( $uri, '?' );
    }

    if ( empty( $uri ) ) {
    return '/';
    }

    - return $uri;
    + return trailingslashit( $uri );
    }

    Let me know if this helpls!

    Thread Starter Imagelikedigital

    (@likedigital)

    Hello!

    We have try your update but after some days the problem reappered.

    Plugin Contributor ImageMarko Vasiljevic

    (@vmarko)

    Hello @likedigital

    Thank you for your feedback and sorry for the late reply!
    Are you reffering that the .htaccess part was rewritten again??

    Thanks!

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

You must be logged in to reply to this topic.