We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!

Answered Login Error

    • 51463
    • 8 Posts
    Due to unknown causes this error message appears when attempting to login into the manager section:
    Fatal error: Call to a member function get() on a non-object in /home/samphiladmin/public_html/core/model/modx/processors/security/login.class.php on line 134
    Please advise.
    Regards.
    Paul.

    This question has been answered by BobRay. See the first response.

      • 3749
      • 24,544 Posts
      That means that the user being processed has no user profile.

      The first thing to try is repairing all tables in PhpMyAdmin.

      While you're there, (after the repair) the ID of the user who is logging in should be in the internalKey field of that user's User Profile (in the modx_user_attributes table).
        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
        • 51463
        • 8 Posts
        Thanks. The hosting service restored site from a backup. The same problem remains though, when attempting upgrade to the latest MODX version from 2.3.2, the Resources / Elements / Files section disappears and the menu items produce blank pages. Please Advise.
          • 3749
          • 24,544 Posts
          Did you try my suggestions from the previous post and repair the tables? Does the user have a profile?
            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
            • 51463
            • 8 Posts
            Is that via repair tables via myphpadmin? Which I have done so. I only ask as some other CMS allow you to do this via the admin area, e.g. Joomla. Also I've tried to use non the www redirect in the .htaccess file, doing so doesn't allow me to log into the admin, what do I do to correct this? Please advise.
            • How are you upgrading?

              Make sure that your browser cache and cookies are cleared. The browser can cache old Javascript files and not use the new ones from the upgrade.

              It sounds like your site has bigger problems, though. There are too many possible hosting configurations and other variables to be able to guess what the problems may be.
                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
                • 3749
                • 24,544 Posts
                See my post above about checking to see if the user has a user profile.
                  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
                  • 51463
                  • 8 Posts
                  Tried to upgrade via softalicious in the control panel. Yes Bob the user has a profile, id 1, internalKey 1, rank 0. I've took over from the previous people who installed and maintained the site, so I'm in the dark with some of the workings of MODX at the moment.
                  The host is hostpresto.com formerly ukwebhosting.com. This is the site, http://www.samuelphillips.co.uk
                  Any help or advice is greatly appreciated.
                    • 3749
                    • 24,544 Posts
                    Many people have reported problems with upgrading via softaculous and similar utilities.

                    I'd suggest this course of action:


                    • Revert the site again
                    • Make sure it all works
                    • Download the UpgradeMODX extra and use that to upgrade the site to MODX 3.3.6
                    • Make sure it works (clearing your browser cache and cookies if necessary)
                    • Then, use UpgradeMODX to upgrade to the current version

                    You may have a plugin that is incompatible with the current version, so you may want to disable your plugins before the upgrade and re-enable them one-by-one afterwards.

                      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
                      • 51463
                      • 8 Posts
                      I would have to test this on a local server before attempting anything on the live site. I'm still in the dark about the non www redirect, once it is implemented you can't login into the admin area of the site. Or, is it just a case of upgrading the site for this to work?