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

    Very strange thing happened.
    sometimes i see such error message insead of the site:

    « 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]: Too many connections	 
      Error type/ Nr.:	Warning - 2	 
      File:	/home/alexpron/public_html/AH/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.3433 s	 
      Total:	0.3433 s	 
    Error while inserting event log into database.
    



    And in manager panel instead of page there is such an error message:

    Failed to create the database connection!
    . Please run the MODx install utility

    What can it be?
    How to fix this problem?
      Getting higher! | www.djabuzz.com
      • 26903
      • 1,336 Posts
      mysql_connect() [function.mysql-connect]: Too many connections
      Your running out of available database connections occasionally, this is a MYSQL configuration parameter, ask your hosting provider to raise it for you or change it yourself if you can. Try here http://dev.mysql.com/doc/refman/5.1/en/too-many-connections.html for the docs.
        Use MODx, or the cat gets it!
        • 2603
        • 104 Posts
        Quote from: shamblett at Feb 11, 2009, 04:10 AM

        mysql_connect() [function.mysql-connect]: Too many connections
        Your running out of available database connections occasionally, this is a MYSQL configuration parameter, ask your hosting provider to raise it for you or change it yourself if you can. Try here http://dev.mysql.com/doc/refman/5.1/en/too-many-connections.html for the docs.

        Thanks. and what about such error message? Got today:

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

        PHP error debug
        Error: chmod() [function.chmod]: No such file or directory
        Error type/ Nr.: Warning - 2
        File: /home/alexpron/public_html/AH/assets/snippets/maxigallery/maxigallery.php
        Line: 372
        Line 372 source: chmod($mg->path_to_gal.$name,0666);
          Getting higher! | www.djabuzz.com
          • 26903
          • 1,336 Posts
          Well,
          Error: chmod() [function.chmod]: No such file or directory
          means that
          File: /home/alexpron/public_html/AH/assets/snippets/maxigallery/maxigallery.php
          doesn’t exist. Check the file exists and the perms on it and its directory structure are correct.
            Use MODx, or the cat gets it!
            • 2603
            • 104 Posts
            Quote from: shamblett at Feb 12, 2009, 11:54 PM

            Well,
            Error: chmod() [function.chmod]: No such file or directory
            means that
            File: /home/alexpron/public_html/AH/assets/snippets/maxigallery/maxigallery.php
            doesn’t exist. Check the file exists and the perms on it and its directory structure are correct.

            Thank you Shamblett.
            maxigallery.php exists.
            Now everything seems to be ok. maxigallery.php exists. But I didnt do smthng. Strange thing. Maybe it was the server reason. Slow speed or smth... rolleyes
              Getting higher! | www.djabuzz.com
              • 26903
              • 1,336 Posts
              Ok glad its fixed.
                Use MODx, or the cat gets it!
                • 2603
                • 104 Posts
                I have such an error on all the pages. It became suddenly. huh

                Internal Server Error

                The server encountered an internal error or misconfiguration and was unable to complete your request.

                Please contact the server administrator, webmaster@site_address and inform them of the time the error occurred, and anything you might have done that may have caused the error.

                More information about this error may be available in the server error log.

                Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
                Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7a mod_mono/1.2.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at site_address Port 80


                What can I do? And what is that means?

                Thank you for help
                  Getting higher! | www.djabuzz.com
                  • 26903
                  • 1,336 Posts
                  Check that your installation is still OK, i.e. all your files are present and have the correct perms, also what’s in the apache error log?
                    Use MODx, or the cat gets it!
                    • 2603
                    • 104 Posts
                    Quote from: shamblett at Feb 15, 2009, 04:37 AM

                    Check that your installation is still OK, i.e. all your files are present and have the correct perms, also what’s in the apache error log?

                    It seemed to be ok. I dont know where to find this Apache error log file. sad
                    Is this a server error or MODx error?
                      Getting higher! | www.djabuzz.com
                      • 26903
                      • 1,336 Posts
                      There are two logs to look at that will tell you what apache thinks of the world, the access log and the error log, these are usually under /var/logs , on Redhat systems and derivatives they are under /var/logs/httpd for instance. This is what this line
                      More information about this error may be available in the server error log.
                      means from your error output.
                      These together should give you a clue as to whats happening. Do you have a ’not found’ page defined in your MODx install?
                        Use MODx, or the cat gets it!