We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38373
    • 8 Posts
    Hello all,

    Just installed a fresh copy of Revo (2.2.0-pl2), ran a basic install, server meets all requirements; 64bit, Centos, latest & greatest PHP and MySQL, everything is readable and writable etc.. Install went smoothly.

    However.. I can't access the manager and fail with:

    PHP Fatal error: Call to a member function isAuthenticated() on a non-object in
    / --- /core/model/modx/modmanagerresponse.class.php on line 48

    Anyone have any ideas or could suggest something that could push me in right direction?

    Thanks!

    Matt. [ed. note: mattisonthephone last edited this post 14 years, 9 months ago.]
      • 3749
      • 24,544 Posts
      That probably means that the MODX object is not being instantiated. Check the paths in the config.core.php files, especially the one in the Manager directory.

      The files are in these directories:


      § MODX root directory
      § /manager/
      § /connectors/
      § /setup/


      ---------------------------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
      MODx info for everyone: http://bobsguides.com/MODx.html
        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
        • 38373
        • 8 Posts
        Hi Bob,

        Thanks for your help, I just checked those paths and they're all spot on. I dumped a quick test file in some of the directories and printed the output to check that the paths were *actually* getting generated properly (I'm at the point where I'm looking for anything weird).

        I'm running mod_security + suhosin, I checked their respective log files, and my php error log for any warnings or errors during the install and they're all clear.

        I cleared the install, built a new DB, and downloaded a new copy with wget, unzipped on the server and this time I chmod 777, on everything (just for test purposes, that's not how I'd run it) just to make sure that there wasn't any odd permission errrors that may have hosed the install.

        I check the /core/cache/logs/error.log and found:

        [2012-01-18 17:35:42] (ERROR @ /DIR/DIR/public_html/core/xpdo/om/xpdoobject.class.php : 609) Recoverable error: Argument 1 passed to xPDOObject::__construct() must be an instance of xPDO, none given, called in /DIR/DIR/public_html/core/model/modx/modmanagerresponse.class.php on line 50 and defined


        And in /core/cache/logs/install.config.2012-01-18T17.11.15.log

        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/fec2ded11d3471a40c64d7d17dc51ed3/0/ to /DIR/DIR/public_html/index.php
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/fec2ded11d3471a40c64d7d17dc51ed3/1/ to /DIR/DIR/public_html/ht.access
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/0/ to /DIR/DIR/public_html/manager/assets
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/1/ to /DIR/DIR/public_html/manager/controllers
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/2/ to /DIR/DIR/public_html/manager/templates
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/3/ to /DIR/DIR/public_html/manager/min
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/4/ to /DIR/DIR/public_html/manager/ht.access
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/5/ to /DIR/DIR/public_html/manager/cache.manifest.php
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/6/ to /DIR/DIR/public_html/manager/index.php
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/3e7f86249f358231f6dc4b3ff9533e82/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/874a12dbd01d2a45eadc80568c979fe0/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/ece347cbbcfad0e75b02a93458a742f1/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/d595a2ff2e73f57fbbcc1feceb4531cb/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/73a1fc3fad06065e0c84e2843a59b27a/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/38bcdfa9bcb81901314efd0759dc5232/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/5c428000323d1cbdde2031509d908f1d/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/b85ab445d10a8910a9f489b4388602b2/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/448c2936c27fe53935a37bc05d4e164f/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/259154d2fbc0012666469dd2387d334e/ to /DIR/DIR/public_html/connectors/
        [2012-01-18 17:11:17] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/d730c41eb5013cf210713c2991874e80/ to /DIR/DIR/public_html/connectors/


        So I'm guessing this *is* a permissions issue right? The thing is I set the installer to create directories as 777 and files as 644. A second opinion would be really helpful. Cheers!

          • 3749
          • 24,544 Posts
          I'm not sureabout suhosin, but most of the su family require 755 for directories.
            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
            • 38397
            • 5 Posts
            Hello all

            I have the same problem, i get the same error-message and error-log-entries as described above. Do you have any idea how to fix this problem?

            Thanks!

            zapfe6204
              • 38373
              • 8 Posts
              Quote from: BobRay at Jan 19, 2012, 12:22 PM
              I'm not sureabout suhosin, but most of the su family require 755 for directories.

              My first install was using 755 for directories and 644 for files. That should have worked.

              I did still think it might be a problem with suhosin, I ran a 3rd test install this morning with suhosin in simulation mode (effectively disabling it) and I had the same problem.

              I even installed it, set all user / group file perms to user/user 777 on all the installed files (about as loose and free as you can get) and then ran the installer again in upgrade mode to see if it will write files where it previously wasn't able to the first time around, and although the install/upgrade was successful the manager login still failed.

              My system log files are empty, I'm baffeled. I'm not new to modx, I've been using / installing it since the first public beta of evo years ago on dozens of system configurations. I've installed an older version of Revo before without issue.

              I bet it turns out to be something completely ridiculous... If anyone has any ideas on anything that's worth checking please post back here. [ed. note: mattisonthephone last edited this post 14 years, 9 months ago.]
                • 38373
                • 8 Posts
                Quote from: zapfe6204 at Jan 20, 2012, 07:39 AM
                Hello all

                I have the same problem, i get the same error-message and error-log-entries as described above. Do you have any idea how to fix this problem?

                Thanks!

                zapfe6204

                What system configuration are you running?
                PHP version, installed extensions / patches, etc.. Is it the latest release of Revo (2.2.0-pl2)?

                  • 38373
                  • 8 Posts
                  Here's the log file from the upgrade attempt.

                  [2012-01-20 13:23:25] (ERROR @ /setup/index.php) xPDOVehicle resolver failed: type php (/DIR/DIR/public_html/core/packages/core/modDashboardWidget/043f411291b20759288ad11934f25c7d.resolve.dashboardwidgets.resolver)
                  [2012-01-20 13:23:25] (ERROR @ /setup/index.php) Could not resolve vehicle for object of class modDashboardWidget; criteria: Array
                  (
                      [name] => w_configcheck
                  )
                  
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/fec2ded11d3471a40c64d7d17dc51ed3/0/ to /DIR/DIR/public_html/index.php
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/fec2ded11d3471a40c64d7d17dc51ed3/1/ to /DIR/DIR/public_html/ht.access
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/0/ to /DIR/DIR/public_html/manager/assets
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/1/ to /DIR/DIR/public_html/manager/controllers
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/2/ to /DIR/DIR/public_html/manager/templates
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/3/ to /DIR/DIR/public_html/manager/min
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/4/ to /DIR/DIR/public_html/manager/ht.access
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/5/ to /DIR/DIR/public_html/manager/cache.manifest.php
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not copy /DIR/DIR/public_html/core/packages/core/modContext/ceb2f866bdca140a748ade0a6a080863/6/ to /DIR/DIR/public_html/manager/index.php
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/3e7f86249f358231f6dc4b3ff9533e82/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/874a12dbd01d2a45eadc80568c979fe0/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/ece347cbbcfad0e75b02a93458a742f1/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/d595a2ff2e73f57fbbcc1feceb4531cb/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/73a1fc3fad06065e0c84e2843a59b27a/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/38bcdfa9bcb81901314efd0759dc5232/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/5c428000323d1cbdde2031509d908f1d/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/b85ab445d10a8910a9f489b4388602b2/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/448c2936c27fe53935a37bc05d4e164f/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/259154d2fbc0012666469dd2387d334e/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Could not install files from /DIR/DIR/public_html/core/packages/core/xPDOFileVehicle/d730c41eb5013cf210713c2991874e80/ to /DIR/DIR/public_html/connectors/
                  [2012-01-20 13:23:26] (ERROR @ /setup/index.php) Error 42S22 executing statement: 
                  Array
                  (
                      [0] => 42S22
                      [1] => 1054
                      [2] => Unknown column 'modAccessPermission.policy' in 'where clause'
                  )
                    • 38397
                    • 5 Posts
                    PHP-Version: 5.3.6
                    Extensions: mysql.dll, mysqli.dll, mbstring.dll, gd2.dll, gettext.dll, curl.dll, xmlrpc.dll, openssl.dll, soap.dll, pdo_mysql.dll, ldap.dll
                    Revo-Version: 2.2.0-pl2

                    I think it's a problem with the server on which the modx-environment runs. I installed modx on my xampp-server and it ran perfectly. Now i copied the working installation to my webserver and updated the config.core.php-files and the config.inc.php-file and now the same error as before appears...
                      • 3749
                      • 24,544 Posts
                      Did you use FTP to tranfer the files? That often causes a corrupted or missing file.

                      Is mod_security on?

                      It really does look like a file/directory permissions or ownership issue.


                      ---------------------------------------------------------------------------------------------------------------
                      PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
                      MODx info for everyone: http://bobsguides.com/MODx.html
                        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