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: Error I am receiving when I try to access user albums...  (Read 7983 times)

0 Members and 1 Guest are viewing this topic.

iamcanadian

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Error I am receiving when I try to access user albums...
« on: November 16, 2003, 04:08:31 am »

There was an error while processing a database query.


In debug mode ::

Code: [Select]
While executing query "SELECT user_id,
                username,
                COUNT(DISTINCT a.aid) as alb_count,
                COUNT(DISTINCT pid) as pic_count,
                MAX(pid) as thumb_pid
                FROM nuke_users AS u
                INNER JOIN cpg_usergroups AS g ON user_group_cp = group_id
                INNER JOIN cpg_albums AS a ON category = 10000 + user_id
                INNER JOIN cpg_pictures AS p ON p.aid = a.aid
                WHERE approved = 'YES'  GROUP BY user_id ORDER BY username "

mySQL error: Column: 'username' in field list is ambiguous


Can somone help with this....
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
db error user albums
« Reply #1 on: November 16, 2003, 06:28:21 am »

Did you install For phpnuke 6.5 version in 6.0 or less.... if not try this in index.php line 252 replace:
Code: [Select]
ORDER BY username
Code: [Select]
ORDER BY a.username

[edited to the correct value sorry]

iamcanadian

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Error I am receiving when I try to access user albums...
« Reply #2 on: November 16, 2003, 07:27:13 am »

Just installed CPG 1.2 for nuke (I'm using nuke 6.7) & same error.....
Logged

iamcanadian

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Error I am receiving when I try to access user albums...
« Reply #4 on: November 16, 2003, 08:46:53 am »

Unfortunately no...
Logged

iamcanadian

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Error I am receiving when I try to access user albums...
« Reply #6 on: November 16, 2003, 03:33:16 pm »

No it didn't work for the error (posted above) when I try to view the user galleries. I also get this error when trying to view Users in admin ::

Code: [Select]
Critical error

There was an error while processing a database query.
 
While executing query "SELECT user_id, username, user_email, UNIX_TIMESTAMP(user_regdate) as user_regdate_cp, group_name, user_active_cp, COUNT(pid) as pic_count, ROUND(SUM(total_filesize)/1024) as disk_usage, group_quota FROM nuke_users AS u INNER JOIN cpg_usergroups AS g ON user_group_cp = group_id LEFT JOIN cpg_albums AS a ON category = 10000 + user_id LEFT JOIN cpg_pictures AS p ON p.aid = a.aid GROUP BY user_id ORDER BY user_regdate_cp DESC LIMIT 0, 25" on 0

mySQL error: Column: 'username' in field list is ambiguous
Logged

iamcanadian

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Error I am receiving when I try to access user albums...
« Reply #7 on: November 16, 2003, 08:44:24 pm »

Anyone?? My site is live....

Thanks
Logged

iamcanadian

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Error I am receiving when I try to access user albums...
« Reply #8 on: November 16, 2003, 09:44:14 pm »

I have a 'username' field in table cpg_users and a 'username' field in table nuke_users. Obviously the program doesn't know which to use! Can someone please help me???? I don't understand how I can be the only one to have this problem when I installed the same files as everyone else????
Logged

SoulThief

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Error I am receiving when I try to access user albums...
« Reply #9 on: November 20, 2003, 12:08:32 am »

I have similar problem.

In /include/init.inc.php there is a line that says:

Quote
$CONFIG['TABLE_USERS']        = "nuke_users";


In my own case I was not using the edfault nuke_users, I was using a different prefix (hence war_users). Are you using the standard nuke prefix or another?

ST
Logged

iamcanadian

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Error I am receiving when I try to access user albums...
« Reply #10 on: November 24, 2003, 07:02:08 am »

Quote from: "SoulThief"
Are you using the standard nuke prefix or another?


I am using the standard prefix... nuke_users
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 14 queries.