Menu

PostgreSQL ERROR: pg_atoi:

Developers
2001-09-26
2001-09-28
  • Gerald Weber

    Gerald Weber - 2001-09-26

    I was trying to add a new user. O followed the prescription and got 3 warning. The first two were predictable since there are no
    upload/download diretories. The third I have not seen before, it is a Postgre error. Despite saying that the user was added it
    does not appear on the users list.
    I was using Opera 5.0.

    It seems like I am giving you a hard time.

    Warning:  OpenDir: Permission denied (errno 13) in /home/httpd/html/sidb/adminusers.php on line 108
    The image directory /home2/ana/upload-images does not exist or cannot be read
    The image directory should be a subdirectory in: /home2/ana
    All other data submitted will be entered into the database
    Warning:  OpenDir: Permission denied (errno 13) in /home/httpd/html/sidb/adminusers.php on line 118
    The download directory /home2/xxx/download-images does not exist or cannot be read
    The download directory should be a subdirectory in: /home2/xxx
    Other data submitted will be entered into the database
    Warning:  PostgreSQL query failed:  ERROR:  pg_atoi: error in "on": can't parse "on"
    in /home/httpd/html/sidb/adminusers.php on line 140
    User xxx added.

     
    • Gerald Weber

      Gerald Weber - 2001-09-26

      The PostgreSQL does not occur with Netscape as
      I just tested.

       
      • Nico Stuurman

        Nico Stuurman - 2001-09-26

        Don't know the answer to this one.  In any case, there is not much checking in admintemplates.php on whether or not the Postgres query succeeds.  That can be fixed! 

        Otherwise, it seems Postgresql did not like the value 'on'???  I have no idea why.  Opera caches much more than netscape, so it would not surprise me if the user was added but Opera did not display it since it showed the 'old' page (although that did not seem to be the problem here).

         
    • Gerald Weber

      Gerald Weber - 2001-09-27

      With Opera the user really was not added, neither the
      does the new user show up in the users box nor can
      he/she log in.

       
      • Nico Stuurman

        Nico Stuurman - 2001-09-27

        does this happen every time you add a user in opera?  If so, I'll look into it.

         
    • Nico Stuurman

      Nico Stuurman - 2001-09-28

      I could reproduce this. Opera seems to send the value 'on' for a radiobutton (where it should send the value 100).  Weird bug in Opera...  I made a workaround (if you checkout or export the cvs, you can test it).  Everything ready to release v 0.18?

       

Log in to post a comment.

MongoDB Logo MongoDB