[Bug 923] New - Maintenance on login tries to update wrong table

bugs@bugs.horde.org bugs@bugs.horde.org
Tue, 2 Apr 2002 14:42:54 -0400


http://bugs.horde.org/show_bug.cgi?id=923

*** shadow/923	Tue Apr  2 14:42:54 2002
--- shadow/923.tmp.29247	Tue Apr  2 14:42:54 2002
***************
*** 0 ****
--- 1,49 ----
+ Bug#: 923
+ Product: Horde
+ Version: 2.0 Stable
+ Platform: All Browsers
+ OS/Version: Linux
+ Status: NEW   
+ Resolution: 
+ Severity: normal
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck@horde.org                            
+ ReportedBy: gabriel@sitelink.com               
+ URL: 
+ Summary: Maintenance on login tries to update wrong table
+ 
+ Hi,
+ 
+ I've got a standard install of Horde 2.0 and Imp 3.0, with the database tables
+ created directly from the scripts.
+ 
+ When I try to log in for the first time on a new setup, maintenance tries to
+ run.  This is the error:
+ 
+ object(db_error)(7) {
+   ["error_message_prefix"]=>
+   string(0) ""
+   ["mode"]=>
+   int(1)
+   ["level"]=>
+   int(1024)
+   ["code"]=>
+   int(-19)
+   ["message"]=>
+   string(23) "DB Error: no such field"
+   ["userinfo"]=>
+   string(436) "update horde_categories set pref_value =
+ 'a:1:{i:0;a:9:{s:2:"id";s:16:"Default
+ Identity";s:8:"fullname";s:0:"";s:9:"from_addr";s:0:"";s:12:"replyto_addr";s:0:"";s:9:"signature";s:0:"";s:9:"sig_first";i:0;s:10:"sig_dashes";i:0;s:14:"save_sent-mail";N;s:16:"sent_mail_folder";s:9:"sent-mail";}}'
+ where pref_uid = 'gabriel@vcca.net' and pref_name = 'identities' and pref_scope
+ = 'horde' [nativecode=ERROR:  Attribute 'pref_uid' not found
+ ]"
+   ["callback"]=>
+   NULL
+ }
+ [/usr/local/horde/lib/Prefs/sql.php : 274]
+ 
+ 
+ Is this right?  Shouldn't it be updating horde_prefs, not horde_categories?