We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2938
    • 18 Posts
    Добрый день.
    После переноса сайта с локалки на хостинг в админке сайта появились следующие ошибки:
    mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/site/public_html/st/manager/includes/user_settings.inc.php on line 20
    Cannot modify header information - headers already sent by (output started at /home/site/public_html/st/manager/includes/user_settings.inc.php:18) in /home/site/public_html/st/manager/index.php on line 169
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/site/public_html/st/manager/actions/welcome.static.php on line 104
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/site/public_html/st/manager/actions/welcome.static.php on line 160
    mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/site/public_html/st/manager/includes/user_settings.inc.php on line 18

    В чем причина их возникновения?
    Версия Modx 1.0.5
      • 2938
      • 18 Posts
      Причину данных ошибок выявил сам. Было не соответствие кодировки в базе данных. После смены дефолтной кодировки latin-1 на utf-8 сообщения об ошибках исчезли
        • 21395
        • 91 Posts
        Which in English is approximately:

        The cause of the error data revealed itself. It did not match the encoding in the database. After the change of default encoding latin-1 to utf-8 error messages have disappeared.
          MODX Revolution 2.6.5-pl (traditional)

          Hosted on MODX Cloud

          Skype: nicbaldeagle