Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-6970

WPML option disabling access to WordPress admin panel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Merged
    • Icon: Should have Should have
    • 2.100.0
    • 3
    • Admin Panel, Translations
    • Sprint #204
    • rhea

      Activating the option WPML > Settings > Login and registration pages > Allow translating the login and registration pages redirects the login page to a url containing the lang code (ie /wp-login.php  => /fr/wp-login.php), which returns an Openresty 404. This makes the admin panel inaccessible.

      The 404 is returned by Nginx/Openresty, probably from an existing or a missing rule. We could define if this option should be

      • accepted, and so find the proper rule;
      • or hidden and locked so that it is not activated by mistake.

      Workaround

      The workaround used to fix the Belgium instance is a post-deploy script disabling this option

      Tasks

      • Disable that option, ideally if there is a hook, or just with css to prevent people from enabling it.

      Resources

            oagbernd Osong Agberndifor
            fhernand Florent Hernandez (Inactive)
            Maud Leray Maud Leray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: