OpenCATS icon indicating copy to clipboard operation
OpenCATS copied to clipboard

Not able to see the Candidate Records and other Records like companies list, candidates list, contacts list

Open chsunil opened this issue 7 months ago • 1 comments

Issue Summary:

I'm unable to view list data on all pages such as Candidates, Companies, Contacts, and Job Orders. The Quick Search feature works fine, and I can browse records through it.

OpenCATS Version: Version 0.9.7.2

Installation Source: Downloaded from GitHub

Server Environment:

Platform: LAMP (Linux, Apache, MySQL, PHP)

PHP Version: (Please check the version from the phpinfo link provided)

MySQL Version: (Please check the version from the phpinfo link provided)

Full PHP Info: https://careers.srisys.com:4434/info.php

Steps to Reproduce:

  1. Install OpenCATS Version 0.9.7.2 on a LAMP server.
  2. Navigate to any list page (Candidates, Companies, Contacts, Job Orders).
  3. Observe that no list data is displayed.

Expected Behavior: The list data should be displayed on the respective pages.

Actual Behavior: The list data is not displayed on any of the list pages (Candidates, Companies, Contacts, Job Orders).

Additional Information:

The Quick Search feature works fine and returns records as expected.

Debugging output indicates that the getSQL() method in Companies.php requires six arguments, but currently zero arguments are passed.

Debugging Steps Taken:

Verified the database connection is working since records are retrieved via Quick Search.

Added debugging output to inspect the number of rows and SQL queries being executed.

Output:

Number of rows: 1 HTML data: 1 SQL data: Fatal error: Uncaught ArgumentCountError: Too few arguments to function CompaniesDataGrid::getSQL(), 0 passed in /var/www/html/OpenCATS/modules/companies/Companies.tpl on line 84 and at least 6 expected in /var/www/html/OpenCATS/lib/Companies.php:928 Stack trace: #0 /var/www/html/OpenCATS/modules/companies/Companies.tpl(84): CompaniesDataGrid->getSQL() #1 /var/www/html/OpenCATS/lib/Template.php(115): include('/var/www/html/O...') #2 /var/www/html/OpenCATS/modules/companies/CompaniesUI.php(200): Template->display(NULL) #3 /var/www/html/OpenCATS/modules/companies/CompaniesUI.php(159): CompaniesUI->listByView() #4 /var/www/html/OpenCATS/lib/ModuleUtility.php(79): CompaniesUI->handleRequest() #5 /var/www/html/OpenCATS/index.php(272): ModuleUtility::loadModule('companies') #6 {main} thrown in /var/www/html/OpenCATS/lib/Companies.php on line 928

Image

Image

chsunil avatar Mar 03 '25 08:03 chsunil