We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31893
    • 4 Posts
    Hi this is a working htaccess for latest RC.

    # ovh host settings
    SetEnv REGISTER_GLOBALS 0
    SetEnv PHP_VER 5
    
    # html5 video tag
    AddType video/ogg .ogv
    AddType audio/ogg .oga
    AddType video/mp4 .m4v .mp4
    
    
    # Do not allow directory listing
    #Options -Indexes
    
    RewriteEngine On
    RewriteBase /
    
    # Fix Apache internal dummy connections from breaking [(site_url)] cache
    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
    RewriteRule .* - [F,L]
    
    # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^mysite\.com [NC]
    RewriteRule (.*) http://mysite.com/$1 [R=301,L]
    
    # Exclude /assets and /manager directories from rewrite rules
    RewriteRule ^(manager|assets) - [L]
    
    # Redirect from mydomain.com/rootname to mydomain.com/rootname/
    RewriteRule ^fr$ fr/ [R=301,L]
    
    # The Friendly URLs part
    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
    
      • 23018
      • 353 Posts
      THANK YOU PMS!

      YAMS is AWESOME! Anybody who has ever developed a multi language site with joomla! and joomfish will’ll surely agree that YAMS is an extremely webmaster friendly solution.

      Setup, Installation as well as ManagerManager Integration went surprisingly well and apart from a view minor issues that I’m sure will work out right as soon I had a tid bit of sleep everything reacts as expected.

      There is just one tinyitsybitstineweeny problem with a snippet I’m working on (http://modxcms.com/forums/index.php/topic,40853.0.html).

      I just noticed that there is an issue with this particular snippet and YAMS. Both in the official 1.0.5 release as well as 1.1.7.

      Description: When I put the snippet call both into content(en) AND content(de) I get a fatal error:

      Fatal error: Cannot redeclare php_file_tree()...


      A similar problem can be found here: http://modxcms.com/forums/index.php/topic,39959.msg241494.html#msg241494

      I have a general idea what to do about that, but I can’t say that I really understand what exactly happens.

      Any ideas?

      Regards, pepebe


      Update: I have also noticed that unpublished documents are not properly redirected. Instead I get this message:


      ERROR: Too many forward attempts!

      The request could not be completed due to too many unsuccessful forward attempts.

      I setup and linked all modx error pages (maintenance, unauthorized, missing). I have double checked them, so I don’t think this is related to a modx-related misconfiguration.

      Any ideas?

      Regards,

      pepebe
        Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
        • 19463
        • 4 Posts
        I’m using latest version of YAMS on my site, I’m trying to make multilingual login form with WebLogin snippet but unfortunately it doesn’t work when I’m trying to login it doesn’t make session cause of the language url and mod rewrite sittings I guess. Have somebody touched with this? Any issues?
          • 10076
          • 1,024 Posts
          Hi,

          I am trying to write a doc for newbies (like I am) so I am documenting a step by step setup on my machine.
          All is well untill I try to use a root setup.
          Links are refering to localhost/english/modx rather then to localhost/modx/english?
          Any ideas?

          best, Fr.
            • 22851
            • 805 Posts
            Part way through hols. Back on 26th. Just thought I would check in and see how its going. Quite a bit by the looks of things. Let me see if I can quickly sort some things out...

            @Frank. If your installation is in a subdirectory on your server then you need to specify that under Yams > Other Options. There’s a special setting. You’ll have to update your .htaccess afterwards.

            @mikefluff. I have never used Weblogin with YAMS before. There is a setting under YAMS > Other Options that allows YAMS to accept standard MODx URLs for specified documents. Weblogin might work if you specify the id of your login document (or just use *). I can look into YAMS-ifying it when I get back. However, I looked at the Weblogin code quite a while ago back and it wasn’t very pretty. I’d much rather YAMS-ify WebloginPE.

            @pepebe. Try wrapping the function definition for php_file_tree like so
            if ( ! function_exists( 'php_file_tree' ) ) { function php_file_tree(...) { ... } }

            That way it will only get defined once. I’ll have to look at the forwarding issue for unpublished documents when I get back.

            @Frank. What do you mean by ’your site would be unavailable’. Were you getting a page not found error, server not found error or blank page? If you are loading a page once and it works, but twice and it doesn’t, then it may be a YAMS caching problem. The first time you access the document it generates it from scratch and caches some of it. On subsequent loads it starts with the cached version and builds from there. Perhaps the cached version is getting corrupted. You might be able to get around the problem temporarily until I have time to investigate further by making that document uncacheable. If you are using PHx you could try removing the PHx from that page in case it’s a PHx-YAMS compatibility problem.

            @prouve. Thanks for the clear bug report. That’ll could save me quite a bit of time and make it easier to fix. Please can you send me a personal message with the SQL error. When I get back from hols I’ll look into fixing the bug.

            @mgbowman. Welcome back. I recommend using the most recent version of ManagerManager from the MODx repository. You might get a shock if you look at the code now. Your original multilingual URL code has almost transformed out of all recognition. For the record, a link to the latest development version of YAMS is always provided on the top post of this forum.

            @manu. Thanks for helping out.

            Hope I didn’t miss anyone out.
              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.
              • 2509
              • 53 Posts
              Hello PMS.
              I have installed The YAMS and have some questions.
              I don’t need English language, but after deleting it the TV specified to this language stayed.
              And one more problem - after document creation in different languages - in my site this documents are empty.
              Thank you!
                • 10076
                • 1,024 Posts
                Hi,

                my problem was related rather to the extra bit I added to the wayfinder call.
                &rowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/std/row.tpl


                That std folder is not the correct one, and I dont know which folder to use, because that tpl folder is full of row tpl s? Using the one from the doc folder now and all works fine.

                &rowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/doc/row.tpl


                @avt did you put content in the language content TV s?
                I just added french on my local machine and deactivated it and deleted it but the TV s remain. I think i read someweher that you have to delete them maually.
                  • 22448
                  • 241 Posts
                  I just installed YAMS by following the very detailed and clear instructions. But am seeing a strange problem. When i set Document Layout to "Tabify..." all of the fields at the top of the edit page down to the ’Menu Index’ field become invisible and the YAMS fields are listed below the content box but without any tabs. Firebug shows all of the fields in place with the proper content. It even shows their outline but the top half of the page is white. I tried to look for the css or templates as it seems like a presentation problem but no luck.

                  This happens for all documents not just the ones using multi-lingual templates. Changing Document Layout to list fixes the issue.

                  I’m running Evo 1.0.1 and the modx is installed in the project subfolder (http://devbox.net/project/htdocs/). I have set the MODx subdirectory folder to project/htdocs as well as the .htaccess RewriteBase to /project/htdocs/.
                  Manager does not have an .htaccess file.

                  ManagerManager has been installed and configured according to the instructions. JQuery is set to ’local’.

                  Any pointers would be greatly appreciated.


                  After further research i identified an issue with ManagerManager that might be the cause of this. For some reason ManagerManager does not honor the rename and hide rules for fields. I was able to rename a tab and a field’s help text though. But it ignores mm_hideFields and mm_renameField rules.

                  I did manage to get YAMS working without ManagerManager though.
                  Will continue trying to figure this out. I would really like tabify to work.

                  It’s an excellent plugin with a lot of power. Thank you for sharing it with us.
                    • 22448
                    • 241 Posts
                    YAMS is a great module and has spurred a lot of discussions. It sure seems like it has outgrown a single thread and could benefit from having its own searchable sub-forum.
                    Just a thought after looking through dozens of pages manually to find relevant posts.
                      • 25663 MODX Staff
                      • 12,272 Posts
                      Good point outre99. Will set this up and give PMS the moderator privs. smiley
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me