We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    I get the following error on the after choosing install on the last page:
    Fatal error: Call to a member function install() on a non-object in /Users/markkaplan/Sites/modx_testing/097_8_6_07/setup/includes/modinstall.class.php on line 468
    


    Here is line 406 in context:
            if ($this->xpdo) {
                // add required core data
                $this->xpdo->loadClass('transport.xPDOTransport', XPDO_CORE_PATH, true, true);
                
                $this->xpdo->setPackage('modx', MODX_CORE_PATH . 'model/');
    
                $packageDirectory= MODX_CORE_PATH . 'packages/';
                $packageState= $this->config['unpacked'] == 1 ? XPDO_TRANSPORT_STATE_UNPACKED : XPDO_TRANSPORT_STATE_PACKED;
                $package= xPDOTransport :: retrieve($this->xpdo, $packageDirectory . 'core.transport.zip', $packageDirectory, $packageState);
                
                if (!defined('MODX_BASE_PATH')) define('MODX_BASE_PATH', $this->config['web_path']);
                if (!defined('MODX_ASSETS_PATH')) define('MODX_ASSETS_PATH', $this->config['assets_path']);
                if (!defined('MODX_MANAGER_PATH')) define('MODX_MANAGER_PATH', $this->config['mgr_path']);
                if (!defined('MODX_CONNECTORS_PATH')) define('MODX_CONNECTORS_PATH', $this->config['connectors_path']);
                
                $package->install(array (
                    XPDO_TRANSPORT_PRESERVE_KEYS => true, 
                    XPDO_TRANSPORT_RESOLVE_FILES => ($this->config['inplace'] == 0 ? 1 : 0)
                ));
    


    406 is the $package->install line.

    This is running on MAMP with:
    * Apache 2.0.59
    * MySQL 5.0.19
    * PHP 4.4.4 & 5.1.6
    * eAccelerator 0.9.5
    * phpMyAdmin 2.7.0-pl2
    * Zend Optimizer 3.0.1
    * SQLiteManager 1.1.3
    * Freetype 2.1.9
    * t1lib 5.1.0
    * curl 7.14.0
    * jpeg 6b
    * libpng-1.2.5
    * gd 2.0.28
    * libxml 2.6.22
    * libxslt 1.1.15
      • 22303 MODX Staff
      • 10,725 Posts
      You have to run the _build/transport.core.php to create the core package, before running setup after retrieving 0.9.7 from SVN.
        • 11975
        • 2,542 Posts
        Hi,

        I’ve executed the _build/transport.core.php but when I’m trying to install
        The set up process ends with a blank page after the agreement page.

        :-)
          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 11975
          • 2,542 Posts
          grin My bad

          As a lazy guy, I had renamed the config.inc.tpl to config.inc.php
          I’ve redownloaded the file but same error


          :-)

            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 22303 MODX Staff
            • 10,725 Posts
            Did you confirm the entire core package and zip file was created? I just added a set_time_limit(0); to the beginning of that build script to prevent timeouts if you have a small php timeout limit. I bet it just didn’t finish creating the package.
              • 11975
              • 2,542 Posts
              the files were properly created but i’m not sure i did not make any mistake so I’m gonna reinstall the whole stuff.
              And will post back once done.

              :-)
                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 11975
                • 2,542 Posts
                Ok
                Now the installer is ok except the last step
                Once clicked the install button(Installation Summary page), the page doesn’t reload.
                I’ve waited for about 5 minutes and nothing showed up.

                I’m testing locally on my powerbook.

                :-)
                  Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                  • 11975
                  • 2,542 Posts
                  I’ve been able to finish the installation process but Now I’ve got this error

                  Notice: Undefined variable: modx in /Users/fredm/Sites/097test/manager/includes/init/index.php on line 3

                  Notice: Trying to get property of non-object in /Users/fredm/Sites/097test/manager/includes/init/index.php on line 3

                  Notice: Undefined variable: modx in /Users/fredm/Sites/097test/manager/includes/init/index.php on line 6

                  Notice: Trying to get property of non-object in /Users/fredm/Sites/097test/manager/includes/init/index.php on line 6

                  Notice: Undefined variable: modx in /Users/fredm/Sites/097test/manager/includes/init/index.php on line 9

                  Notice: Trying to get property of non-object in /Users/fredm/Sites/097test/manager/includes/init/index.php on line 9

                  Warning: Smarty error: unable to read resource: "security/login.tpl" in /Users/fredm/Sites/097test/core/model/smarty/Smarty.class.php on line 1099
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 11975
                    • 2,542 Posts
                    Last Update grin

                    I’ve downloaded the 2872.
                    The error message is still there except the last line.
                    I can connect to the manager.

                    One Word guys => that’s really GREAT

                    Congrats

                    :-)
                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 18397
                      • 3,250 Posts

                      You have to run the _build/transport.core.php to create the core package, before running setup after retrieving 0.9.7 from SVN.
                      Didn’t realize I needed to do that. After I created a config file for it, then running it, 0.9.7 worked fine.