We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30856
    • 21 Posts
    From my XP box in a proper CMD box.... I can’t RUN php transport.core.php

    Sorry if this is posted in wrong place.


    Really looking forward to playing with 097 alpha

    have exported properly and have all ready to build though no go.

    ... am able to run the actual setup installer, having created a database etc in uniform server locally. won’t go past the setup page where I can test the database of ocurse as many files are missing due to not being able to RUN php transport.core.php from Command Prompt. Command prompt as in your basic CMD window ? [windows XP]

    I’ve now done the google thing and read what I could find here..... great info!

    SO: my problem is hopefully a dumb one.... it IS the start/run/cmd in windows that I SHOULD be using yes.?
    And.. could I have messed up the export from SVN using TortoiseSVN somehow...
    ALL looks good though the core/packages folderetc. are empty [except for index.html]

    Eager! any thoughts?

    thanks......
    • I know everyone is eager, but if you have never run php from the command-line, I would seriously recommend waiting for a public distribution and upcoming documentation, as the state of the SVN branch is "in alpha development"; and that means unstable. Not to mention that there is a build involved at all, as opposed to previous releases. I would love more involvement from experienced PHP developers, and everyone is certainly welcome to explore; I just want to be clear that the nature of working with the SVN versions has completely changed.

      But, with that warning in mind, yes, in Windows XP, you would open a command prompt (Start -> Programs -> Accessories -> Command Prompt), change to the _build directory where you installed, and execute for example
      C:\dev\xampp\htdocs\modx097\_build>..\..\..\php\php transport.core.php

      Or, if you have added PHP to your path, you don’t need to specify the path to the php executable, e.g.
      C:\dev\xampp\htdocs\modx097\_build>php transport.core.php


      Good luck...
        • 30856
        • 21 Posts
        Big gratitude to hear from you OpenGeek!
        You actually took the time to point out out and help out.. wow!

        - some people seemed to have success running it via browser... and well, now I know it’s the php that is being run as well, and not just the location... great!

        best wishes....
          • 3749
          • 24,544 Posts
          For me, it worked better in the browser. YMMV.

          Bob
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 30856
            • 21 Posts
            interesting Bob...
            [been having a great night here with 0961...seem I’ve figured out a lotta stuff by studying other related things in the past 2 months... breath of fresh air modx is now that I’ve gotten more into frameworks...

            SO......

            can ya tell me.... you don’t simply call the page in the URL do you? it’s more clever than that right?
            as when I tried to simply GO to the transport php file it did absolutely nothing... nothing when I went to it from CMD line either.... figured it had to be something to do with invoking a PHP command as well huh I THINK my SVN exported fine...


            I can run the install script part way...

            • From the browser, you can try
              http://localhost/_build/transport.core.php

              adjust the path to suit your actual installation within your web root. Mine is
              http://localhost/0.9.7/_build/transport.core.php

              Don’t forget to edit the build.config.sample.php file, and copy it to build.config.php (I seem to forget that step every time I do this rolleyes )
                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
                • 30856
                • 21 Posts
                Nice....yes... I did exactly that. Though I try never to assume I’ve not missed a finer point.


                So : "" Don’t forget to edit the build.config.sample.php file, and copy it to build.config.php ""

                means just rename a a copy of build.config.sample.php to build.config.php and pop in the database connect stuff...???

                I’m using uniform server which I love.. so yeah, the path is right.... s’gotta be one of those little things that always happen to move us in the direction of ’expert at some things’ ...

                thanks!
                • uniform server... first time I’ve heard of that. On checking it out, it looks almost like a MAMP for Windows. Not having Windows I can’t speak for its value, but it looks good, and they do have a nice website (which actually does frequently indicate a well-crafted application as well).
                    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
                    • 5811
                    • 1,717 Posts
                    With Modx 0.9.7 - from SVN - 3177 - Under Windows XP, i get the following results with the build cmd "php transport.core.php" :

                    [2007-11-28 00:21:44] (ERROR @ transport.core.php) Source file E:\Perso\www\Modx097\modx/connectors/element is missing or E:\Perso\www\Modx097\modx/core/packages/core/modContext/645149e976d851df46bfb7d7a6153854/ is not writable
                    [2007-11-28 00:21:44] (ERROR @ transport.core.php) Source file E:\Perso\www\Modx097\modx/connectors/layout is missing or E:\Perso\www\Modx097\modx/core/packages/core/modContext/645149e976d851df46bfb7d7a6153854/ is not writable
                    [2007-11-28 00:21:44] (ERROR @ transport.core.php) Source file E:\Perso\www\Modx097\modx/connectors/resource is missing or E:\Perso\www\Modx097\modx/core/packages/core/modContext/645149e976d851df46bfb7d7a6153854/ is not writable
                    [2007-11-28 00:21:44] (ERROR @ transport.core.php) Source file E:\Perso\www\Modx097\modx/connectors/security is missing or E:\Perso\www\Modx097\modx/core/packages/core/modContext/645149e976d851df46bfb7d7a6153854/ is not writable
                    [2007-11-28 00:21:44] (ERROR @ transport.core.php) Source file E:\Perso\www\Modx097\modx/connectors/system is missing or E:\Perso\www\Modx097\modx/core/packages/core/modContext/645149e976d851df46bfb7d7a6153854/ is not writable
                    [2007-11-28 00:21:44] (ERROR @ transport.core.php) Source file E:\Perso\www\Modx097\modx/connectors/workspace is missing or E:\Perso\www\Modx097\modx/core/packages/core/modContext/645149e976d851df46bfb7d7a6153854/ is not writable
                    [2007-11-28 00:21:44] (ERROR @ transport.core.php) Source file E:\Perso\www\Modx097\modx/connectors/index.php is missing or E:\Perso\www\Modx097\modx/core/packages/core/modContext/645149e976d851df46bfb7d7a6153854/ is not writable
                    [2007-11-28 00:21:44] (ERROR @ transport.core.php) Source file E:\Perso\www\Modx097\modx/connectors/lang.js.php is missing or E:\Perso\www\Modx097\modx/core/packages/core/modContext/645149e976d851df46bfb7d7a6153854/ is not writable
                    


                    Do I need a specific php extension ? How could i fix these troubles. Thanks.
                    • Hmmm, never had a problem like that on a Windows machine...do you for some reason not have permission to write to the core/packages/ dir? I’m puzzled...