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

    I've recently started getting this error on the homepage of a website I work on:

    it seems to be sporadic, it will run fine and then start throwing errors, I've tried everything I can think of to no joy. The site is on shared hosting, I'm wondering whether I'm hitting any limits?

    any ideas much appreciated
    Boris



    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error:
    mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading authorization packet', system error: 0
     
      Error type/ Nr.:
    Warning - 2
     
      File:
    /xxx/xxxx/xxxxxx/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))) {
      • 36502 ☆ A M B ☆
      • 491 Posts
      well, if the problem is sporadic you could ask support to your hosting,
      may be there are some limit to the number of queries?
        TilliLab | MODX Ambassador
        website
        • 39545
        • 9 Posts
        The hosting company did insist everything was fine... but have now noticed another user on the server that's maxing things out. The joys of shared servers.