SVN[1228] Mainpage Error

Posts from previous Beta sessions

SVN[1228] Mainpage Error

Postby DaarianneDarkmoon » Wed Aug 15, 2007 3:34 am

This is what I get. ACP works fine, nothing else does. Dataupload was sucessful tho...

http://www.rpg-community.com/adds/roster/

Code: Select all
1270: Illegal mix of collations (utf8_general_ci,IMPLICIT), (latin1_swedish_ci,COERCIBLE), (utf8_general_ci,IMPLICIT) for operation 'concat'
SQL:
SELECT `guild_name`, CONCAT(`region`,'-',`server`), `guild_id` FROM `roster_guild` ORDER BY `region` ASC, `server` ASC, `guild_name` ASC;
File: lib/dbal/mysql.php
Line: 202
Backtrace (most recent call last):

    * lib/functions.lib.php
          o Line: 236
          o Function Called: backtrace
    * lib/dbal/mysql.php
          o Line: 202
          o Function Called: die_quietly
          o Arguments:
                + 1270: Illegal mix of collations (utf8_general_ci,IMPLICIT), (latin1_swedish_ci,COERCIBLE), (utf8_general_ci,IMPLICIT) for operation 'concat'
                + Database Error
                + /www/htdocs/xxxxx/adds/roster/lib/dbal/mysql.php
                + 202
                + SELECT `guild_name`, CONCAT(`region`,'-',`server`), `guild_id` FROM `roster_guild` ORDER BY `region` ASC, `server` ASC, `guild_name` ASC;
    * lib/menu.php
          o Line: 165
          o Function Called: query
          o Arguments:
                + SELECT `guild_name`, CONCAT(`region`,'-',`server`), `guild_id` FROM `roster_guild` ORDER BY `region` ASC, `server` ASC, `guild_name` ASC;
    * lib/menu.php
          o Line: 38
          o Function Called: makeTop
    * addons/memberslist/guild/index.php
          o Line: 198
          o Function Called: makeMenu
          o Arguments:
                + Array ( [0] => util [1] => realm [2] => guild )
    * index.php
          o Line: 112
          o Function Called: require
          o Arguments:
                + /www/htdocs/xxxxx/adds/roster/addons/memberslist/guild/index.php
Last edited by DaarianneDarkmoon on Wed Aug 15, 2007 6:07 pm, edited 1 time in total.
User avatar
DaarianneDarkmoon
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Wed Jul 12, 2006 12:34 am

SVN[1202] Mainpage Error

Postby zanix » Wed Aug 15, 2007 10:15 am

Hmm, I dunno about this one
All tables should have been set to utf8 in the installer
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: SVN[1202] Mainpage Error

Postby DaarianneDarkmoon » Wed Aug 15, 2007 5:03 pm

I had no problems with the install at all...

is there a manual way to change that? if so, where and how?
User avatar
DaarianneDarkmoon
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Wed Jul 12, 2006 12:34 am

SVN[1202] Mainpage Error

Postby DaarianneDarkmoon » Wed Aug 15, 2007 5:46 pm

tried a fresh install and noticed (seems like i oversaw that the firsttime) that whenever I try to install an add on from the apropriate menu, I get:

Code: Select all
1271: Illegal mix of collations for operation 'concat'
SQL:
UPDATE `roster_menu` SET `config` = CONCAT(`config`,':','b',LAST_INSERT_ID()) WHERE `section` = 'util' LIMIT 1;
File: lib/dbal/mysql.php
Line: 202
Backtrace (most recent call last):

    * lib/functions.lib.php
          o Line: 236
          o Function Called: backtrace
    * lib/dbal/mysql.php
          o Line: 202
          o Function Called: die_quietly
          o Arguments:
                + 1271: Illegal mix of collations for operation 'concat'
                + Database Error
                + /www/htdocs/w0066b30/adds/roster/lib/dbal/mysql.php
                + 202
                + UPDATE `roster_menu` SET `config` = CONCAT(`config`,':','b',LAST_INSERT_ID()) WHERE `section` = 'util' LIMIT 1;
    * lib/install.lib.php
          o Line: 213
          o Function Called: query
          o Arguments:
                + UPDATE `roster_menu` SET `config` = CONCAT(`config`,':','b',LAST_INSERT_ID()) WHERE `section` = 'util' LIMIT 1;
    * admin/addon_install.php
          o Line: 482
          o Function Called: install
    * admin/addon_install.php
          o Line: 46
          o Function Called: processAddon
    * pages/rostercp.php
          o Line: 96
          o Function Called: require_once
          o Arguments:
                + /www/htdocs/w0066b30/adds/roster/admin/addon_install.php
    * index.php
          o Line: 67
          o Function Called: require
          o Arguments:
                + /www/htdocs/w0066b30/adds/roster/pages/rostercp.php
User avatar
DaarianneDarkmoon
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Wed Jul 12, 2006 12:34 am

SVN[1202] Mainpage Error

Postby DaarianneDarkmoon » Wed Aug 15, 2007 6:07 pm

updated to [1228] - changed topic name

failiure persists...
User avatar
DaarianneDarkmoon
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Wed Jul 12, 2006 12:34 am

SVN[1228] Mainpage Error

Postby clear » Thu Oct 04, 2007 2:20 am

Was there ever a solution to this problem? I'm getting the same errors....
clear
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Thu Aug 17, 2006 12:34 am

SVN[1228] Mainpage Error

Postby zanix » Thu Oct 04, 2007 3:03 am

Yes, addons should be using an installer function to make new tables
Update the addons, un-install, the re-install them
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

SVN[1228] Mainpage Error

Postby clear » Thu Oct 04, 2007 3:22 am

Hmm.. I'm using the latest release of Roster (1367) and I still get the same errors.

http://wowroster.sniikt.com

mysql version 4.1.7
clear
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Thu Aug 17, 2006 12:34 am

SVN[1228] Mainpage Error

Postby zanix » Thu Oct 04, 2007 3:32 am

Then one of the addons you are using doesn't use the new create_table method in its installer
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

SVN[1228] Mainpage Error

Postby clear » Thu Oct 04, 2007 3:40 am

Understood, thanks!
clear
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Thu Aug 17, 2006 12:34 am

SVN[1228] Mainpage Error

Postby PleegWat » Thu Oct 04, 2007 12:25 pm

In daarianne's case, this is not an addon table issue. The error posted occurs while appending the addon button to the menu.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

SVN[1228] Mainpage Error

Postby clear » Fri Oct 05, 2007 2:28 am

Correct, this is precisely my problem as well. And, it seems that the latest version of the addons (1377) does not fix the problem.

Any other suggestions?
clear
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Thu Aug 17, 2006 12:34 am

SVN[1228] Mainpage Error

Postby clear » Fri Oct 05, 2007 8:40 pm

Well, I'm a little closer to fixing the problem, but still not quite there. I noticed that MYSQL variables were still set to the old Latin (default) settings, so the database was created using the default Latin settings as well. I changed this around and ensured that all variables are now set to UTF8/utf8_unicode_ci (at least all that I can find):

mysql> show variables like 'col%';
+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_unicode_ci |
| collation_database | utf8_unicode_ci |
| collation_server | utf8_general_ci |
+----------------------+-----------------+
3 rows in set (0.00 sec)

mysql> show create database wowroster;
+-----------+--------------------------------------------------------------------------------------------+
| Database | Create Database |
+-----------+--------------------------------------------------------------------------------------------+
| wowroster | CREATE DATABASE `wowroster` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */ |
+-----------+--------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> show create table roster_guild;
+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| roster_guild | CREATE TABLE `roster_guild` (
`guild_id` int(11) unsigned NOT NULL auto_increment,
`guild_name` varchar(64) NOT NULL default '',
`server` varchar(32) NOT NULL default '',
`region` varchar(2) NOT NULL default '',
`faction` varchar(32) NOT NULL default '',
`factionEn` varchar(32) NOT NULL default '',
`guild_motd` varchar(255) NOT NULL default '',
`guild_num_members` int(11) NOT NULL default '0',
`guild_num_accounts` int(11) NOT NULL default '0',
`update_time` datetime default NULL,
`GPversion` varchar(6) NOT NULL default '0.0.0',
`DBversion` varchar(6) NOT NULL default '0.0.0',
`guild_info_text` mediumtext,
PRIMARY KEY (`guild_id`),
KEY `guild` (`guild_name`,`server`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 |
+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

Now, I can manually enter the problematic UPDATE request from the commandline and it works fine:

mysql> UPDATE `roster_menu` SET `config` = CONCAT(`config`,':','b',LAST_INSERT_ID()) WHERE `section` = 'guild' LIMIT 1;
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0

mysql> select * from roster_menu;
+-----------+---------+----------+
| config_id | section | config |
+-----------+---------+----------+
| 1 | util | b1:b2:b3 |
| 2 | realm | |
| 3 | guild | :b0 |
| 4 | char | |
+-----------+---------+----------+
4 rows in set (0.00 sec)



However, when trying to use the web interface to execute the same command I still receive the standard collate error (as shown above in DaarianneDarkmoon's 2nd error post).

So, now the question: is there another setting in MYSQL that needs to set to UTF8 to make this work from the web interface? Or is there some other thing I'm missing to make this work?

Thanks in advance for all the help!!
clear
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Thu Aug 17, 2006 12:34 am


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron