We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26334
    • 77 Posts
    OK this is pushing me to the limits of my php now.

    If I start playing with this file : modx.class.php

    as per the results in my previous post, and make the change below the commented out line here:

    public function getRequest($class= ’modRequest’, $path= ’’) {
    if ($this->request === null || !($this->request instanceof modRequest)) {
    $requestClass = $this->getOption(’modRequest.class’,$this->config,$class);
    if ($className= $this->loadClass($requestClass, $path, !empty($path), true))
    $this->request= new $className ($this);
    }
    # return is_object($this->request) && $this->request instanceof modRequest;
    $temp1 = is_object($this->request);
    $temp2 = $this->request instanceof modRequest;
    echo $temp1.’ ’.$temp2;
    }

    Then it returns : 1 1

    Which is boolean and makes sense so that looks like that is working. So then to the next bit from the post above, making the following changes:

    public function getParser() {
    echo ’hello’;
    return $this->getService(’parser’, ’modParser’);
    }

    returns: hellohellohellohellohellohellohellohellohellohellohello

    so clearly we haven’t hung yet!

    However:

    ---------
    public function getParser() {
    # return $this->getService(’parser’, ’modParser’);
    $temp = $this->getService(’parser’, ’modParser’);
    echo $temp;
    }

    returns nothing

    function getService I can’t find referenced anywhere in the model/modx directory so it isn’t a function.

    I am about at a loss and really don’t know which way to turn from here.

    I hate hacking the code but I really have no idea why nothing is working and no errors are being thrown when it passes every test on setup and throws now apache errors and no errors to the page and has enough memory etc. huh
      • 3749
      • 24,544 Posts
      getService() is in:

      core/xpdo/xpdo.class.php

      Before you mess with that, though, it’s starting to look like it might be a session problem. See if this helps (see the fourth message):

      http://modxcms.com/forums/index.php?topic=35112.0
        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
        • 26334
        • 77 Posts
        Thanks.

        Tried the htaccess fix (obviously changing the directory) and made no change.

        Remember everything worked on beta 4 and I am still running another version of modx (0.9.6.1p2) on this VM - different domain and stand alone. No problems on beta4 on these 2 domains or on the old stand alone version (ski.com.au) - which I am totally terrified to upgrade now as that site is live and the foundation of our income.

          • 3749
          • 24,544 Posts
          Check the file core/cache/logs/error.log to see if there are any informative error messages.

          We’re grasping at straws here, but go to the core/cache directory and delete everything but the index.php file, then clear your browser cache and cookies.

          When you re-installed the site, did you re-download MODx? Another possibility is that your FTP program didn’t overwrite some existing files (some don’t).
            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
            • 3749
            • 24,544 Posts
              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
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              As far as upgrading live Evo sites, three things you can do to make it fool-proof.

              1. Backup the entire site (I always install the BkupMODx module on all my sites). Make sure your database backup uses the "DROP TABLE" directive.

              2. Make a complete copy of the site, preferably on the same server, and test the upgrade on it.

              3. Don’t overwrite anything; after you uncompress the new version, append .new to all the root-level items (index.php, assets and manager folders, etc) and upload those. Copy from the old version everything unique to the site, such as the config.inc.php file, template folders, images, js, etc. Then add .old to the root-level files and folders, remove the .new from the new ones, and run the installer. If anything goes wrong, you can quickly change back by adding .new to the new items and removing the .old from the old one.

              With a wide gap between versions, be especially careful of uploading and upgrading snippets, as many time the newer version of a snippet will have different parameter settings. But your test upgrade on the copy should catch anything like that.
                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
                • 26334
                • 77 Posts
                Tried doing all that before but just done it again.

                Deleted core/cache

                Cleared browser cache and cookies.

                Shut browser down.

                Restarted browser.

                core/cache empty.

                Tried to login - same issue.

                Tried front page - same issue.

                Went to core/cache

                4 directories now exist:
                elements
                lexicon
                mgr
                web

                No logs directory.

                Re FTP, this time I deleted the zip file from my system. Downloaded fresh one. Unzipped.

                FTP -> Deleted all existing directories, uploaded fresh.
                  • 26334
                  • 77 Posts
                  Thanks Bob - off to DB now to make those edits ....
                    • 26334
                    • 77 Posts
                    grin - that got my manager back up. Thanks.

                    Now looking into why the other stuff isn’t loading.

                    ie
                    http://treadly.com/

                    Don’t believe I am running eaccelerator - doesn’t show in phpinfo( )
                      • 3749
                      • 24,544 Posts
                      Quote from: scarfy96 at Jul 27, 2010, 02:17 AM

                      grin - that got my manager back up. Thanks.

                      Now looking into why the other stuff isn’t loading.

                      ie
                      http://treadly.com/

                      Don’t believe I am running eaccelerator - doesn’t show in phpinfo( )

                      I’m really sorry I didn’t think of that earlier. embarrassed

                      Do the resources show in the Manager? Can you preview them from the Manager? Does the site_start system setting point to the home page?

                        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