coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: meije683 on October 17, 2005, 02:31:08 PM

Title: Concat error in administartor tool, upload autorisation, multi upload + search
Post by: meije683 on October 17, 2005, 02:31:08 PM
Concat error in administartor tool, upload autorisation, multi upload + search

I am ussing Coppermine 1.33, MySQL V4.1 en PHP 5.04

Can anybody help me with this problem. Look below for error descriptions.

Thanks in advance for your help!

Gr. John from the Netherlands!


>>>>>>>>>>>>>>>>>>>>>>>>>>Example 1: Error when klik on Upload autorisation:<<<<<<<<<<<<<<<<<<<<<<<<

While executing query "SELECT DISTINCT aid, title, IF(category = 0, CONCAT('&gt; ', title), CONCAT(name,' &lt; ',title)) AS cat_title FROM cpg133_albums, cpg133_categories WHERE category < '10000' AND (category = 0 OR category = cid) ORDER BY cat_title" on 0

mySQL error: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (utf8_general_ci,IMPLICIT) for operation 'concat'

USER:
------------------
Array
(
    [ID] => 9016414fc82beffce374e39696b05a3d
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => john
    [user_password] => ********
    [user_lastvisit] => 2005-10-17 14:05:18
    [user_regdate] => 2005-08-17 17:22:14
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: Concat error in administartor tool, upload autorisation, multi upload + search
Post by: Stramm on October 17, 2005, 05:21:23 PM
looks like you need to default to your servers default charset. I guess it's the albums-title column
learn more about it here http://dev.mysql.com/doc/refman/5.0/en/charset-server.html

try to run that mysql command in phpmyadmin while you've selected your coppermine database
backup your entire database before you do so
ALTER TABLE `cpg_albums` CHANGE `title` `title` VARCHAR(255) NOT NULL;

(if yopu want to set a specific charset you can add eg. set latin1)
Title: Re: Concat error in administartor tool, upload autorisation, multi upload + search
Post by: kegobeer on October 17, 2005, 05:23:29 PM
Search before posting.

http://forum.coppermine-gallery.net/index.php?topic=10937.0