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

    I’m trying to install ModX Revolution 2.1.1 and getting the following errors in "core/cache/logs/":
    [2011-06-15 14:37:51] (ERROR @ /beta/setup/index.php) Could not copy /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/modContext/cd035ff4a653f8abe5f8d53137159612/0/ to index.php
    [2011-06-15 14:37:51] (ERROR @ /beta/setup/index.php) Could not copy /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/modContext/cd035ff4a653f8abe5f8d53137159612/1/ to ht.access
    [2011-06-15 14:37:51] (ERROR @ /beta/setup/index.php) Could not copy /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/0/ to assets
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not copy /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/1/ to controllers
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not copy /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/2/ to templates
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not copy /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/3/ to ht.access
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not copy /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/4/ to index.php
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/d094ebb5eec2c8b58be1871435cc93ac/ to
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/cc78b5bdb6d9bfccb3c5d478774056e7/ to
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/a5233982e7b003731d0eaa7f5da46baf/ to
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/bfd248dd9bf5269250dba63daafaf7ab/ to
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/16cc20b287ab79502068436183fbd667/ to
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/80526009e4f7102bedeeb81955b96e5c/ to
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/1924f062c6bcde16ba64d5460c61d45f/ to
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/995d8d2b7cc9f4023ed0ab85c0303af9/ to
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/4248d98bdd2f28cba8fa89bb2924db0e/ to
    [2011-06-15 14:37:52] (ERROR @ /beta/setup/index.php) Could not install files from /home/biochem/biochem.bio.msu.ru/docs/beta/core/packages/core/xPDOFileVehicle/c356455e86826b5f0b1b3cdb504ee582/ to
    


    I have set "chmod -R a+rwx *" to grant all the possible permissions to write etc. But still getting this error...
    Does anybody know what to do to make it work?

    Thank you in advance!

    -------------
    | SOLVED!!! |
    -------------
    PS
    The problem was solved by switching on ’hash’ php extension.
      • 22303 MODX Staff
      • 10,725 Posts
      Please provide the information requested in red letters below the text area where you post here in the forums.
        • 16648
        • 4 Posts
        Here is the additional information:

        MODX Revolution version 2.1.1-pl
        Traditional distribution
        FreeBSD 8.1-RELEASE-p2
        Apache/1.3.37 (Unix)
        PHP/5.2.10
        mysql Ver 14.13 Distrib 5.1.16-beta, for portbld-freebsd6.2 (i386) using 5.0
        PDO Driver for MySQL, client library version 5.1.16-beta
        Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
          • 22303 MODX Staff
          • 10,725 Posts
          You can ignore those log messages unless you are using the advanced distribution of MODX Revolution.
            • 16648
            • 4 Posts
            Yeah,I could’ve ignored these messages if the installation process would’ve finished successfully. But nothing happens after I press "Install" button. All I can see then is the blank screen. And I can’t log in because the "users" table in the database is empty.
              • 16494
              • 4 Posts
              Quote from: lapotok at Jun 18, 2011, 08:46 AM

              Yeah,I could’ve ignored these messages if the installation process would’ve finished successfully. But nothing happens after I press "Install" button. All I can see then is the blank screen. And I can’t log in because the "users" table in the database is empty.
              Absolutely the same problem: blank screen after clicking install button, MySQL tables created but users table is empty. Install log:

              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not copy /home/orgpmos/orgpmos.ru/docs/core/packages/core/modContext/cd035ff4a653f8abe5f8d53137159612/0/ to index.php
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not copy /home/orgpmos/orgpmos.ru/docs/core/packages/core/modContext/cd035ff4a653f8abe5f8d53137159612/1/ to ht.access
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not copy /home/orgpmos/orgpmos.ru/docs/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/0/ to assets
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not copy /home/orgpmos/orgpmos.ru/docs/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/1/ to controllers
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not copy /home/orgpmos/orgpmos.ru/docs/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/2/ to templates
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not copy /home/orgpmos/orgpmos.ru/docs/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/3/ to ht.access
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not copy /home/orgpmos/orgpmos.ru/docs/core/packages/core/modContext/94e68bca283f44e6b0f85ab235ac54ef/4/ to index.php
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/d094ebb5eec2c8b58be1871435cc93ac/ to 
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/cc78b5bdb6d9bfccb3c5d478774056e7/ to 
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/a5233982e7b003731d0eaa7f5da46baf/ to 
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/bfd248dd9bf5269250dba63daafaf7ab/ to 
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/16cc20b287ab79502068436183fbd667/ to 
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/80526009e4f7102bedeeb81955b96e5c/ to 
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/1924f062c6bcde16ba64d5460c61d45f/ to 
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/995d8d2b7cc9f4023ed0ab85c0303af9/ to 
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/4248d98bdd2f28cba8fa89bb2924db0e/ to 
              [2011-07-06 15:38:50] (ERROR @ /setup/index.php) Could not install files from /home/orgpmos/orgpmos.ru/docs/core/packages/core/xPDOFileVehicle/c356455e86826b5f0b1b3cdb504ee582/ to 
              


              No errors in web-server error logs, no errors on the screen, nothing. Just blank screen.
              If I try to enter setup again, it suggest to Upgrade existing install, then — "Core installation was successful", but no users (incl. admin) created.

              PHP Version 5.2.10
              + calendar, ctype, curl, date, dom, gd, gettext, iconv, json, libxml, mbstring, mcrypt, mysql, mysqli, pcre, PDO, pdo_mysql, Reflection, session, SimpleXML, sockets, SPL, standard, sysvmsg, xml, xsl, zip, zlib.

              Apache/1.3.37 (Unix) PHP/5.2.10
              MySQL 5.1.41-log

              MODx 2.1.1pl Traditional
                • 22303 MODX Staff
                • 10,725 Posts
                Check your Apache error_log for PHP errors (or where ever your PHP is configured to log errors). It sounds like there is an error and it is simply being logged somewhere else...
                  • 16494
                  • 4 Posts
                  Quote from: OpenGeek at Jul 06, 2011, 12:37 PM

                  Check your Apache error_log for PHP errors (or where ever your PHP is configured to log errors). It sounds like there is an error and it is simply being logged somewhere else...
                  Double checked — not a single php error at all. PHP errors are displayed and logged — I have checked these settings, have made a special script with error: all are displayed and logged normally. But MODx still returns a blank page after pressing install button. I uploaded the latest 2.1.2 — same effect. I guess there is some kind of php error suppressed but how can I trace on which string it stops?

                  Installation summary:

                  Checking PHP version: OK! Running: 5.2.10
                  Checking PHP for zlib dependency: OK!
                  Checking for SimpleXML: OK!
                  Checking if memory limit is set to at least 24M: OK! Set to 64M
                  Checking if sessions are properly configured: OK!
                  Checking if /home/orgpmos/orgpmos.ru/docs/core/cache directory exists: OK!
                  Checking if /home/orgpmos/orgpmos.ru/docs/core/cache directory is writable: OK!
                  Checking if /home/orgpmos/orgpmos.ru/docs/core/export directory exists: OK!
                  Checking if /home/orgpmos/orgpmos.ru/docs/core/export directory is writable: OK!
                  Checking if /home/orgpmos/orgpmos.ru/docs/core/packages directory exists: OK!
                  Checking if /home/orgpmos/orgpmos.ru/docs/core/packages directory is writable: OK!
                  Checking if /home/orgpmos/orgpmos.ru/docs/core/config/config.inc.php exists and is writable: OK!
                  Creating connection to the database: OK!
                  Checking to make sure safe_mode is off: OK!
                    • 16494
                    • 4 Posts
                    Yes, an error was suppressed. After a little debugging found that the last string executed is

                                /* if new install */
                                if ($mode == modInstall::MODE_NEW) {


                    in /setup/includes/modinstall.class.php

                    the next string is:

                                    include MODX_SETUP_PATH.'includes/new.install.php';


                    I placed the code just right before it:

                    error_reporting  (E_ALL);
                    ini_set('display_errors', 1);


                    And tadam:

                    Fatal error: Call to undefined function hash() in /home/orgpmos/orgpmos.ru/docs/core/model/modx/hashing/modpbkdf2.class.php on line 34


                    For some reason this error was suppressed somehow and nor displayed neither logged.

                    Now digging deeper...
                      • 16494
                      • 4 Posts
                      Yes, the problem was with hash extension was disabled. After enabling it — everything was fine!

                      So please, add checking of all required modules or at least do not suppress PHP errors to allow people track the errors without digging in all MODx source code...