• Resolved Bolorino

    (@bollofino)


    Hi
    I moved a few wordpress installations (2.0 and 1.5) to a newer server.
    Once the new DNS IPs were OK I can access WordPress without problem, but spanish language is not loaded anymore.

    Settings are the same define (‘WPLANG’, ‘es_ES’); in wp-config.php and es_ES.mo in wp-includes/languages/

    I double checked permissions for .mo file an directory.

    The old server was
    PHP: 4.3.11
    MySQL: 4.0.25
    Apache: 1.3.33

    And the new
    PHP: 4.4.2
    MySQL: 4.1.14
    Apache: 1.3.34

    I also tried to add php_flag register_globals on to .htaccess without success.

    Any ideas?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Bolorino

    (@bollofino)

    Solved.
    I found the solution in WordPress-es:
    https://wordpress-es.sourceforge.net/2006/01/17/wordpress-20-en-espanol-formal/

    It’s about a bug in some PHP versions

    In
    /wp-includes/gettext.php
    Chage this:

    // $MAGIC1 = (int)0x950412de; //bug in PHP 5
    $MAGIC1 = (int) – 1794895138;
    // $MAGIC2 = (int)0xde120495; //bug
    $MAGIC2 = (int) – 569244523;

    For this

    // $MAGIC1 = (int)0x950412de; //bug in PHP 5
    $MAGIC1 = 2500072158;
    // $MAGIC2 = (int)0xde120495; //bug
    $MAGIC2 = 3725722773;

    ??

    it’s still not work for me any ideas ?

    Try this. Get your original gettext.php file, then find entry:

    if ($magic == ($MAGIC1 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms
    $this->BYTEORDER = 0;
    } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {

    Replace by:

    if ($magic == $MAGIC1) {
    $this->BYTEORDER = 0;
    } elseif ($magic == $MAGIC2) {

    The solution was described there: https://wordpress.dk/forum/topic/19

    It is working for me. WordPress 2.1.3 php 5.2.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Moved server. No language load’ is closed to new replies.