Error Trying to Upload Images
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCoppermine
Author Message
chris5000
Dragonfly addicted


Joined: Mar 04, 2006
Posts: 384
Location: Kentucky

PostPost subject: Error Trying to Upload Images
Posted: Tue Dec 25, 2007 7:45 am
Reply with quote

All of a sudden I am getting the following error. I did upgrade to 9.1.2.1. and I do have MySql 5 and PHP 5 which probably have something to do with it. Any ideas? TIA!

On /index.php?name=coppermine&file=upload
While executing query "SELECT aid, CONCAT('(', username, ') ', title) AS title FROM cms_cpg_albums AS a INNER JOIN cms_users AS u ON user_id = (category - 10000) ORDER BY title"

the following error occured: Column 'title' in field list is ambiguous

In: /home/xxxxxxx/public_html/xxxxxxxx/includes/coppermine/functions.inc on line: 355


chris5000's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/MySql 5.0.27-standard-log/PHP 5.1.6/DF 9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: Error Trying to Upload Images
Posted: Tue Dec 25, 2007 8:22 am
Reply with quote

That usually occurs if you have two tables with an identical column name, but 'title' is unique to cms_cpg_albums in this instance.

Would you be running MySQL STRICT by any chance?

That particular query is unchanged, even in current cvs.

Try modifying includes/coppermine/functions.inc lines 347 to 350 to
Code:
	if (GALLERY_ADMIN_MODE){
		$sql = "SELECT aid, CONCAT('(', username, ') ', a.title) AS title FROM {$CONFIG['TABLE_ALBUMS']} AS a "
			."INNER JOIN {$CONFIG['TABLE_USERS']} AS u ON user_id = (category - " . FIRST_USER_CAT . ') '
			.'ORDER BY title';
Note the , title) => , a.title) in the second line.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
chris5000
Dragonfly addicted


Joined: Mar 04, 2006
Posts: 384
Location: Kentucky

PostPost subject: Re: Error Trying to Upload Images
Posted: Tue Dec 25, 2007 3:38 pm
Reply with quote

Your solution saved the day, Phoenix! Thank you very much. I appreciate the expertise! Worked like a charm!

chris5000's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/MySql 5.0.27-standard-log/PHP 5.1.6/DF 9.1.2.1
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCoppermine All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.403 seconds with 19 DB Queries in 0.039 seconds
Memory Usage: 2.87 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy