mySQL error: Unknown column 'aid' in 'field list' mySQL error: Unknown column 'aid' in 'field list'
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

mySQL error: Unknown column 'aid' in 'field list'

Started by jaka, November 30, 2008, 03:04:01 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

jaka

I am using Phpnuke (Nuke evolution). I want to use standalone CPG and decide to move 8.000 pix and 850 users. I did as instructed, run the update.php successfully and get this error at the homepage.

I searched the forum but i can't find the solution

There was an error while processing a database query.
While executing query "SELECT aid FROM cpg_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3)" on 0

mySQL error: Unknown column 'aid' in 'field list'

USER:
------------------
Array
(
    [ID] => f9d1fc34f8b0870bf1cf67cc6924daaa
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
  • => 3
            )

        [group_quota] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 0
        [can_post_comments] => 0
        [can_upload_pictures] => 0
        [can_create_albums] => 0
        [pub_upl_need_approval] => 1
        [priv_upl_need_approval] => 1
        [upload_form_config] => 3
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [custom_user_upload] => 0
        [disk_max] => 0
        [disk_min] => 0
        [ufc_max] => 3
        [ufc_min] => 3
        [has_admin_access] => 0
        [group_name] => Anonymous
        [can_see_all_albums] => 0
        [group_id] => 3
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `jaka_testcooper`.cpg_sessions where time<1227978483 and remember=0; (0s)
        [3] => delete from `jaka_testcooper`.cpg_sessions where time<1226772483; (0s)
        [4] => select user_id from `jaka_testcooper`.cpg_sessions where session_id = '7ba10c622e0abec62f852aa48dea2a3d' (0s)
        [5] => select user_id as id, user_password as password from `jaka_testcooper`.cpg_users where user_id=0 (0s)
        [6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (3) (0s)
        [7] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 3 (0s)
        [8] => update `jaka_testcooper`.cpg_sessions set time='1227982083' where session_id = '7ba10c622e0abec62f852aa48dea2a3d' (0s)
        [9] => DELETE FROM cpg_banned WHERE expiry < '2008-11-29 18:08:03' (0s)
        [10] => SELECT * FROM cpg_banned WHERE (ip_addr='59.95.27.220' OR ip_addr='59.95.27.220' OR user_id=0) AND brute_force=0 (0s)
        [11] => SELECT aid FROM cpg_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    Page generated in 0.032 seconds - 12 queries in 0 seconds - Album set : ; Meta set: ;

Joachim Müller

Quote from: jaka on November 30, 2008, 03:04:01 AM
I did as instructed
What set of instructions do you refer to? Did you convert your database? If yes, from which version to which version? Posting a link to your gallery might help as well...

jaka

I left the albums folder and the file anycontent.php untouched, then run the update.php which shows everything OK
Here is the link to the albums
http://gilaipraung.com/1old/modules/coppermine/

Joachim Müller

Quote from: Joachim Müller on November 30, 2008, 09:40:20 AM
Posting a link to your gallery might help as well...
OK, you did that by replying with
Quote from: jaka on November 30, 2008, 11:07:16 AM
Here is the link to the albums
http://gilaipraung.com/1old/modules/coppermine/
, but you haven't done as suggested: I asked
Quote from: Joachim Müller on November 30, 2008, 09:40:20 AM
What set of instructions do you refer to? Did you convert your database? If yes, from which version to which version?
, which you left unanswered. Hard to advice anything...

jaka

Im sorry, my bad ^^
I followed this instruction, for my original CPG is 1.3.2
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#13 3.1.2 Upgrading from cpg1.1.x, cpg1.2.x or cpg1.3.x to version cpg1.4.x

Thanks for your help

Joachim Müller

Make sure that your mySQL user has got the needed privileges to perform the database update.