We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22851
    • 805 Posts
    Version 1.0.2 released. Fixes the wayfinder issues and implements several of the suggestions put forward in this thread. Should be available in the MODx repository soon.

    EDIT: By the way, my site http://nashi.podzone.org/ now implements YAMS to display Japanese and English versions of the content. If you follow the link to the site, you should be directed to either the English or Japanese variant of the home page depending on your browser settings. The site itself is not very flashy because I don’t really have the time to spice it up. However, it does include Ditto calls, Wayfinder calls, multlilingual rss feeds and a sitemap.xml page that lists all language variants of each document.
      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.
      • 17883
      • 1,039 Posts
      I am running into big trouble when running Ditto. No matter if the Ditto call is cached, uncached, with or without extender, I only get a blank page. Is there something broken in 1.0.3? Interesting thing is that no matter if the Ditto call is placed only in one language content or even "hidden" with phx, it always results in a blank page. Have to present the site in an hour, have to build static chunks in the meanwhile undecided

      @PMS: It is the same site that I showed you. Look at the menu item "test", there is a simple Ditto call on the german page while on the english page it is empty. Both versions result in a blank page.

      Also I recognized some caching issues. After editing a page I always have to clear the cache, otherwise the language detection doesn`t work. I disabled the cache for every page, but this doesn`t help either.
        • 22851
        • 805 Posts
        @MadeMyDay

        I’m away on a course today and so wont be back home until late this evening. Perhaps 11pm your time.

        With regards to Ditto, I suspect that it is not finding your YAMS extender file or something like that. I have never got a blank page before. Perhaps check your php error logs for clues as to what is going wrong.

        Sorry I can’t be of more help right now.

        PMS
          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.
          • 17883
          • 1,039 Posts
          Hi PMS, thx for the reply.

          I tried with and without extender, don’t think that this is the problem. But I will double check that again.
            • 22851
            • 805 Posts
            Just a quick note to say that @MadeMyDay and myself solved this problem off-line. The problem with the blank page turned out to be due to a corrupt installation of Ditto rather than a problem with YAMS. The caching issues have apparently disappeared with my bleeding edge development version. So, I’ll try to get out a new version soon - but I’m still working on implementing some optimisation. Turns out to be slightly more complicated than I envisaged, but hopefully I’ll get there in the end.

            If anyone needs a bleeding edge build sooner, just shout.
              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.
              • 7690
              • 166 Posts
              I am using the alpha version.
              But i can’t change the server name. When i edit the field to: 127.0.0.1/wnh/ or 127.0.0.1/wnh and hit submit.
              It doesn’t save the settings...

              I get the message:
              Could not set server name to "127.0.0.1/wnh/

              I have to edit it, because i test it locally.
                • 22851
                • 805 Posts
                To get this to work with YAMS the server name would have to be configured as 127.0.0.1 and the root name would have to be configured as wnh.

                If you have just placed your MODx installation in a subdirectory called wnh on your server and you don’t want wnh to be the root name then you will have to reconfigure your server settings to hide the wnh. You could define a virtual host for your MODx install that has the wnh directory as its root.

                However, there is one potential problem. I just had a look at the regexp I am using to check the server name within YAMS and it looks like it will only allow name-based server names, not IP-based ones. I am very close to releasing YAMS 1.0.3 alpha. If you can wait a few days, I’ll fix this to allow IP based addresses and include it in that release. Otherwise, a workaround might be to set-up your virtual host to use a name similar to myinstall.com. If my memory serves me correctly then I think this will work if you are accessing the MODx install locally rather than over the web.
                  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.
                  • 7690
                  • 166 Posts
                  ok no problem smiley
                  Will wait a few days. And if I can’t, I will upload everything to a live server smiley

                  But another problem. Don’t know if it’s also a problem with the ip.
                  But when i don’t use a subdir. And just put the modx site in the main dir (127.0.0.1)

                  When i go to the site:
                  http://127.0.0.1/, it switches to http://127.0.0.1/nl/.
                  So that is good, but i get a 404.

                  So i thought, that is was because of I hadn’t editted the htaccess file yet.
                  I edit the lines with:
                  # The Friendly URLs part
                  RewriteCond ${REQUEST_FILENAME} !-f
                  RewriteCond ${REQUEST_FILENAME} !-d
                  RewriteRule ^nl/(.*)$ index.php?q=$1&yams_lang=nl [L,QSA]
                  RewriteCond ${REQUEST_FILENAME} !-f
                  RewriteCond ${REQUEST_FILENAME} !-d
                  RewriteRule ^cn/(.*)$ index.php?q=$1&yams_lang=cn [L,QSA]
                  RewriteCond ${REQUEST_FILENAME} !-f
                  RewriteCond ${REQUEST_FILENAME} !-d
                  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


                  And when i took a look again, the page worked. But the stylesheets etc, weren’t loaded in.
                  Also, i coudn’t get in the manager anymore. It got renamed the whole time in:
                  http://127.0.0.1/nl/manager/

                  I also edited the template:
                  <base href="(yams_site)" />
                  <link rel="stylesheet" type="text/css" href="[(site_url)]assets/templates/wnh/styles/style.css"/>

                  But it had no effect.


                  I think it’s again a problem with the ip adress issue.
                  What do you think?

                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Usually "localhost" will work if IP address doesn’t; at least that’s what I’ve always used, whether on a Windows, Linux or Mac local machine.

                    Also, if your MODx installation is in a subdirectory in your www or htdocs or public_html directory, you can just add the subdirectory to the "RewriteBase /" line in the .htaccess file. In my case at the moment, it’s RewriteBase /1.0-5352/
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 7690
                      • 166 Posts
                      yeah, i know.
                      But localhost doens’t work anymore for some weird reason.
                      reinstalled WAMP, but it still only works with 127.0.0.1
                      Even when everything in the config log of apache is set correctly.

                      And also editing the htacces file, doesnt work for me.
                      For example i have RewriteBase /test
                      YAMS will make of the url:
                      127.0.0.1/nl/test/
                      or when i edit the friendly url part in htacces
                      127.0.0.1/nl/test/nl/