Blank Screen after LDAP enabled

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
maikj
Posts: 5
Joined: Fri May 25, 2007 9:32 am

Blank Screen after LDAP enabled

Post 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?
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
maikj
Posts: 5
Joined: Fri May 25, 2007 9:32 am

Post 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?
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
maikj
Posts: 5
Joined: Fri May 25, 2007 9:32 am

Post 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
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
maikj
Posts: 5
Joined: Fri May 25, 2007 9:32 am

Post by maikj »

Here it is:

require_once(PMF_INCLUDE_DIR.'dataldap.php');
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post 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
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply