Page 1 of 1

Blank Screen after LDAP enabled

Posted: Fri May 25, 2007 9:36 am
by maikj
Hi all,

I´m using phpMyFAQ 2.0.0 on Ubuntu Feisty.

Everything is running smooth until I enable LDAP support (Windows ADS).

After enabling it I get a blank screen when I open the phpMyFAQ webside.

Any idea what´s wrong or is there a debug option?

Posted: Fri May 25, 2007 9:43 am
by Thorsten
Hi,

this is sadly a known bug. Please try the CVS stable snapshot, I fixed some LDAP issues yesterday.

bye
Thorsten

Posted: Fri May 25, 2007 10:03 am
by maikj
Ok, I tried it, but it´s still the same.

Is there a log I can send you to find out the error?

Posted: Fri May 25, 2007 10:04 am
by Thorsten
Hi,

you could enable the debug output in inc/Init.php and post the results here.

bye
Thorsten

Posted: Fri May 25, 2007 10:14 am
by maikj
Hi,

this is the debug log.

Warning: require_once(/var/www/faq/incdataldap.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/faq/inc/Init.php on line 102

Fatal error: require_once() [function.require]: Failed opening required '/var/www/faq/incdataldap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/faq/inc/Init.php on line 102

Posted: Fri May 25, 2007 12:27 pm
by Thorsten
Hi,

can you please post line 102 of the file inc/Init.php? Thanks.

bye
Thorsten

Posted: Fri May 25, 2007 1:42 pm
by maikj
Here it is:

require_once(PMF_INCLUDE_DIR.'dataldap.php');

Posted: Fri May 25, 2007 1:51 pm
by Thorsten
Hi,

sorry, the daily snapshot seems to be broken... here's the corrected code for you in inc/Init.php line 98:

Code: Select all

//
// Connect to LDAP server, when LDAP support is enabled
//
if ($faqconfig->get('main.ldapSupport') && file_exists(PMF_INCLUDE_DIR.'/inc/dataldap.php')) {
    require_once(PMF_INCLUDE_DIR.'/dataldap.php');
    require_once(PMF_INCLUDE_DIR.'/Ldap.php');
    $ldap = new PMF_Ldap($PMF_LDAP['ldap_server'], $PMF_LDAP['ldap_port'], $PMF_LDAP['ldap_base'], $PMF_LDAP['ldap_user'], $PMF_LDAP['ldap_password']);
} else {
    $ldap = null;
}
bye
Thorsten