• Hello,

    we are experiencing an intermittent but serious issue on a WordPress site using Polylang. About once or twice a week, when creating a new translation of a product (e.g. duplicating into Dutch), the site suddenly breaks with HTTP 500.

    From our logs, the last request before the error is always an admin-ajax.php call triggered from the post editor when adding a new translation (example below). At exactly that moment, the .htaccess file in the web root becomes truncated — usually only the first part of the file is saved, the rest is missing. This makes the file invalid and the server returns a 500 error until we restore it.

    Example log entry:

    [29/Sep/2025:17:23:19 +0200] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 ...
    Referer: /wp-admin/post-new.php?post_type=produkt&from_post=42777&new_lang=nl
    

    It looks like Polylang may be rewriting .htaccess during this process. If the request is interrupted (timeout, memory issue, or concurrency), .htaccess ends up incomplete.

    Could you please confirm if Polylang writes to .htaccess, and whether there is a way to disable or safeguard this behavior?

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Contributor ImageSébastien SERRE

    (@sebastienserre)

    Hello,

    Polylang doesn’t write in the .htaccess and we did not publish any new release on the latest weeks.
    You should search for a conflict by activating Twenty Twenty Five + Polylang. Check you do not have any issue. Then activate your theme and check… then activate each of your plugins and check between each activation until the errors come back to determine the conflicting componnent.

    Regards

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.