We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

after update can anyone help please [Solved] | Forum

Topic location: Forum home » Support » General Questions
bobby
bobby Jul 10 '14
i just update core and plugins and themes now i get

OW Debug - Exception

Message: SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' File: /home3/monacowe/public_html/socialenjoy.com/ow_core/database.php Line: 331 Trace: #0 /home3/monacowe/public_html/socialenjoy.com/ow_core/database.php(331): PDOStatement->execute() #1 /home3/monacowe/public_html/socialenjoy.com/ow_core/database.php(498): OW_Database->execute(' SELECT DISTINC...', Array) #2 /home3/monacowe/public_html/socialenjoy.com/ow_system_plugins/base/bol/question_dao.php(314): OW_Database->queryForList(' SELECT DISTINC...', Array) #3 /home3/monacowe/public_html/socialenjoy.com/ow_system_plugins/base/bol/question_service.php(617): BOL_QuestionDao->findRequiredQuestionsForAccountType('290365aadde35a9...') #4 /home3/monacowe/public_html/socialenjoy.com/ow_system_plugins/base/bol/question_service.php(2232): BOL_QuestionService->findRequiredQuestionsForAccountType('290365aadde35a9...') #5 /home3/monacowe/public_html/socialenjoy.com/ow_system_plugins/base/classes/event_handler.php(235): BOL_QuestionService->getEmptyRequiredQuestionsList(1) #6 /home3/monacowe/public_html/socialenjoy.com/ow_core/event_manager.php(197): BASE_CLASS_EventHandler->onPluginsInitCheckUserStatus(Object(OW_Event)) #7 /home3/monacowe/public_html/socialenjoy.com/index.php(63): OW_EventManager->trigger(Array, Object(OW_Event)) #8 {main} Type: PDOException
The Forum post is edited by ross Jul 21 '14
ross Team
ross Jul 11 '14
Can you provide us access details to your phpmyadmin? as it is hard to say right now what's causing this. 
The Forum post is edited by ross Jul 11 '14
Pete
Pete Jul 11 '14

Try repairing your DB  ,looks like some coding is mismatch

ross Team
ross Jul 11 '14
Can you provide us access details to your phpmyadmin? No need to repair
ross Team
ross Jul 11 '14
bobby, you need to locate a table which has different collation rather than utf8_general_ci, open it, then click on the Structure, you will see the third row for that table named Collation you will need to change it. Click on each row Change button and choose the utf8_general_ci collation in the drop down menu then save. 
bobby
bobby Jul 11 '14
everything is  utf8_general_ci,

Attachments:
  Screenshot (2).png (656.39Kb)
  Screenshot (3).png (664.51Kb)
ross Team
ross Jul 11 '14
check the structure of ow_base_question_to_account_type table the rows are not general_ci
bobby
bobby Jul 11 '14
i did that
Attachments:
  Screenshot (7).png (483.24Kb)
  Screenshot (6).png (517.14Kb)
  Screenshot (5).png (433.13Kb)
  Screenshot (4).png (439.02Kb)
bobby
bobby Jul 11 '14
when i save and go back there not set i saved it i made them all general_ci right
The Forum post is edited by bobby Jul 11 '14
Attachments:
  Screenshot (8).png (416.58Kb)
  Screenshot (9).png (421.86Kb)
  Screenshot (10).png (535.18Kb)
  Screenshot (11).png (362.82Kb)
Pete
Pete Jul 11 '14
Have you tried repairing your DB bobby ? that might work
bobby
bobby Jul 11 '14
yes i did
Attachments:
  Screenshot (12).png (403.25Kb)
  Screenshot (13).png (404.43Kb)
bobby
bobby Jul 11 '14
should i just start over again
Pete
Pete Jul 11 '14

Try this bobbi


 there is an easier way to correct the collation of all tables:


Create a new php file on the server with the following and then run it:

<?php
$db
= mysql_connect('localhost','myuser_mydbuser','mypassword');
if(!
$db) echo "Cannot connect to the database - incorrect details";
mysql_select_db('myuser_mydbname'); $result=mysql_query('show tables');
while(
$tables = mysql_fetch_array($result)) {
foreach (
$tables as $key => $value) {
mysql_query("ALTER TABLE $valueCOLLATE utf8_general_ci");
}}
echo
"The collation of your database has been successfully changed!";
?>

Make sure to substitute in the above script:

- myuser_mydbname with your database name;
- myuser_mydbuser with your mysql username;
- mypassword with your password for the mysql user;

The Forum post is edited by Pete Jul 11 '14
Pete
Pete Jul 11 '14
let me know if this worked bobbi (thanks)
bobby
bobby Jul 11 '14
Create a new php file on the server with the following and then run it:
put that file in the dir were oxwall is install main dir
called php.php
The Forum post is edited by bobby Jul 11 '14
bobby
bobby Jul 11 '14
re did everything  was good in tell i imported my database
Attachments:
  Screenshot (14).png (285.67Kb)
  Screenshot (15).png (235.97Kb)
Pete
Pete Jul 12 '14



Mine went like your site a while back and my host fixed it for me ,I don't no what they did to fix it but they did



The Forum post is edited by Pete Jul 12 '14
Pete
Pete Jul 12 '14
At least you can get your site back on now ,you might be better off asking oxwall how to fix this error in photos that you posted,cause I don't have a clue,it must be just something simple because my host only took about 5 mins to fix mine .
The Forum post is edited by Pete Jul 12 '14
Pete
Pete Jul 12 '14

I would let Ross take a look at it for you ,you need somebody that understands the structure of oxwall ,you want to get your site back online sweet so the oxwall team or ross can see it proper

The Forum post is edited by Pete Jul 12 '14
Pete
Pete Jul 12 '14
Your hosting account doesn't meet the following requirements:
  • register_globals must be off (currently on) .
Pages: 1 2 »