We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9994
    • 133 Posts
    I have moved a website with YAMS to a other host, i can get into the manager but the website gives an error: (old site = ok)

    PHP Fatal error: Call to undefined function str2lower() in D:\www\xxx.nl\www\assets\modules\yams\class\yams.class.inc.php on line 4489

    Into that file onto line 4489 (&& str2lower):
        public function IsHTTPS()
        {
          global $https_port;
          if (
              (
                isset( $_SERVER['HTTPS'] )
                && $_SERVER['HTTPS'] != ''
                && str2lower( $_SERVER['HTTPS'] ) != 'off'
              )
              || $_SERVER['SERVER_PORT'] == $https_port
            )
          {
            return TRUE;
          }
          else
          {
            return FALSE;
          }
        }




    # EDIT it probably has to do with the PATH:???!!
    MODX_BASE_PATH D:/www/xxxxxx.nl/www/
      Best CMS eva!
      • 25260
      • 156 Posts
      try to replace str2lower with strtolower, it should work.
        • 9994
        • 133 Posts
        Yea I did, but then: The page cannot be found :C
        Into the config of the manager I have set the path: D:/www/xxx.nl/www/assets/
        and path to modx install: D:/www/xxx.nl/www/
        Any other thoughts sad

        The website is moved from Lunix on a Microsoft IIS Servers on Windows.
          Best CMS eva!
          • 25260
          • 156 Posts
          page cannot be found?

          that’s unbelievable...

          sorry if I ask but... Did you change the filename?

          You have to replace

          && str2lower( $_SERVER['HTTPS'] ) != 'off'


          with

          && strtolower( $_SERVER['HTTPS'] ) != 'off'


          I think I did this change and it worked for me...

          If you already change this correct, then I can’t help... I’ve never used IIS...

          Cheers,

          Roberto
            • 9994
            • 133 Posts
            yes page not found lol. huh i do get the right url xxx.nl/nl/homepage.html now.

            i did changed the line, not the filename.
            argh Windows servers .. sad

            Seems htaccess doesnt work!
            Have to do a ISAPI Rewrite !



            # EDIT / SOLVED

            Gone move it to another hosting...
              Best CMS eva!
            • Did you manage to get a working isapi rewrite for YAMS, or..?
                Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
                • 22851
                • 805 Posts
                By the way, I thought that the str2lower -> strtolower bug was fixed quite some time ago. Which version of YAMS are you using?
                  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.