Page 1 of 1

Mantis on Windows displays only one issue...

Posted: 09 Feb 2006, 17:30
by n0002501
Hi,

I have a local installation of Mantis that uses MySQL on a Windows 2000 Professional desktop device. I use this to trouble shoot code changes and customizations of our enterprise Mantis install. Up until recently, the application has worked fine. However, in a recent database restore of the database from a Production snapshot, the view_all_bug_page.php now only displays a single issue...doesn't matter which project I select from the drop down list. And even that single issue is only rendered over to the Status column. The rest of the page (color legend, paging links) that appears at the bottom of the Viewing Issues segment of the page doesn't appear either. It's like the page just quits. I get similar problems when viewing an issue ( view.php page ), the list of item notes doesn't display nor do the the issue history items. However, the view_page.php does render completly, just with no listings of item notes or issue history. No errors of any kind are indicated. The Apache logs don't display anything, nothing from PHP, nothing from Mantis and nothing in MySQL. The database is pretty large at 6GB though, but it was working with the database at 4GB.

The same configuration on our test/production Linux machines works fine...aka the same Mantis codebase works fine. Other than the operating System, both are configured in the same way:
- Apache 2.0.54
- MySQL 4.1.14
- PHP 5.0.4
- Mantis 1.0.0rc3 (slight customizations)

Other things I tried:
- Thinking our code customizations might be a problem, I downloaded a Mantis 1.0.0rc5 from the web and installed it. Same issues.
- Verified that the database was ok...I can query all the tables on the mantis database.

Things to note:
- The Viewing Issues segment has the issue count correct. For one project there are 105 issues and both the Windows and Linux apps indicate that...so it looks like the database queries are working and the counts are correct.

thx in advance,

adym

Mantis on Windows displays only one issue...Solved...

Posted: 10 Feb 2006, 02:32
by n0002501
Solved the issue...I forgot we use LDAP for authentication as well as email processing. So, when I localize the Mantis application I need to use PLAIN authentication instead of LDAP. Thing is, when you do that, you also need to set the $g_use_ldap_email to a value of OFF...otherwise a function buried within the user_api.php file:

<snip>
function user_get_email( $p_user_id ) {
$t_email = '';
if ( ON == config_get( 'use_ldap_email' ) ) {
$t_email = ldap_email( $p_user_id );
}
if ( is_blank( $t_email ) ) {
$t_email = user_get_field( $p_user_id, 'email' );
}
return $t_email;
}
</snip>

With the $g_use_ldap_email = ON, it was trying to query an ldap:// service that wasn't there...

thx,

adym