We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26283
    • 2 Posts
    I suddenly found my site disappeared and replaced by the following message:

    « 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]: Access denied for user: ’[email protected]’ (Using password: YES)
    Error type/ Nr.: Warning - 2
    File: /home/users/2/lolipop.jp-dp33314886/web/manager/includes/extenders/dbapi.mysql.class.inc.php
    Line: 87
    Line 87 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.0538 s
    Total: 0.0538 s
    Error while inserting event log into database.

    Please help me, what can I do?
      • 27716
      • 126 Posts
      Looks like an error with your database connection.

      It is saying it cant connect to your database.

      Can you check if the setting are correct in the config file? Has anything changed with your hosting?
        • 742
        • 12 Posts
        I concur.

        I ran into this problem when I had updated a database password via a pretty user interface, but the interface did not pass the new password on to the config file and I had to manually update the file.
          • 26283
          • 2 Posts
          Will you tell me how you managed to manually update the file.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Quote from: ajp1126 at Apr 10, 2011, 12:27 PM

            I concur.

            I ran into this problem when I had updated a database password via a pretty user interface, but the interface did not pass the new password on to the config file and I had to manually update the file.

            Was the "pretty user interface" part of MODx? If it wasn’t, and it most likely was your server’s control panel and nothing at all to do with MODx, it certainly wouldn’t update any MODx configuration files (or any other scripts that you have installed for that matter).
              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
              • 3749
              • 24,544 Posts
              Quote from: sayedkun at Apr 10, 2011, 09:55 PM

              Will you tell me how you managed to manually update the file.

              In the cPanel file manager, edit the file:

              manager/includes/config.inc.php

              Correct the database password and you should be good to go.

              FYI, in the future, you’ll get better help if the subject line describes the problem you’re having and the message includes the version of MODX you’re using. smiley
                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