We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28907
    • 16 Posts
    I’m trying to setup YAMS at a site, but I’m not sure how to do it properly... I have installed the snippet, plugin and module, done the setup of 3 languages and edited the .htaccess file...
    When the .htaccess is edited, my QuickEdit i messed up and the pages are blank... What am I missing?
      • 22851
      • 805 Posts
      superstoffer.

      The answers to these questions will help me to narrow down what the problem is:

      • Have you restarted or reloaded your server since changing your .htaccess file?
      • What version of MODx are you using?
      • What version of php do you have installed?
      • Are there any recent error messages under Reports->System Events which relate to YAMS?
      • Are there any YAMS related error messages in the server error log for our server?
      • Is your site/documents running as cacheable or uncacheable or a combination?
      • Do you have ditto snippet calls in your website and are they running cachable or uncacheable?
      • Is the YAMS plugin set-up to run first on each system event to which it is assigned?

      Please can you also try disabling your QuickEdit plugin temporarily to see if that makes a difference. I don’t use QuickEdit, so it is possible that there is some incompatibility that I haven’t yet tested. I’ll take a look at my regexps and make sure that they accept the hash character used by QuickEdit. (It is a hash character isn’t it?)

      Thanks.
        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 still waiting to get it on the live server.

        The problem is that the current server has php4 en mysql4.
        The company will get a new server mid august.
        So i’ll keep you updated.
          • 22851
          • 805 Posts
          For the record, YAMS makes use of features that are specific to PHP 5 classes. So, it wont work with PHP 4. YAMS doesn’t make use of a database - just a config file, so there is no problem there. I’ll update the documentation to clarify the pre-requisites.
            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
            yes, i know that php5 is required. That is why I told my client, they have to change host.
            But the current hosting provider will upgrade to 5 in august.. undecided
              • 10958
              • 8 Posts
              Hi everyone,

              first all congratulations for YAMS

              I have got two problems though:

              1. problems with some files path ( css, js, images). Almost solved, I added the following phrase to the htaccess file :

              RewriteRule ^(css|img|js|flash|manager|assets)(.*)?$ - [L,QSA]

              Now the CSS can be downloaded without any problems as well as flash and js, however images can’t be downloaded. The file path is gonna be rewrite following the languages in use.

              For example :. www.sitename.com/en/img/img.jpg

              Img path must be rewrite to www.sitename.com/img/img.jpg!!!

              2. if I enter into the manager and choose “Preview document” or if I take a look to one of websites pages when I’m in the Manager , I will get a white page, If I open another browser and look at the same page, I can see the contain.

              How could I solve the problems ?
              Thanks

              Giorgio
                • 22851
                • 805 Posts
                gm

                1. Your rewrite rule shouldn’t be necessary. You should already have:
                RewriteCond ${REQUEST_FILENAME} !-f
                RewriteCond ${REQUEST_FILENAME} !-d

                in your .htaccess file before each RewriteRule. This tells your server not to do any url re-writing for real files and directories.

                So, within MODx you need to refer to all real files with the standard URLs: eg: http://www.site.com/assets/images/...
                which you can do like normal: [(site_url)]assets/images/...

                I suspect that you have probably specified a multilingual root, http://www.site.com/lang/, as the base href meta tag and are trying to refer to your images using relative URLs. If so, try switching to [(site_url)] or (yams_server) as your base href or using complete URLs throughout.

                2. Hmm. I have never seen that before. Perhaps you could tell me a bit more about your YAMS set-up. Which combination of server-name mode, root-name mode and/or query param mode are you using? (See the Language Settings tab.) Also what version of YAMS are you using. (See the Documentation tab.) Are you getting any errors in your php error log or within MODx under Reports>System Events when you try to access the preview?

                Cheers.
                  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.
                  • 3465
                  • 19 Posts
                  I am trying to set up YAMS now for a while and I am having trouble doing so.

                  The possible problem is that it might be impossible to run YAMS when modx is installed and runs in a subfolder?
                  The address I receive is always xyz.com/en/modx.
                  It should say xyz.com/modx/en
                    • 22851
                    • 805 Posts
                    bjan.

                    You are right. YAMS wasn’t set up to handle configurations where the MODx root is located in a subfolder. However, I can see that that is useful and so I have included an additional option to enable that. Please could you try downloading and installing version 1.0.4 alpha rc1. Then go to the Other Params tab from the module interface. The final option on the page allows you to specify a subdirectory. If MODx is installed into/configured as active like so: http://www.mysite.com/sub1/sub2/index.php, then the subdirectory path should be set to: sub1/sub2 (with no trailing or leading slash).

                    YAMS should then function normally. All placeholders should output the correct URLs.

                    Please could you test it and let me know if you have any problems? Thank you.
                      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.
                      • 10958
                      • 8 Posts
                      PMS

                      Quote from: PMS at Jul 20, 2009, 07:06 PM

                      1. Your rewrite rule shouldn’t be necessary. You should already have:
                      RewriteCond ${REQUEST_FILENAME} !-f
                      RewriteCond ${REQUEST_FILENAME} !-d

                      in your .htaccess file before each RewriteRule. This tells your server not to do any url re-writing for real files and directories.

                      So, within MODx you need to refer to all real files with the standard URLs: eg: http://www.site.com/assets/images/...
                      which you can do like normal: [(site_url)]assets/images/...

                      I suspect that you have probably specified a multilingual root, http://www.site.com/lang/, as the base href meta tag and are trying to refer to your images using relative URLs. If so, try switching to [(site_url)] or (yams_server) as your base href or using complete URLs throughout.

                      Solved! smiley . On Tinymce i’ve check fullpath for file.

                      Quote from: PMS at Jul 20, 2009, 07:06 PM

                      2. Hmm. I have never seen that before. Perhaps you could tell me a bit more about your YAMS set-up. Which combination of server-name mode, root-name mode and/or query param mode are you using? (See the Language Settings tab.) Also what version of YAMS are you using. (See the Documentation tab.) Are you getting any errors in your php error log or within MODx under Reports>System Events when you try to access the preview?

                      Cheers.

                      My version of YAMS is: 1.0.4 alpha (RC 1)


                      * Language dependent server name mode is currently OFF.
                      * Language dependent root name mode is currently ON.
                      * Query param mode is currently OFF.


                      and this is some configuration fields:


                      Lang ID it
                      Tags it
                      Server Name (127.0.0.1)
                      Root Name it
                      Site URL http://127.0.0.1/it/

                      what can be done to solve this problem?

                      Cheers.