[SOLVED] G2 issues #2: Can't upgrade Random Highlight module
robinbowes
Joined: 2002-09-20
Posts: 99 |
![]() |
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. |
|
mindless
![]()
Joined: 2004-01-04
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) |
|
robinbowes
Joined: 2002-09-20
Posts: 99 |
![]() |
robinbowes wrote:
Hi, 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. |
|
robinbowes
Joined: 2002-09-20
Posts: 99 |
![]() |
mindless wrote:
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. Erm, yes it did - I noticed *after* I'd posted the messages, of course! Ok, date of CVS is about 30 mins ago! |
|
robinbowes
Joined: 2002-09-20
Posts: 99 |
![]() |
robinbowes wrote:
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") Answer: Add the following lines to the [mysqld] section of /etc/my.cnf: 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. |
|