Viewing 15 replies - 1 through 15 (of 35 total)
  • Plugin Author John Clause

    (@johnclause)

    Wow. I am speechless … What were your last actions before it happened? Did you change “WordPress Address (URL)” or “Site Address (URL)”, for example?

    I am afraid that to fix whatever went wrong, you would need to modify something in the database directly. Before we try to understand what is wrong, do you know how to access and to modify database directly at your provider site? If not, then it would be one story, if yes, then the other story.

    Plugin Author John Clause

    (@johnclause)

    You can rename folder /wp-content/plugins/qtranslate-x to something else, just to disable qTranslate-X and see if you are able to login? If you can, then let me know what you have in the fields “WordPress Address (URL)” or “Site Address (URL)”. I never tested them to be different, which seems to be your case, is it?

    Thread Starter tysconnect

    (@tysconnect)

    I forgot to mention that I have WordPress installed in a subfolder: https://tysconnect.com/tysconnect/

    Yes I do know how to access the database with phpMyAdmin. siteurl is set to: https://tysconnect.com/tysconnect/ and home is set to https://tysconnect.com.

    I disabled qTranslate-X and then I can login again. But as soon as I enable it I have the same problem with being redirected when I try to login.

    I also tried different settings for home with and without subfolder. But that does not seem to change what is happening.

    Plugin Author Gunu

    (@grafcom)

    @tysconnect

    Look if you checked “Detect the language of the browser and redirect accordingly.”

    For me that was the reason I could not login.

    The default language in WP was not consistent with my browser language.

    Thread Starter tysconnect

    (@tysconnect)

    @ Gunu

    It is not checked and my WP language is Swedish and browser is German. Was it working with or without being checked?

    Plugin Author Gunu

    (@grafcom)

    @tysconnect

    When checked (the default language is English) but my browser is Dutch I cannot login because I always got mysite.com/nl

    Unchecked it worked fine.

    But I see on your site that yoursite.com basic refers to yoursite.com/de

    Try also “Hide URL language information for default language” with checked.

    Thread Starter tysconnect

    (@tysconnect)

    Thank you all! It is working again!

    By disabling qTranslate-X I was able to access the admin pages.
    I then checked “Hide URL language information for default language” in the settings for the language (qTranlate-X must be activated for this).

    Here is the problem (that perhaps can be solved in an update): My default language in WordPress is Swedish (Browser German). But when I click through my site and choose German this is stored somewhere (cookies?). After that I cannot open the admin pages anymore because the language code is always set to yoursite.com/de/subfolder/wp-login. But when I change to Swedish again in the frontend the backend works fine.

    @tysconnect: I am very glad that you got it working, although this sounds really strange to me, because wp-admin. wp-login, etc. are language-neutral urls and they should not be redirected to anything like yoursite.com/de/subfolder/wp-login, they should stay yoursite.com/subfolder/wp-login, although I think a problem like this existed in the past. Which version of qTranslate-X do you use? I could not reproduce anything you both described so far. Maybe my browser is configured differently, somehow. I will try more.

    Plugin Author Gunu

    (@grafcom)

    @tysconnect,

    the – Default Language / Order – under settings – languages it corresponds to the default language of WP?

    Thread Starter tysconnect

    (@tysconnect)

    @gunu
    Yes
    Under General Settings the site language is: Swedish
    Under Language Management (qTranslate Configuration) the Default Language / Order is also set to Swedish

    @qtranslateteam
    I just updated to 2.9.6

    I cannot reproduce the problem anymore even if i change to German in the frontend. So unless you want me to investigate further with different settings I would regard this topic as resolved.

    Thank you all again for an easy to use plugin and quick support!

    francoisromain

    (@francoisromain)

    I just had the problem when I switched from Q-translate. I think it happened because the wordpress default language and q-translate default where different.

    Thank you all for your indications on how to solve the problem.

    q-translate X v.2.9.6, wp 4.1

    Actually, I still have the same problem:

    ? website is installed in a subfolder, but accessed from the the root url
    ? impossible to access to the login page because /en/subfolder/wp-login is redirected to /en/subfolder/wp-login instead. (and this is a 404).

    The only way to fix it is to “Hide URL language information for default language.”

    But I would prefer to keep the language in the url, even for the default language.

    What should I do ?

    thank you

    Plugin Author Gunu

    (@grafcom)

    @francoisromain,

    and what if you go directly to the folder /subfolder/wp-admin instead of /subfolder/wp-login ?

    same problem with direct access to /subfolder/wp-admin

    Plugin Author Gunu

    (@grafcom)

    @francoisromain,

    how is the redirect done from root to the subfolder?

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘Repost: Cannot login to admin pages due to prepath language set by qTranslate-x’ is closed to new replies.