We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32170
    • 3 Posts
    This is what you get on the home page.
    « MODx Parse Error »

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

    PHP error debug
    Error: mysql_connect() [function.mysql-connect]: Unknown MySQL server host ’northatlroof.db.5721409.hostedresource.com’ (1)
    Error type/ Nr.: Warning - 2
    File: /home/content/n/o/a/noatlantaroof/html/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.0591 s
    Total: 0.0591 s
    « MODx Parse Error »

    MODx encountered the following error while attempting to parse the requested resource:
    « Failed to create the database connection! »

    Parser timing
    MySQL: 0.0000 s (0 Requests)
    PHP: 0.0637 s
    Total: 0.0637 s
    « MODx Parse Error »


    And it goes on and one.

    I am able to log into the database via phpmysql and run queires, etc.

    Also, backend is showing

    Failed to create the database connection!

    . Please run the MODx install utility


    BIG PROBLEM - PLEASE HELP ME>...
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Check your /manager/includes/config.inc.php file and make sure it has the correct server, database and other login information. You also might want to make sure it hasn’t had something nasty added to it, and once you’re sure it has the correct information change its permissions to read-only (444)
        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