We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42365
    • 6 Posts
    Fresh install modx 2.2.6 successfully, but when you go to the main page or in the manager / - error 500. Wrong there is a write to a file config.inc.php

    $ database_type = '{database_type}';
    $ database_server = '{database_server}';
    $ database_user = '{database_user}';
    $ database_password = '{database_password}';

    ........
      etc.

    And should be so:

    $ database_type = 'mysql';
    $ database_server = 'localhost';
    $ database_user = 'root';
    $ database_password = 'mypassword';


      Versions 2.2.5 and 2.2.4 are installed and functioning properly.

    Is this a bug or what?

    Please help solve the problem.
      • 22303 MODX Staff
      • 10,725 Posts
      I've seen this happen when PHP failed to write the config file during installation, but I cannot reproduce it normally. Any further details you can provide on exactly the steps you took, or any errors logged in your environment or in the MODX core/cache/logs/ directory, would be helpful.
        • 42365
        • 6 Posts
        Quote from: opengeek at Dec 19, 2012, 06:16 AM
        I've seen this happen when PHP failed to write the config file during installation, but I cannot reproduce it normally. Any further details you can provide on exactly the steps you took, or any errors logged in your environment or in the MODX core/cache/logs/ directory, would be helpful.

        So far, I can show a similar problem https://forums.modx.com/thread/80952/upgrade-from-2-2-5-to-2-2-6---parse-error
          • 22303 MODX Staff
          • 10,725 Posts
          If this happens, it means some part of the installation failed. Start with a clean database and retry the new install if you run into this error.
            • 42365
            • 6 Posts
            Quote from: opengeek at Dec 19, 2012, 11:34 AM
            If this happens, it means some part of the installation failed. Start with a clean database and retry the new install if you run into this error.
            Installation is completely at 100% and then there is error 500, I can give you access to the test domain that you yourself have replicated the situation.
              • 42365
              • 6 Posts
              I did a clean install with a new database of over 10 times ... the result is always the same error 500:(
                • 37242 ☆ A M B ☆
                • 339 Posts
                I have the same error with an "update" from 2.2.6 to 2.2.6. I have it reproducable and filed in on tracker. Jason, do you want access to my server to investigate? http://tracker.modx.com/issues/9292

                Cheers,

                Guido
                  • 42384
                  • 1 Posts
                  I have same truble!

                  Apache log:
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in /home/evgeny/www/modx/core/xpdo/xpdo.class.php on line 335, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   1. {main}() /home/evgeny/www/modx/setup/index.php:0, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   2. modInstallRequest->handle() /home/evgeny/www/modx/setup/index.php:108, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   3. include() /home/evgeny/www/modx/setup/includes/request/modinstallrequest.class.php:85, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   4. modInstallRunner->run() \xf7Dr\x9e\x10:19, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   5. modInstallRunnerWeb->execute() /home/evgeny/www/modx/setup/includes/runner/modinstallrunner.class.php:36, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   6. modInstall->getConnection() /home/evgeny/www/modx/setup/includes/runner/modinstallrunnerweb.class.php:28, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   7. modInstall->_connect() /home/evgeny/www/modx/setup/includes/modinstall.class.php:172, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   8. xPDO->__construct() /home/evgeny/www/modx/setup/includes/modinstall.class.php:459, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   9. array_merge() /home/evgeny/www/modx/core/xpdo/xpdo.class.php:335, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP Fatal error:  Class 'xPDODriver_' not found in /home/evgeny/www/modx/core/xpdo/xpdo.class.php on line 1823, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   1. {main}() /home/evgeny/www/modx/setup/index.php:0, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   2. modInstallRequest->handle() /home/evgeny/www/modx/setup/index.php:108, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   3. include() /home/evgeny/www/modx/setup/includes/request/modinstallrequest.class.php:85, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   4. modInstallRunner->run() \xf7Dr\x9e\x10:19, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   5. modInstallRunnerWeb->execute() /home/evgeny/www/modx/setup/includes/runner/modinstallrunner.class.php:36, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   6. modInstall->getConnection() /home/evgeny/www/modx/setup/includes/runner/modinstallrunnerweb.class.php:28, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   7. modInstall->_connect() /home/evgeny/www/modx/setup/includes/modinstall.class.php:172, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   8. xPDO->__construct() /home/evgeny/www/modx/setup/includes/modinstall.class.php:459, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP   9. xPDO->getDriver() /home/evgeny/www/modx/core/xpdo/xpdo.class.php:336, referer: http://modx.loc.ua/setup/index.php?action=summary
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in /home/evgeny/www/modx/core/xpdo/xpdo.class.php on line 335
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP Stack trace:
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   1. {main}() /home/evgeny/www/modx/setup/index.php:0
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   2. modInstallRequest->handle() /home/evgeny/www/modx/setup/index.php:108
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   3. include() /home/evgeny/www/modx/setup/includes/request/modinstallrequest.class.php:85
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   4. modInstallRunner->run() \xf7Dr\x9e\x10:19
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   5. modInstallRunnerWeb->execute() /home/evgeny/www/modx/setup/includes/runner/modinstallrunner.class.php:36
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   6. modInstall->getConnection() /home/evgeny/www/modx/setup/includes/runner/modinstallrunnerweb.class.php:28
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   7. modInstall->_connect() /home/evgeny/www/modx/setup/includes/modinstall.class.php:172
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   8. xPDO->__construct() /home/evgeny/www/modx/setup/includes/modinstall.class.php:459
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   9. array_merge() /home/evgeny/www/modx/core/xpdo/xpdo.class.php:335
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP Fatal error:  Class 'xPDODriver_' not found in /home/evgeny/www/modx/core/xpdo/xpdo.class.php on line 1823
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP Stack trace:
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   1. {main}() /home/evgeny/www/modx/setup/index.php:0
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   2. modInstallRequest->handle() /home/evgeny/www/modx/setup/index.php:108
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   3. include() /home/evgeny/www/modx/setup/includes/request/modinstallrequest.class.php:85
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   4. modInstallRunner->run() \xf7Dr\x9e\x10:19
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   5. modInstallRunnerWeb->execute() /home/evgeny/www/modx/setup/includes/runner/modinstallrunner.class.php:36
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   6. modInstall->getConnection() /home/evgeny/www/modx/setup/includes/runner/modinstallrunnerweb.class.php:28
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   7. modInstall->_connect() /home/evgeny/www/modx/setup/includes/modinstall.class.php:172
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   8. xPDO->__construct() /home/evgeny/www/modx/setup/includes/modinstall.class.php:459
                  [Sat Dec 22 22:07:27 2012] [error] [client 127.0.0.1] PHP   9. xPDO->getDriver() /home/evgeny/www/modx/core/xpdo/xpdo.class.php:336
                    • 42365
                    • 6 Posts
                    Cause incorrect installation extensions google chrome. What extension affects the incorrect installation could not figure out. But in other browsers Mozilla FF and Opera modx 2.2.6 installed successfully. Need to check the expansion of google chrome or disable all browser extensions to the installation modx.
                      • 17403 ☆ A M B ☆
                      • 183 Posts
                      Hi virtuos, seem it come from your PHP+PDO installation. Some PDO driver not stable (have bugs), and you better upgrade it to the newest version.

                      Quote from: virtuos at Dec 22, 2012, 02:20 PM
                      I have same truble!

                      Apache log:
                      [Sat Dec 22 22:01:42 2012] [error] [client 127.0.0.1] PHP Fatal error:  Class 'xPDODriver_' not found in /home/evgeny/www/modx/core/xpdo/xpdo.class.php on line 1823, referer: http://modx.loc.ua/setup/index.php?action=summary
                        zaenal.lokamaya