We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17616
    • 9 Posts
    После переноса папки (www) из одного жесткого диска на другой сайт перестал запускаться - вылетает ошибка:


    « 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]: Can’t connect to MySQL server on ’localhost’ (10061)
    Error type/ Nr.: Warning - 2
    File: X:\home\localhost\www\manager\includes\extenders\dbapi.mysql.class.inc.php
    Line: 91
    Line 91 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: 1.3901 s
    Total: 1.3901 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: 2.3946 s
    Total: 2.3946 s
      • 897
      • 1,620 Posts
      модх хранит практически все данные в MySQL базе, так что переносить надо не только файл, но и базу данных
        "Und wenn du lange in einen Abgrund blickst, blickt der Abgrund auch in dich hinein."

        Не используйте Revo для "просто сайтов". Используйте Evo

        Who can defeat the Russian bear?
        • 17616
        • 9 Posts
        Все заработало снова после того, как почистила кэш.