We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9359
    • 128 Posts
    hello everyone,
    I have many sites with modx Evo and yams installed (and that worked perfectly). After updating to 1.0.15 I lost the ability to have the tabs for the various languages.
    of course I checked if the configuration file (my mm_rules) was overwritten but it is not. yams is configured well, manager manager is ok, in the resources tab of the various languages are empty and all the language tv are all together :-(
    Someone happened? it happened to me in at least five websites sad

    P.S. Other rules and other tab create by my mm_rules works fine. Only Yams and the tv created by yams are affected by the problem

    This question has been answered by fourroses666. See the first response.

      "Destiny is not a matter of chance, it's a matter of choice"
    • discuss.answer
      • 9995
      • 1,613 Posts
      You could update YAMS: https://github.com/fourroses666/YAMS
      And change this line:

      /assets/plugins/managermanager/mm.inc.php

      Add the line (20): global $mm_version;
      Right above: $mm_version = '0.6.2';


      Also see:
      https://github.com/modxcms/evolution/issues/367
      https://github.com/DivanDesign/MODXEvo.plugin.ManagerManager/issues/11

      [ed. note: fourroses666 last edited this post 9 years, 3 months ago.]
        Evolution user, I like the back-end speed and simplicity smiley
        • 49878
        • 7 Posts
        Hello,

        I also have a problem to configure Yams module.
        I followed the preview instructions required, but still unable to work when I click on any edit button (see following attachments).
        And so, I don't know how to setup the htaccess file, cause preview my local website is broken when module on.

        Thank you for your help !
        Regards
          French MdxEvolution user.
          • 9995
          • 1,613 Posts
          I can post one of my .htaccess files, you need to change or add some languages on the bottom lines. Did you made a mistake while changing or updating YAMS maybe?
          Did you placed the config file from your old version in the new?


          # Friendly URLs
          RewriteEngine On
          RewriteBase /
          
          # Fix Apache internal dummy connections from breaking [(site_url)] cache
          RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
          RewriteRule .* - [F,L]
          
          
          # Exclude /assets and /manager directories from rewrite rules
          RewriteRule ^(manager|assets) - [L]
          
          # Redirect from mydomain.com/rootname to mydomain.com/rootname/
          RewriteRule ^nl$ nl/ [R=301,L]
          RewriteRule ^en$ en/ [R=301,L]
          
          # The Friendly URLs part
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^nl/(.*)$ index.php?q=$1 [L,QSA]
          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 ^(.*)$ index.php?q=$1 [L,QSA]
            Evolution user, I like the back-end speed and simplicity smiley
            • 49878
            • 7 Posts
            Quote from: fourroses666 at Feb 12, 2015, 10:47 PM
            Did you made a mistake while changing or updating YAMS maybe?
            Did you placed the config file from your old version in the new?

            Thank you for your quick answer,
            I don't know what's going wrong, no I didn't overwrite the new config file,
            I tried to re-install the whole module from the beginning by following the readme tuto.
            Should I place the .htaccess file into the yams directory ? I'm currently working on a local server, but all of my friendly url were ok since I install Yams.
              French MdxEvolution user.
              • 9995
              • 1,613 Posts
              When I update YAMS the folder /modules/yams--- I rename and then upload the new folder.
              The new folder has no config.inc.php file and you need to place a duplicate in the new folder.

              The .htaccess needs to be in the root but thats probably not the issue.
                Evolution user, I like the back-end speed and simplicity smiley
                • 49878
                • 7 Posts
                Thank you very much, that's it, in fact I missed the line to add the config.inc.php file (I was mistaken with the yams.module.inc.php one) sorry about that.

                And now, how would I set up the url as
                Server name mode only. Eg:
                http://en.server_name.com/mydoc.html
                http://fr.server_name.com/mydoc.html

                Because since I install Yams, my RewriteBase is no longer taken into consideration and pages are loaded in cplus-web.com/index.php instead of cplus-web.com/sites/marquisats2/index.php

                Here is my .htaccess file :

                RewriteEngine On
                RewriteBase /sites/marquisats2
                
                # Fix Apache internal dummy connections from breaking [(site_url)] cache
                RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
                RewriteRule .* - [F,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]
                
                # 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 ^(.*)$ index.php?q=$1 [L,QSA]


                ~~ not a piece of cake...
                  French MdxEvolution user.
                  • 49878
                  • 7 Posts
                  Well I mostly understand the how to, but now I have a loop redirection -- please anybody post a video tutorial for Yam's set up...
                    French MdxEvolution user.
                    • 9995
                    • 1,613 Posts
                    I never use subfolders, I always use subdomains like site.domain.com/ if I use subfolders.

                    Check the friendly URL settings on your Config tab. See attachment.
                    Did you reset the paths in config tabs?
                    (Path to the MODX installation) Reset <- button

                    Can't you use the YAMS .htaccess and then rename the Base:
                    RewriteBase /sites/marquisats2 or is it /sites/marquisats2/ ? I dunno
                      Evolution user, I like the back-end speed and simplicity smiley
                      • 49878
                      • 7 Posts
                      Hi @fourroses666, thank you very much for your advices, it was helpful so I didn't give up.
                      I used subdomains as you told me and I tried so many setting that I do not really remembrer what was going wrong !
                      My website is now perfectly multilingual. Hope I could do it again for an other work ! Practice, practice wink
                        French MdxEvolution user.