Menu

Version1: Database error in administration

Help
2005-08-03
2013-04-16
  • Nobody/Anonymous

    Installed version 1.0, using Postgres SQL 8.03, PHP 4.3.6 on
    Scientific Linux 3.3
    Installiation worked fine, Database connection check OK, Tables in DB were created. I checked the postgres database, and found several tables there.

    After logging in , and using the administration tools for setting up users,m groups, projects etc. I always get the error "A database error occured" -

    After reinstalling and trying to fix the problem - I give up !!

    Any suggestions where the error is !!!

    Thanxs for your help
    ThN

     
    • Benjamin Curtis

      Benjamin Curtis - 2005-08-04

      On line 521 of inc/functions.php, change the RAWERROR definition from false to true, then try loading the page again.  This should allow the full error to be displayed.

       
      • Nobody/Anonymous

        Hi I did activate the RAWERROR flag to true and get the message:
        DB Error: unknown error
        select bug_id, title, project_name from bug b, project p where b.project_id not in (0) and b.project_id = p.project_id order by b.created_date desc LIMIT 5, 0 [nativecode=ERROR: LIMIT #,# syntax is not supported ]

        It seems that the select satement is not working with POSTGRES 8.03 ???
        Any idea for a bugfix ??

         
        • Benjamin Curtis

          Benjamin Curtis - 2005-08-09

          I can't currently get to their site to check, but I'm looking into why this syntax wouldn't work.

           
    • Benjamin Curtis

      Benjamin Curtis - 2005-08-09

      Are you using the latest PEAR, and have you defined the DB type as pgsql?  The code uses the modifyLimitQuery function from the PEAR DB code, and that function uses the limit x offset x syntax for pgsql, not limit x,x.

       
    • N Jaffer

      N Jaffer - 2005-08-25

      Using php 5.0.4, mysql 4.1.10, on FC4 get the same error on index.php and report.php

      raw db error i was receiving was:
      select project_name as "Project", sum(case when resolution_id = 0 then 1 else 0 end) as "Open" 123456, count(bug_id) as "Total" from bt_bug b left join bt_project p using (project_id) where b.project_id not in (0) group by b.project_id, project_name order by project_name [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '123456, count(bug_id) as "Total" from bt_bug b left join bt_project p using (pro' at line 1]

      for index.php i commented out line 112
              //$querystring .= $countquery;
      as that was adding the 123456 to the query.  everything seems to work fine now
      (line 41 on report.php)

      any reason for that to have been there?

       
      • Nobody/Anonymous

        Got the same problem, i posted in Debug section. Using php 5.0.4, mysql 4.1.13.

         
    • Nobody/Anonymous

      same issue with fc4. comment out line 113 in index.php and line 41 in reports.php. not sure what is the purpose of those lines.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.