We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24068
    • 4 Posts
    EDIT: Dont do what i suggest recomend here!!! See Post #3 and #4





    Hello.

    Im tired, so making it short:

    Reason: case-sensitive filenames.

    File: setup/includes/modinstallsmarty.class.php
    Line: 26

    replace

    include_once strtr(realpath(MODX_CORE_PATH . 'model/smarty/Smarty.class.php'),'\\','/');


    with

    include_once strtr(realpath(MODX_CORE_PATH . 'model/smarty/smarty.class.php'),'\\','/');


    But maybe its an allready known bug.

    Thanx
      • 24068
      • 4 Posts
      Install succeeded, but i got a

      Fatal error: Class ’Smarty’ not found in [...]core/model/modx/smarty/modsmarty.class.php on line 37

      Solution: Change

      include_once (strtr(realpath(dirname(__FILE__)) . '/../../smarty/Smarty.class.php', '\\', '/'));


      to

      include_once (strtr(realpath(dirname(__FILE__)) . '/../../smarty/smarty.class.php', '\\', '/'));


      in file core/model/modx/smarty/modsmarty.class.php, line 27

      Thanx
        • 22303 MODX Staff
        • 10,725 Posts
        The file core/model/smarty/Smarty.class.php does not start with a lowercase s, so I’m not sure why you would need to change this. huh
          • 24068
          • 4 Posts
          Quote from: OpenGeek at May 19, 2011, 05:14 PM

          The file core/model/smarty/Smarty.class.php does not start with a lowercase s, so I’m not sure why you would need to change this. huh

          uh, strange. it does start with a lowercase s here.

          i did
          wget http://modx.com/download/direct/modx-2.1.0-rc4-advanced.zip
          via server-shell on a linux-machine and then unziped that archive.

          mabybe the unzip changed all filenames to lowercase.

          checked the zip-archive, and you are right, starts with uppercase s.

          the unzip changed all filenames to lowercase.
            • 24068
            • 4 Posts
            Now i wonder:

            All files on my install are lowercase.
            The Smarty.class.php is not the only filename containing uppercase-chars.
            But the installed modx works.
            Shouldn it fail to include some other files?
            huh
              • 46241
              • 16 Posts
              I appear to have found a solution:

              For folk, like me, who run mostly Unix.
              Unzip the file locally, zip it to a new file and use that as your upload.

              I have tested thus far:
              there is a README.md file in the top folder,
              Archive: modx-2.2.12-pl-sdk.zip
              Length Date Time Name ("^" ==> case
              --------- ---------- ----- ---- conversion)
              2910 2014-02-19 14:44 ^modx-2.2.12-pl/readme.md
              9212 2014-02-19 14:44 ^modx-2.2.12-pl/core/model/aws/license.md
              7522 2014-02-19 14:44 ^modx-2.2.12-pl/core/model/aws/notice.md
              7783 2014-02-19 14:44 ^modx-2.2.12-pl/core/model/aws/readme.md
              896 2014-02-19 14:44 ^modx-2.2.12-pl/core/model/aws/lib/requestcore/readme.md
              --------- -------
              28323 5 files

              Archive: modx-2.2.12-dr.zip
              Length Date Time Name ("^" ==> case
              --------- ---------- ----- ---- conversion)
              2910 2014-02-19 14:44 modx-2.2.12-pl/README.md
              9212 2014-02-19 14:44 modx-2.2.12-pl/core/model/aws/LICENSE.md
              7522 2014-02-19 14:44 modx-2.2.12-pl/core/model/aws/NOTICE.md
              7783 2014-02-19 14:44 modx-2.2.12-pl/core/model/aws/README.md
              896 2014-02-19 14:44 modx-2.2.12-pl/core/model/aws/lib/requestcore/README.md
              --------- -------
              28323 5 files

              As best I can tell it has something to do with the originating system.
                • 17552
                • 46 Posts
                At some environments unzip is maybe aliased as unzip -L (convert to lowercase any filename)
                So "unalias unzip" and all files are extracted properly