We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36834
    • 25 Posts
    I'm hoping someone can shed some light upon an issue that I have had since at least MODx 2.1.5-pl.

    Every time I install MODx everything goes smoothly and I end up at the login page able to login without submitting a username or password. This happens without fail. I posted about this way back at 2.1.5-pl but didn't really get anywhere - I couldn't really supply enough info for anybody to help - https://forums.modx.com/thread/72058/anyone-tried-a-clean-install-of-2-1-5-pl.

    Anyhow, this problem has persisted and having found another post that alludes to this issue I thought I'd dig deeper https://forums.modx.com/thread/76690/no-user-created-after-install-completes-sucessfully

    The problem appears to be caused by two methods in modInstallTest class. These methods are _checkSuhosin() and _checkDocumentRoot(). Both these methods call the store() method of modInstallSettings class and the issue seems to be (in my dev environment listed below) that the call to $this->install->settings->store() is overriding the settings stored in the cache. If I comment out this last call everything works fine - no problem.

    Here are the settings arrays from the test object (first) and the cache (second). As you can see the cms user details are missing from the settings in the test object (I've changed all the paths/passwords etc).

    Any help resolving this would really be appreciated. Thank you

    Array
    (
        [assets_path] => /modx-2.2.5-pl/assets/
        [assets_url] => /assets/
        [cache_disabled] => false
        [config_options] => Array
            (
            )
    
        [connectors_path] => /modx-2.2.5-pl/connectors/
        [connectors_path_auto] => 0
        [connectors_url] => /connectors/
        [connectors_url_auto] => 0
        [context_connectors_path] => /modx-2.2.5-pl/connectors/
        [context_connectors_url] => /connectors/
        [context_mgr_path] => /modx-2.2.5-pl/manager/
        [context_mgr_url] => /manager/
        [context_web_path] => /modx-2.2.5-pl/
        [context_web_url] => /
        [core_path] => /modx-2.2.5-pl/core/
        [database] => modx_2_2_5
        [database_charset] => utf8
        [database_collation] => utf8_general_ci
        [database_connection_charset] => utf8
        [database_dsn] => mysql:host=localhost;dbname=modx_2_2_5;charset=utf8
        [database_password] => 
        [database_server] => localhost
        [database_type] => mysql
        [database_user] => zend
        [dbase] => modx_2_2_5
        [driver_options] => Array
            (
            )
    
        [http_host] => www.modx-2.2.5.dev
        [https_port] => 443
        [inplace] => 0
        [installmode] => 0
        [language] => en
        [mgr_path] => /modx-2.2.5-pl/manager/
        [mgr_path_auto] => 0
        [mgr_url] => /manager/
        [mgr_url_auto] => 0
        [processors_path] => /modx-2.2.5-pl/core/model/modx/processors/
        [server_dsn] => mysql:host=localhost;charset=utf8
        [site_sessionname] => SN506dd0fa8cdf1
        [table_prefix] => modx_
        [unpacked] => 1
        [web_path] => /modx-2.2.5-pl/
        [web_path_auto] => 0
        [web_url] => /
        [web_url_auto] => 0
        [compress_js] => 1
    )
    


    Array
    (
        [https_port] => 443
        [http_host] => www.modx-2.2.5.dev
        [database_type] => mysql
        [database_server] => localhost
        [database_connection_charset] => utf8
        [database_charset] => utf8
        [dbase] => modx_2_2_5
        [database_user] => user
        [database_password] => password
        [table_prefix] => modx_
        [site_sessionname] => SN506dd0fa8cdf1
        [cache_disabled] => false
        [inplace] => 0
        [unpacked] => 1
        [config_options] => Array
            (
            )
    
        [driver_options] => Array
            (
            )
    
        [context_web_path] => /modx-2.2.5-pl/
        [context_web_url] => /
        [context_mgr_path] => /modx-2.2.5-pl/manager/
        [context_mgr_url] => /manager/
        [context_connectors_path] => /modx-2.2.5-pl/connectors/
        [context_connectors_url] => /connectors/
        [core_path] => /modx-2.2.5-pl/core/
        [web_path] => /modx-2.2.5-pl/
        [web_url] => /
        [mgr_path] => /modx-2.2.5-pl/manager/
        [mgr_url] => /manager/
        [connectors_path] => /modx-2.2.5-pl/connectors/
        [connectors_url] => /connectors/
        [web_path_auto] => 0
        [web_url_auto] => 0
        [mgr_path_auto] => 0
        [mgr_url_auto] => 0
        [connectors_path_auto] => 0
        [connectors_url_auto] => 0
        [processors_path] => /modx-2.2.5-pl/core/model/modx/processors/
        [assets_path] => /modx-2.2.5-pl/assets/
        [assets_url] => /assets/
        [database_dsn] => mysql:host=localhost;dbname=modx_2_2_5;charset=utf8
        [language] => en
        [server_dsn] => mysql:host=localhost;charset=utf8
        [installmode] => 0
        [database] => modx_2_2_5
        [database_collation] => utf8_general_ci
        [cmsadmin] => administrator
        [cmsadminemail] => [email protected]
        [cmspassword] => password
        [cmspasswordconfirm] => password
    )


    MODx 2.2.5-pl
    Zend Server Community Edition Version 5.6.0
    PHP Version 5.3.9-ZS5.6.0
    Mysql 5.1.54
    Server Software Apache/2.2.21 (Unix) PHP/5.3.9-ZS5.6.0 mod_ssl/2.2.21 OpenSSL/0.9.8o
    OS Version 10.7.2 Mac
    Zend Data CacheVersion 4.0 Status On
    Zend Debugger Version 5.3 Status On
    Zend Guard Loader Status Off
    Zend Java Bridge Status Off
    Zend Optimizer+ Version 4.1 Status On