[ php-blog-Bugs-1732000 ] postgres error when saving personal settings

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.serendipity.trackers
Message-ID <[email protected]>
Bugs item #1732000, was opened at 2007-06-06 05:40
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1732000&group_id=75065

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Administrative functions
Group: None
Status: Pending
Resolution: Invalid
Priority: 1
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Garvin Hicking (garvinhicking)
Summary: postgres error when saving personal settings

Initial Comment:
When I am saving personal settings via admin panel I get this error:

Warning: pg_query(): Query failed: ERROR: pg_atoi: zero-length string in /include/db/postgres.inc.php on line 210
Error in UPDATE s_authors SET userlevel = '' WHERE authorid = 1
ERROR: pg_atoi: zero-length string
array (
  0 => 
  array (
    'file' => '/include/functions_config.inc.php',
    'line' => 238,
    'function' => 'serendipity_db_query',
    'args' => 
    array (
      0 => 'UPDATE s_authors SET userlevel = \'\' WHERE authorid = 1',
    ),
  ),
  1 => 
  array (
    'file' => '/include/admin/personal.inc.php',
    'line' => 65,
    'function' => 'serendipity_set_user_var',
    'args' => 
    array (
      0 => 'userlevel',
      1 => NULL,
      2 => '1',
      3 => true,
    ),
  ),
  2 => 
  array (
    'file' => '/serendipity_admin.php',
    'line' => 160,
    'args' => 
    array (
      0 => '/include/admin/personal.inc.php',
    ),
    'function' => 'include',
  ),
) 
UPDATE s_authors SET userlevel = '' WHERE authorid = 1

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-06-06 08:37

Message:
Logged In: NO 

I'm using Serendipity 1.2-beta1

----------------------------------------------------------------------

Comment By: Garvin Hicking (garvinhicking)
Date: 2007-06-06 05:50

Message:
Logged In: YES 
user_id=473563
Originator: NO

Hi!

We need you to specify version numbers. I believe this is fixed since
serendipity 1.2-alphas already.

Regards,
Garvin

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1732000&group_id=75065

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.