+ Reply to Thread
Results 1 to 5 of 5

Thread: After update from 4.7.2 to 4.8.0 - Bug or feature?

  1. #1
    Member
    Join Date
    Aug 2012
    Location
    Germany and Greece
    Posts
    88

    After update from 4.7.2 to 4.8.0 - Bug or feature?

    Hi @all,

    after update to 4.8.0 the language changes automatically, depending on the cookie of the user.

    example:
    4.7.2 ---> www.mydomain.com/ redirect to Default language english --> OK
    4.7.2 ---> www.mydomain.com/de/ redirect to german language --> OK
    4.7.2 ---> www.mydomain.com/gr/ redirect to greek language --> OK


    4.8.0 ---> www.mydomain.com/ redirect to the last selectet User-Language from the Cookie
    4.8.0 ---> www.mydomain.com/de/ redirect to the last selectet User-Language from the Cookie
    4.8.0 ---> www.mydomain.com/gr/ redirect to the last selectet User-Language from the Cookie


    This property also leads to errors in the plugin Massmailer / Newsletters.

    www.mydomain.com/gr/newsletter/subscribe.html?.... ---> it does not work, redirect is wrong
    www.mydomain.com/gr/newsletter/unsubscribe.html?... ---> it does not work, redirect is wrong


    in /includes/classes/rlLang.class.php comment out:


    /*
    // Redirect user to selected language earlier
    if ($_COOKIE[$cookie_lang]
    && ($_COOKIE['userLangChoice'] && $_COOKIE['userLangChoice'] !== $language)
    && !defined('AJAX_FILE')
    ) {
    Util::redirect($GLOBALS['reefless']->getPageUrl('home', '', $_COOKIE['userLangChoice']));
    }
    */


    now works as before.

    How do we get both to work?


    Best regards
    Sakis

  2. #2
    Temporary solution:

    Open file: ftp://includes>>classes>>rllang.class.php in method: defineLanguage
    find code:
    PHP Code:
    Only registered members can view the code
    and replace to:
    PHP Code:
    Only registered members can view the code
    then below find code:
    PHP Code:
    Only registered members can view the code
    and replace to:
    PHP Code:
    Only registered members can view the code
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Member
    Join Date
    Aug 2012
    Location
    Germany and Greece
    Posts
    88
    Thanks Viktor,

    good job, but not everything works.

    4.8.0 ---> www.mydomain.com/ --- redirect to the last selectet User-Language from the Cookie not to default language -- EN
    4.8.0 ---> www.mydomain.com/de/ --- redirect to the last selectet User-Language from the Cookie not to DE
    4.8.0 ---> www.mydomain.com/gr/ --- redirect to the last selectet User-Language from the Cookie not to GR

    www.mydomain.com/gr/newsletter/subscribe.html?.... ---> it works, but redirect only to the default language -- EN
    www.mydomain.com/gr/newsletter/unsubscribe.html?... ---> it works, but redirect only to the default language -- EN


    Can we do that too?
    Then everything is perfect!

    Thanks a lot!

    Sakis

  4. #4
    Hello

    I have added a new condition in the same file and method and seems works now.
    Open file: ftp://includes>>classes>>rllang.class.php in method: defineLanguage
    find code:
    PHP Code:
    Only registered members can view the code
    and replace to:
    PHP Code:
    Only registered members can view the code
    I have checked massmailer plugin and I cannot find links with lang prefix into url. I see links only like:
    www.mydomain.com/newsletter/subscribe.html?....
    www.mydomain.com/newsletter/unsubscribe.html?...
    Viktor,
    Flynax technical department,
    Best wishes.

  5. #5
    Member
    Join Date
    Aug 2012
    Location
    Germany and Greece
    Posts
    88
    Hello Viktor,


    we come one step nearer!



    4.8.0 ---> www.mydomain.com/ --- redirect to the last selectet User-Language from the Cookie ---> OK
    4.8.0 ---> www.mydomain.com/en/ --- redirect to en ---> OK
    4.8.0 ---> www.mydomain.com/de/ --- redirect to de ---> OK
    4.8.0 ---> www.mydomain.com/gr/ --- redirect to gr ---> OK

    So you can call the page by links from advertising in the appropriate language now.

    Good Job!



    --- > I have checked massmailer plugin and I cannot find links with lang prefix into url. I see links only like:
    --- > www.mydomain.com/newsletter/subscribe.html?....
    --- > www.mydomain.com/newsletter/unsubscribe.html?...


    Yes you are right.

    I think this is also a bug.

    The Links :
    www.mydomain.com/newsletter/subscribe.html?....
    www.mydomain.com/newsletter/unsubscribe.html?...

    call only the Default Language --- in my case English.
    Multilanguage does not work in the plugin Massmailer/Newsletters.

    I translated the email templates --- it is always sent only the English.

    Plugin was reinstalled, no improvement.

    Best regards
    Sakis

+ Reply to Thread