• Resolved LaMpiR

    (@lampir)


    So, I keep accepting the notice, but it keeps appearing.
    Especially when I transfer between languages.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @lampir,
    How did you create the Multilanguage pages, using WPML or PolyLang? Or did you use another plugin to do this?

    Kind regards,
    Jarno

    Thread Starter LaMpiR

    (@lampir)

    Hi.

    Thank you for the quick reply.

    We are using: qTranslate-XT.
    https://github.com/qtranslate/qtranslate-xt

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @lampir,
    Unfortunately, we currently do not support qTranslate-XT as this plugin is not in the WordPress Plugin repository.

    I hope this clarifies.

    Kind regards,
    Jarno

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    As translation plugins tend to change the site url dynamically, this messes up the cookie path.

    You can force it to root by adding the following code as mu-plugin

    function my_cookie_path($path) {
        return '';
    }
    add_filter( 'cmplz_cookie_path', 'my_cookie_path'); 

    Don’t forget to clear the browser cache after.

    Let me know if that helps.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @lampir,
    Have you tried implementing the above code to force the Cookie path to root? This should solve the case where the cookie banner keeps reappearing.

    Kind regards,
    Jarno

    • This reply was modified 4 years ago by jarnovos.
    Thread Starter LaMpiR

    (@lampir)

    Hi.

    I have not, since I didn’t know what exactly to do. Will research in a day or two and get report back to you.

    Thank you.

    Really Simple Plugins

    (@reallysimpleplugins)

    To add a mu plugin, please follow these instructions:

    https://complianz.io/adding-filters-with-mu-plugins-quick-easy/

    Thread Starter LaMpiR

    (@lampir)

    I do apologise for not doing this sooner.

    I have created mu-plugins folder and added a simple qtranslate.php file wiht the given code from above.

    I got this error:

    function my_cookie_path($path) { return ''; } add_filter( 'cmplz_cookie_path', 'my_cookie_path');
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/website/wp-content/mu-plugins/qranslate.php:1) in /homepages/website/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1382
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/website/wp-content/mu-plugins/qranslate.php:1) in /homepages/website/wp-content/plugins/qtranslate-xt-master/qtranslate_core.php on line 458
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/website/wp-content/mu-plugins/qranslate.php:1) in /homepages/website/wp-content/plugins/srbtranslatin/lib/Core/LanguageManager.php on line 49
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Accepting the notice doesn’t mean anything’ is closed to new replies.