[SOLVED] G2 issues #2: Can't upgrade Random Highlight module
|
robinbowes
Joined: 2002-09-20
Posts: 99 |
Posted: Mon, 2005-04-18 22:49
|
|
Hi, I've having a few problems with G2 and this is the second in a set of posts that will list them. #2: Can't upgrade Random Highlight module When I try to upgrade the Random Highlight module from 0.8.6 to 0.9.3 I get the following error: Error Detail - * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1190 (gallerystatus::error) Any idea what might cause this? Database structure, possibly? R. |
|

Posts: 8601
did the error page showing that error have a note about turning on buffered debug output to capture the details of the database error? anyway, please turn on buffered debug output and try again.. look near the bottom of the debug output and post the error message here.
(for version number when using cvs or nightly, just say the date of the nightly build or last cvs update)
Posts: 99
Aha! I just turned on buffered debug output and saw the following error:
mysql error: [1267: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'concat'] in EXECUTE("UPDATE g2_Entity SET g_entityType = 'GalleryDerivativeImage', g_onLoadHandlers = CONCAT(g2_Entity.g_onLoadHandlers, 'RandomHighlight|') WHERE g2_Entity.g_entityType = 'RandomHighlightDerivativeImage' AND g2_Entity.g_onLoadHandlers IS NOT NULL")I've seen this before - unless you're explicitly setting the character set to latin1_swedish_ci then I need to use some start-up switch to make MySQL start with the correct default character set so any scripts that run will use it.
Now, how do I do that...
R.
Posts: 99
Erm, yes it did - I noticed *after* I'd posted the messages, of course!
Ok, date of CVS is about 30 mins ago!
Posts: 99
Answer:
Add the following lines to the [mysqld] section of /etc/my.cnf:
character_set_server=utf8
collation_server=utf8_general_ci
Now, any sql gets executed with utf8 as the default rather than the compiled-in default of latin.
What I find strange is that I only get this problem with two modules - all the others worked fine.
R.