• Resolved mbpe

    (@mbpe)


    Hello

    `I am using the WPML plugin for multilingualism,
    I’m having a problem because of All In One WP Security & Firewall

    When anyone changes the language on the site to English Then back to the original language , the site crashes and the following appears


    500 Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    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.

    The site is down for a long time

    it makes the change in the .htaccess file

    As soon as the code is modified, the site works without a problem, then as soon as you change the language, the code changes again

    ************************Before *******************
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /en/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /en/index.php [L]
    </IfModule>

    This code is correct and the site works without a problem and the previous code site becomes disabled

    ************************Corrected rule ********************************
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/
    I found here a description of the problem and a way to solve it temporarily, then I tried to go back to the old versions All In One WP Security & Firewall 4.4.9 and it solve the problem

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • i have the same problem after update to 4.4.10

    Thread Starter mbpe

    (@mbpe)

    Hello
    It has now been found that the meeting of the All In One WP Security & Firewall 4.4.10 plugin with Loyalty Points, Rewards and Referral Plugin for WooCommerce 1.2.14
    is causing this issue.
    https://www.flycart.org/products/wordpress/loyalty-points-and-rewards-for-woocommerce

    Hope this helps solve the problem

    Plugin Support vupdraft

    (@vupdraft)

    Hi,

    It thanks for flagging this and providing a resolution. I will pass this onto our development team for review.

    We have the same issue with an installation with WPML and All In One WP Security & Firewall. We have WPML configured using a language slug for every language except the default language:

    GER: https://www.example.org/ (primary/default language)
    EN: https://www.example.org/en/ (secondary language)

    When the correct rule is in the .htaccess file, the first call of the secondary language works fine. But when this page is processed, in the background the .htaccess wordpress basic rules are somehow rewritten an get the wrong

    RewriteBase /en/

    RewriteRule . /en/index.php [L]

    into the rules. After that no page of the secondary language is callable and produces HTTP 500. Only if you call a page of the primary language, the rules are processed back to the working version and then you can start the same behaviour from the beginning.

    This is also happening when you deactivate and reset all rules and have just the simple All In One WP Security & Firewall plugin without any set configuration running.

    WP and Plugins:
    Wordpress 6.0 (de_DE)
    All In One WP Security & Firewall plugin (4.4.12)
    WPML String Translation (3.2.1)

    • This reply was modified 2 years, 4 months ago by steeeg.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘When switching language, site crashes ( 500 Internal Server Error message)’ is closed to new replies.