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

    I'm writing this post to hopefully get some insight on some weirdness I'm currently facing.

    I'm trying to perform a fresh installation of 2.2.10 (traditional).

    System data:
    CentOS release 6.4 (Final)
    Checking MySQL server version: OK! Running: 5.1.69
    Checking MySQL client version: OK! Running: 5.0.11-20120503-$Id:40933630edef551dfaca71298a83fad8d03d62d4$
    DB Connection / Collation: utf8 / utf8_general_ci
    PHP version: 5.5.3

    I create a local db named "modx_dummy" and a user "modx_dummy" that has access for "localhost" and full privileges for his database.

    I perform a regular installation and get no errors or warnings whatsoever.

    When I try to login, I'am not able to: "That account could not be located. Check the username and re-type the password to try again."

    When I have a look at the modx_users table, I can see that the username column is empty.

    Furthermore I find these log entries in the install log:

    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not copy /var/www/default/wwwroot/tools/modx/core/packages/core/modContext/c002cf970fe9237b4dd06b7274044040/0/ to /var/www/default/wwwroot/tools/modx/index.php
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not copy /var/www/default/wwwroot/tools/modx/core/packages/core/modContext/c002cf970fe9237b4dd06b7274044040/1/ to /var/www/default/wwwroot/tools/modx/ht.access
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not copy /var/www/default/wwwroot/tools/modx/core/packages/core/modContext/065691d0e4db2ae48028476000a1de3f/0/ to /var/www/default/wwwroot/tools/modx/manager/assets
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not copy /var/www/default/wwwroot/tools/modx/core/packages/core/modContext/065691d0e4db2ae48028476000a1de3f/1/ to /var/www/default/wwwroot/tools/modx/manager/controllers
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not copy /var/www/default/wwwroot/tools/modx/core/packages/core/modContext/065691d0e4db2ae48028476000a1de3f/2/ to /var/www/default/wwwroot/tools/modx/manager/templates
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not copy /var/www/default/wwwroot/tools/modx/core/packages/core/modContext/065691d0e4db2ae48028476000a1de3f/3/ to /var/www/default/wwwroot/tools/modx/manager/min
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not copy /var/www/default/wwwroot/tools/modx/core/packages/core/modContext/065691d0e4db2ae48028476000a1de3f/4/ to /var/www/default/wwwroot/tools/modx/manager/ht.access
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not copy /var/www/default/wwwroot/tools/modx/core/packages/core/modContext/065691d0e4db2ae48028476000a1de3f/5/ to /var/www/default/wwwroot/tools/modx/manager/cache.manifest.php
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not copy /var/www/default/wwwroot/tools/modx/core/packages/core/modContext/065691d0e4db2ae48028476000a1de3f/6/ to /var/www/default/wwwroot/tools/modx/manager/index.php
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/fb74af2525cf458eb21dd08d0b54f4cf/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/e4fbdd771af2704d3ef22f58e9665157/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/76b2fcba263a8245e1ec4d47c4e8d7c0/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/f06764de434ae5a5e7b8299f51625b7e/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/69ebcad8c88bb8b427d5b0ea0e411f7a/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/6cfb36580a278852fcdd4159b72da55d/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/d1f401e10d5cec8734497895c8802f2b/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/b033806fac318268ce7782f3fbbde8e6/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/0fe162419a98fb4012222b0cc0db2a22/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/151735e612eaa194e50faecf036d7484/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) Could not install files from /var/www/default/wwwroot/tools/modx/core/packages/core/xPDOFileVehicle/f752c01b0de3c7daa67814d66c5d6954/ to /var/www/default/wwwroot/tools/modx/connectors/
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) modUser: Attempt to set NOT NULL field username to NULL
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) modUserProfile: Attempt to set NOT NULL field email to NULL
    [2013-10-24 08:16:27] (ERROR @ /tools/modx/setup/index.php) modSystemSetting: Attempt to set NOT NULL field value to NULL
    


    The user I try to create is named "admin" with password "admin2013", just for testing purposes. I don't know why the installer is trying to leave it blank in the database.

    If I adjust the row manually, I'm not able to login either.
    The resulting PW hash and salt are as follows:

    hash: gmk+7AxXtS24fLHbX6Q8t1JCVXvOdloUUotHAd/aV2Y=
    salt: 591fe5edc3cdb39b21be02b128fdb7ab

    If I overwrite hash + salt with some other known values, I'm able to login.

    The manager and page itself work flawlessly from this moment on!

    Any insight is appreciated!

    Greetings

    Nico



      • 44909
      • 13 Posts
      Hi again!

      After reading a few forum posts, where another user stated that the new opcache extension might mess up the installation process, I tried to disable opcache and install again.

      Without opcache enabled, the username column gets filled and I'm able to login directly after installation.

      The three errors about null values vanish, the others complaining about installed files are still present.

      Are these known incompatibilities with revo and opcache? Can this be considered a bug? And more importantly: Is it safe to enable opache for the page after installation is done?

      Greetings

      Nico [ed. note: scope_v24 last edited this post 12 years, 11 months ago.]
        • 44909
        • 13 Posts
        Hi!

        After searching through the issue tracker I found this:

        http://bugs.modx.com/issues/9037

        Seems to fit. If I find the time to dig into this issue, I'll continue posting at the issue tracker.

        Greetings

        Nico
          • 47080
          • 1 Posts
          After sucsessfully installation on XAMPP met the same problem on real server.
          Resolve in following way:
          1) manualy add username in users table;
          2) manualy add e-mail address in user_attributes teble;
          3) on login page click on forgot your login and reset password.