• Resolved Splendesco

    (@mediatomics)


    Hi,

    I just moved my website from my local environment to the live webserver. After this move localization fails completely, both in the admin area as on the site itself. All .mo files are present and the wp-config.php also has the correct setting (define (‘WPLANG’, ‘nl_NL’);) So basically nothing on the files-side has changed.

    I have searched but actually don’t have any clue as to where the problem might be. I checked the php-settings and gettext is enabled also.

    Anybody any ideas?

    Tnx.
    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anonymous User 252516

    (@anonymized-252516)

    you will need to be a bit more specific than that. Saying it fails completely tells us nothing. In what way did it fail?

    Also as it works on 1 server but not the other (and assuming you uploaded the files using the correct method) then it must be a server configuration issue.

    Thread Starter Splendesco

    (@mediatomics)

    It fails in that the site shows up in English while it should display the dutch translation.

    URL: https://www.blok52b.info

    Tnx for your response.
    John

    Thread Starter Splendesco

    (@mediatomics)

    I discovered by the way that there’s other problems at the website. I’ll contact my hosting provider first.

    John

    Thread Starter Splendesco

    (@mediatomics)

    Okay, my other problems are solved (I got 500 server errors on all, links). The problem with the translation remains; de site is not translated at all; it shows up in english while it should show up in dutch.

    Any advise on this is still welcome.

    Tnx,
    John

    Thread Starter Splendesco

    (@mediatomics)

    Okay, fixed it. As almost always, stupid cause, simple solution. Here’s the solution to both problems for me

    1. Problem with links giving 500 Server Error. As I developed the website on my local machine, the path in the htaccess at root was not correct for the live website

    The local htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /private/blok52b/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    <strong>RewriteRule . /private/blok52b/index.php [L]</strong>
    </IfModule>
    # END WordPress

    Had to be

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /private/blok52b/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    <strong>RewriteRule . /index.php [L]</strong>
    </IfModule>
    # END WordPress

    2. The localisation problem was caused by a default upload setting, causing remote filenames to be lowercased. There’s quite some filenames with capitals in it, among which the *.mo files (e.g. nl_NL.mo). So make sure your website does not lowercase filenames on upload.

    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Localization fails after moving website’ is closed to new replies.