Closed (fixed)
Project:
Subscriptions
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2007 at 09:12 UTC
Updated:
3 Oct 2007 at 20:24 UTC
i get this error message on the /subscriptions page.
user warning: Column 'description' in field list is ambiguous query: SELECT type, description, send_interval, stype FROM main_privatemsg_mail_edit p LEFT JOIN main_mail_edit m ON p.mailkey = m.mailkey LEFT JOIN main_subscriptions s ON concat('pmsg', type) = stype AND uid = 1 ORDER BY type in /home/mykart/public_html/drupal5/includes/database.mysql.inc on line 172.
is this because there is the same field in the mail_edit and privatemsg_mail_edit tables?
Comments
Comment #1
salvismain_privatemsg_mail_edit should only have two columns, type and mailkey. Have you manipulated the database tables?
You don't have any live data in Subscriptions and Privatemsg yet, right? I'd suggest you download the current snapshots of these two modules, deactivate and uninstall (/admin/build/modules/uninstall) them as well as Mail Editor, and then reinstall them.
Comment #2
TheFazz commentedi don't think i had manipulated the tables, although i did do a manual table update for a problem i was having with the privatemsg http://drupal.org/node/164943
i did a mysql update based on post#9.
Comment #3
salvisI don't think the poster in http://drupal.org/node/164943#comment-288033 (#9) knew what he was doing. The main_privatemsg_mail_edit.description column didn't come from that post though.
Anyway, please start over from scratch according to #1.
Also keep in mind, that this is work in progress and there is no 2.0 release yet. -dev snapshots should not be used on production sites unless there's overwhelming evidence that it's safe to do so.
Comment #4
TheFazz commentedthanks salvis. unfortunately, i had not kept a backup of the tables before the 2.x-dev upgrades of privatemsg and subscriptions... so reverting back to the previous version is a little more complex (& manual).
if there is a way to revert, then i will do so. otherwise, i shall persist with the latest version. the risks are acceptable at this juncture.
Comment #5
salvisThen I'd suggest to either make a test installation from scratch or go through all three .install files (with their update_N() functions) to assemble the correct table definitions, and review and fix each of the tables.
Comment #6
salvisMarking this fixed, as the issue is not in the current snapshot.
Comment #7
(not verified) commented