We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15343
    • 2 Posts
    What is this? I only get this message when trying to open my site (http://www.kantti.info):

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « Failed to select the database ’kanttiin_modx’! »

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

    I can open cPanel and phpMyAdmin and everything seems to be allright. When I try to go to manager, get this message:



    <b>Warning</b>: mysql_num_rows(): supplied argument is not a valid MySQL result resource in <b>/home/kanttiin/public_html/manager/includes/settings.inc.php</b> on line <b>10</b>



    <b>Warning</b>: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in <b>/home/kanttiin/public_html/manager/includes/settings.inc.php</b> on line <b>11</b>



    <b>Warning</b>: mysql_num_rows(): supplied argument is not a valid MySQL result resource in <b>/home/kanttiin/public_html/manager/processors/login.processor.php</b> on line <b>70</b>

    Incorrect username or password entered!

    Thank you for any help!


      • 18373 ☆ A M B ☆
      • 3,141 Posts
      MODx is having trouble connecting to your database.

      Triple check the database name, database user and database user password. Then check if it is exactly the same as the data in /manager/includes/config.inc.php (assuming Evo here). If it’s not correct, change it or run the install module again (choosing advanced install) to modify them.

      As for logging in on the Manager, it’s having trouble finding the data to confirm your login, so it tells you your details are wrong. Same as above ^^
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 15343
        • 2 Posts
        Thank you! laugh

        Now it works again.