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

    I am using modx evolution. my hosting updated php to PHP 5.4.30 now the bellow error appeared

    « MODx Parse Error »

    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: mysql_connect(): Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)
    Error type/ Nr.: Warning - 2
    File: /home/selectio/public_html/yorkshirepcrepair.co.uk/manager/includes/extenders/dbapi.mysql.class.inc.php
    Line: 89
    Line 89 source: if (!$this->conn = ($persist ? mysql_pconnect($host, $uid, $pwd) : mysql_connect($host, $uid, $pwd, true))) {

    Parser timing
    MySQL: 0.0000 s (0 Requests)
    PHP: 0.0361 s
    Total: 0.0361 s

    and also when I trying go to manager section I am getting:
    Failed to create the database connection!

    . Please run the MODx install utility
    • If you haven't already make sure you update to 1.0.14, as some older versions of Evolution don't support PHP 5.4.x. Once you have that done I would suggest changing your database password, depending on the old PHP version there can sometimes be problems updating the password.

      If you still have problems after trying those steps post back with any additional information you can provide.
        Patrick | Server Wrangler
        About Me: Website | TweetsMODX Hosting
        • 42397
        • 29 Posts
        I tried to update it but Upgrade Existing Install option's disabled and only I can update it through Advanced Upgrade which I cant remember data base name and password.
        • Look in /manager/includes/config.inc.php for the database name and password.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 42397
            • 29 Posts
            I tried but getting Connection to host: failed!
            • You need to make sure you're using the correct MySQL host (server, usually "localhost", but not always), the correct user name and password, and the correct database name.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 42397
                • 29 Posts
                I put it according config.inc.php file. any other possibility ? why Upgrade Existing Install
                (Upgrade your current files and database) option is disabled on installation?
                  • 3749
                  • 24,544 Posts
                  That usually means the config.inc.php file is missing, misnamed, not found, or corrupted. Check the config.core.php files in the root, connectors, manager, and setup directories (especially setup). They tell MODX where to find the config file.


                  Important: Don't run Setup without the Upgrade box checked.
                    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