• Resolved kramp

    (@kramp)


    Hi,
    I installed Multisite Language Switcher on my website to have an English version (I only had a Franch version). When I installed the plugin and the network it worked perfectly.

    But for several days now, the EN version doesn’t work, or not so good. There are 2 main problems, that may be linked :
    #1 the theme does not work properly : it works perfectly on the FR version, but not on the EN version.
    #2 I can’t access the EN version admin page (but I can access the FR admin page). When I try, I have an error message (see here the message I have on Firefox, here is the error message for the same page on Chrome (SRWare-Iron), and here on IE9).

    Maybe could this problem come from my htaccess because it is the only thing I changed recently. But I came back to the original version, and it still doesn’t work. Here is my htaccess :

    SetEnv PHP_VER 5
    
     BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
     END WordPress
    
     BEGIN mdp
    
     END mdp

    Does anybody have an idea ?

    http://wordpress.org/extend/plugins/multisite-language-switcher/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Seems there is one big problem which causes all these errors. Do you know somebody who can help you with the .htaccess-stuff?

    Thread Starter kramp

    (@kramp)

    Yes, I guess it is the same error for the two problems. But I don’t know who could help me with the .htaccess.
    I opened the EN version with Firebug, you can read the result here.

    Plugin Author Dennis Ploetner

    (@realloc)

    You can find the content for a working .htaccess in your installation. Go to the Network Setup -> http://www.enpolitique.com/wp-admin/network/setup.php

    Thread Starter kramp

    (@kramp)

    Thank you.
    It indicates me a .htaccess very different from what I had:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    But with this .htaccess it is even worse, because I can’t reach anymore the website (FR nor EN), I have an error on Firefox saynd

    Internal Server Error
    
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator, xxxx@xxxx.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    
    More information about this error may be available in the server error log.
    
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    On Chrome, I have an “Error 105 (net::ERR_NAME_NOT_RESOLVED) : Impossible to resolve the server DNS address.” (my translation from French;)

    Plugin Author Dennis Ploetner

    (@realloc)

    You said that it worked perfectly some days ago. What could have changed your .htaccess file?

    Thread Starter kramp

    (@kramp)

    Some days ago I changed the .htaccess myself. I wanted to add a .htpasswd, but as I had problems with it, I gave up and I came back to the original .htaccess (the one that was given by WordPress during for the network install, and that worked perfectly). But I didn’t check the EN version, so I don’t know if it doesn’t work because of this. It is a possibility but I can’t be sure. Especially because the day after I discovered the problem with the EN version it appears that the theme of the EN version worked quite good again. It wasn’t perfect because there was a list of the pages/or menu, I don’t know, on the bottom of each page (before or after he comments, I don’t know). But the pictures and menus were back to normal.
    One of the things I tried to solve the problem was to update WordPress (3.4.2 to 3.5.1) and the plugin. That maybe why the .htaccess now given in the Network Setup is not the same than the one given during the first install of the Network (under WP3.4.2).

    Plugin Author Dennis Ploetner

    (@realloc)

    I think it’s clear that you should repair the configuration of your WordPress Install. You could ask your Hosting Service why you get an error 500 when you activate the proposed .htaccess.

    Thread Starter kramp

    (@kramp)

    Well I called my Hosting Service today. The guy looked at the new .htaccess indicated by wordpress and told me there was no reason it wouldn’t work. He set this .htaccess up in the server himself and… it works perfectly, including the EN version of the wordpress.
    I don’t understand, but I am happy.
    Thank you for your support, and for your excellent plugin.

    Plugin Author Dennis Ploetner

    (@realloc)

    Very good! Don’t forget to rate the plugin. 😉

    Thread Starter kramp

    (@kramp)

    Done!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Theme bug & can't access admin on a language version of my website’ is closed to new replies.