Advanced search  

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]

Pages: [1]   Go Down

Author Topic: mySQL error: Unknown column 'aid' in 'field list'  (Read 19617 times)

0 Members and 1 Guest are viewing this topic.

jaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
mySQL error: Unknown column 'aid' in 'field list'
« on: November 30, 2008, 03:04:01 am »

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: ;
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: mySQL error: Unknown column 'aid' in 'field list'
« Reply #1 on: November 30, 2008, 09:40:20 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...
Logged

jaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: mySQL error: Unknown column 'aid' in 'field list'
« Reply #2 on: November 30, 2008, 11:07:16 am »

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/
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: mySQL error: Unknown column 'aid' in 'field list'
« Reply #3 on: November 30, 2008, 02:46:01 pm »

Posting a link to your gallery might help as well...
OK, you did that by replying with
Here is the link to the albums
http://gilaipraung.com/1old/modules/coppermine/
, but you haven't done as suggested: I asked
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...
Logged

jaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: mySQL error: Unknown column 'aid' in 'field list'
« Reply #4 on: November 30, 2008, 04:52:27 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: mySQL error: Unknown column 'aid' in 'field list'
« Reply #5 on: November 30, 2008, 11:59:05 pm »

Make sure that your mySQL user has got the needed privileges to perform the database update.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.