Relevant information: Drupal 5.15, Project 5.x-1.3, PHP 5.2.5, MySQL 5.

I am having a problem, where I cannot browse projects by type. I have set up a simple project hierarchy and a couple of projects belonging to each project type. Even though the project types acknowledge that they contain projects, the projects are not displayed.

Check this page for example: it says that the "game" category has one project (which can be accessed on its own here), but no projects are displayed if you click on the "game" category. The same occurs if you try to sort by date or by name.

CommentFileSizeAuthor
#6 Screenshot-Libraries.png234.62 KBThe Fiddler

Comments

The Fiddler’s picture

When I try to view the relevant projects by date or by name, I receive the following SQL error:

Not unique table/alias: 'prn' query:
SELECT   DISTINCT (n.nid), 
                  n.title, 
                  n.sticky, 
                  n.TYPE, 
                  nr.teaser, 
                  nr.FORMAT, 
                  pip.issues, 
                  Max(prn.file_date) AS changed, 
                  prn.file_path, 
                  prn.version, 
                  Count(* )          AS release_count 
FROM     node n 
         INNER JOIN node_revisions nr 
           ON n.vid = nr.vid 
         INNER JOIN project_projects p 
           ON n.nid = p.nid 
         LEFT JOIN term_node r 
           ON n.nid = r.nid 
         INNER JOIN project_issue_projects pip 
           ON n.nid = pip.nid 
         INNER JOIN project_release_nodes prn 
           ON n.nid = prn.nid 
         INNER JOIN project_release_projects prp 
           ON n.nid = prp.nid 
         INNER JOIN project_release_nodes prn 
           ON n.nid = prn.pid 
         INNER JOIN term_node tr 
           ON tr.nid = prn.nid 
         INNER JOIN node rn 
           ON rn.nid = prn.nid 
         INNER JOIN project_release_supported_versions prsv 
           ON prsv.nid = p.nid 
              AND prsv.tid = tr.tid 
WHERE    n.status = 1 
         AND r.tid = 19 
         AND prp.releases = 1 
         AND rn.status = 1 
         AND tr.tid = 0 
         AND prsv.supported = 1 
GROUP BY n.nid 
ORDER BY changed DESC, 
         n.sticky DESC, 
         n.title ASC
LIMIT 0, 30 in /home/opentkne/public_html/includes/database.mysql.inc on line 174.
The Fiddler’s picture

I understand that development is focused on the 6.x version right now, but not being able to browse any projects is a pretty serious issue.

It is obvious that this part is wrong:

         INNER JOIN project_issue_projects pip 
           ON n.nid = pip.nid 
         INNER JOIN project_release_nodes prn 
           ON n.nid = prn.nid 
         INNER JOIN project_release_projects prp 
           ON n.nid = prp.nid 
         INNER JOIN project_release_nodes prn

Anyone have any idea why this query is generated and how to fix it?

The Fiddler’s picture

This issue also exists on a fresh installation of the current 6.x-dev version. I have set up a site that reproduces this issues at http://www.entreri.net.

This site has the following project types:
core
libraries
applications
- editor
- game

I have created two projects, one in "core", the other in "applications/game", enabled the project listing view and granted the necessary permissions. The projects are accessible individually, but the project listing view stays empty.

I can provide you with admin access to this site for debugging.

The Fiddler’s picture

Status: Active » Closed (duplicate)
The Fiddler’s picture

Status: Closed (duplicate) » Active

This is not a duplicate after all. I cannot browse projects even if I create a 2-tier hierarchy.

Can some *please* help?

The Fiddler’s picture

StatusFileSize
new234.62 KB

A screenshot of the problem. Note that I have clicked on Project -> Libraries -> Audio, the counter indicates that such a library exists, but it is not listed anywhere.

drumm’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

5.x projects are unsupported. Please re-open with new details if this issue is still relevant.