Jump to content

Ошибка после завершения установки форума


TARAN
 Share

Recommended Posts

После того как я установил форум выскакивает ошибка с базой данных раньше без проблем ее устанавливал

Вот код ошбки

 

mySQL query error: SELECT id FROM faq WHERE app='core' AND title = 'ПоиÑк'

SQL error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
SQL error code: 1267
Date: Saturday 10th August 2013 03:39:35 PM


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Date: Sat, 10 Aug 2013 15:39:35 +0000
Error: 1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
IP Address: 127.0.0.1 - /admin/install/index.php?app=install§ion=install&do=acphelp
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mySQL query error: SELECT id FROM faq WHERE app='core' AND title = 'ПоиÑк'
.--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.
| File                                                                       | Function                                                                      | Line No.          |
|----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------|
| admin/setup/applications/install/sections/install.php                      | [admin_core_tools_help].helpFilesXMLImport_app                                | 1481              |
'----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
| admin/setup/applications/install/sections/install.php                      | [install_install].install_acphelp                                             | 139               |
'----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
| admin/setup/sources/base/ipsController_setup.php                           | [install_install].doExecute                                                   | 258               |
'----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'

Link to comment
Share on other sites

Таблица faq в кодировке отличной от utf8 (latin1_swedish_ci). Нужно привести ее к utf8

 

Ошибка

 

SQL error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)

всегда говорит о том, что таблицы в разных кодировках. И там написано в каких. Форум работает в utf-8, значит в данном случае неправильной является latin1

  • Upvote 1
Link to comment
Share on other sites

1. В conf_global.php должно быть sql_charset - utf8

2. В htaccess можно добавить AddDefaultCharset utf-8

 

Если у вас по прежнему в иероглифах, значит данные находятся в не правильной кодировке. Перед установкой форума, на "русских сбороках" обязательно, нужно установить mysql соединение и кодировку по умолчанию в utf8 (utf8_general_ci) (http://stackoverflow.com/questions/3513773/change-mysql-default-character-set-to-utf8-in-my-cnf#answer-3513812), либо делать данную правку http://ipbskins.ru/forum/topic11922.html#entry77956

  • Upvote 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...