forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: jaka on November 30, 2008, 03:04:01 am

Title: mySQL error: Unknown column 'aid' in 'field list'
Post by: jaka 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
        (
           
        )

    [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
(
   
Title: Re: mySQL error: Unknown column 'aid' in 'field list'
Post by: Joachim Müller 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...
Title: Re: mySQL error: Unknown column 'aid' in 'field list'
Post by: jaka 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/
Title: Re: mySQL error: Unknown column 'aid' in 'field list'
Post by: Joachim Müller 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...
Title: Re: mySQL error: Unknown column 'aid' in 'field list'
Post by: jaka 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
Title: Re: mySQL error: Unknown column 'aid' in 'field list'
Post by: Joachim Müller on November 30, 2008, 11:59:05 pm
Make sure that your mySQL user has got the needed privileges to perform the database update.