We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30672
    • 180 Posts
    hi everybody,

    i don’t know what change i have done in yams configuration or htaccess file, but now i have this appearing on top of every pages of my site:
    <p>(yams-select:0)(lang:0:fr)</p>

    even in pages whose templates aren’t multilingual.

    here is my htacces config:

    # For full documentation and other suggested options, please see
    # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
    # including for unexpected logouts in multi-server/cloud environments
    # and especially for the first three commented out rules
    
    #php_flag register_globals Off
    #AddDefaultCharset utf-8
    #php_value date.timezone Europe/Moscow
    
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /cms
    
    # Fix Apache internal dummy connections from breaking [(site_url)] cache
    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
    RewriteRule .* - [F,L]
    
    # Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
    #RewriteCond %{HTTP_HOST} .
    #RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
    #RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    
    # Exclude /assets and /manager directories and images from rewrite rules
    RewriteRule ^(manager|assets)/*$ - [L]
    RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
    
    # Redirect from mydomain.com/rootname to mydomain.com/rootname/
    RewriteRule ^en$ en/ [R=301,L]
    RewriteRule ^fr$ fr/ [R=301,L]
    
    # The Friendly URLs part
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^fr/(.*)$ index.php?q=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    
    # Reduce server overhead by enabling output compression if supported.
    #php_flag zlib.output_compression On
    #php_value zlib.output_compression_level 5


    thanks for your help !
      • 30672
      • 180 Posts
      nobody has a clue ?

      i deleted the plugin, snippet module 10 times et reconfigured it, but this thing still comes on top of every pages...
      really boring smiley !

      thanks for any help !
        • 22851
        • 805 Posts
        PaulSuckling Reply #3, 13 years ago
        There is probably something at the top of your template that is causing that to be output at the top of every page. Is there a YAMS snippet call or placeholder in your template that could be causing that to be output?

        Try clearing your cache if you haven’t already done so.
          YAMS: Yet Another Multilingual Solution for MODx
          YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
          Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
          • 30672
          • 180 Posts
          thank you PMS for your message !

          i tried this, and someway somehow it has worked.

          this morning, the problem has re appeard, without making anything.

          do you think it can come from a hosting problem ?

          thank you !
            • 30672
            • 180 Posts
            I found the problem !

            i forgot to check the execution orders of the YAMS plugin !
            it was not on the top of some events.

            so sometimes it worked, sometimes not !

            if that can help someone... smiley