• "Fatal error: Call to a member function get() on a non-object" when upgrading Revo?#

  • franklinveaux Reply #1, 3 months, 2 weeks ago

    Reply
    Greetings!

    I have several sites running Revo, all on the same Web hosting service. I've recently upgraded all those sites to Revo 2.2.0-pl2.

    On four sites I upgraded, one of which is a very compex site with many hundreds of resources and three different contexts, the upgrade went just fine. However, on one site--a quite simple site, with fewer than two dozen pages and no plugins or addons save for Formit and Wayfinder, after the upgrade I could not access any pages on the site. Any attempt to visit the site showed only

    Fatal error: Call to a member function get() on a non-object in public_html/core/model/modx/modx.class.php on line 1431

    which seems to be related to getting the default Web context.

    I tried the upgrade again, with the same results. Then, since the site was quite simple (it's a development site for a client that's considering changing to a CMS from a static HTML-based site), I decided to delete all the files on the server, wipe the database, and start over from scratch.

    I removed and re-created the database. I wiped all the files from the server and reuploaded a new install of Revo 2.2.0-pl2. Ran through the Setup, and the same thing.

    I can go to the manager and everything looks fine, but any attempt to visit any page on the site, or to view any resource from within the manager (even the default Home resource that exists on a brand-new virgin install) gives me the "Call to a member function get() on a non-object" PHP error. This is a bit baffling, as that same hosting provider was working fine with Revo 2.1.5 and I'm hosting quite a number of other sites using Revo 2.2.0 on that same host, no problem.

    The Web host is running CentOS, PHP Version 5.2.17 with Zend 220060519, and MySQL 5.1.56.

    Any ideas?


  • Lucas Reply #2, 3 months, 2 weeks ago

    Reply
    Did you clear the site cache after upgrading?


  • franklinveaux Reply #3, 3 months, 2 weeks ago

    Reply
    Indeed I did. Later, when I wiped everything and re-installed from scratch, that entirely removed the cache folders as well.