1.5.4 "Add Content" and "Ask Question" B

Please report bugs here!

Moderator: Thorsten

Post Reply
fish
Posts: 10
Joined: Thu Mar 03, 2005 3:46 pm

1.5.4 "Add Content" and "Ask Question" B

Post by fish »

Selecting these links results in:

Fatal error: Call to a member function on a non-object in E:\Program Files\phpMyFAQ\inc\functions.php on line 1823

Works normally under 1.5.3.
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

did you enabled LDAP-Support?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fish
Posts: 10
Joined: Thu Mar 03, 2005 3:46 pm

Don't think so.

Post by fish »

The Admin "Edit configuration" indicates that LDAP support is disabled (the default). Is this what you mean?
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this error occurs, when LDAP is enabled. Can you post the last 15 lines of the file inc/config.php here?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fish
Posts: 10
Joined: Thu Mar 03, 2005 3:46 pm

Hmmmm.

Post by fish »

Running update.php with this version was uneventful (claimed to complete normally). But config.php looks like update.php inserted some bogus things:

// Ban these IPs
$PMF_CONF["bannedIP"] = "";

// Should the template engine parse PHP code? (default: disabled)
$PMF_CONF["parse_php"] = "<br />
<b>Notice</b>: Undefined index: parse_php in <b>E:\Program Files\phpMyFAQ\install\update.php</b> on line <b>303</b><br />";

// Activate mod_rewrite support? (default: disabled)
$PMF_CONF["mod_rewrite"] = "<br />
<b>Notice</b>: Undefined index: mod_rewrite in <b>E:\Program Files\phpMyFAQ\install\update.php</b> on line <b>304</b><br />";

// Do you want to enable LDAP support? (default: disabled)
$PMF_CONF["ldap_support"] = "<br />
<b>Notice</b>: Undefined index: ldap_support in <b>E:\Program Files\phpMyFAQ\install\update.php</b> on line <b>305</b><br />";

?>
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Hmmmm.

Post by Thorsten »

Hi,

that's no good:
fish wrote:// Should the template engine parse PHP code? (default: disabled)
$PMF_CONF["parse_php"] = "<br />
<b>Notice</b>: Undefined index: parse_php in <b>E:\Program Files\phpMyFAQ\install\update.php</b> on line <b>303</b><br />";
Please try to save the the config one more time in the admin section and try it again. If that didn't worked, please remove the errors by hand from the config.php file.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fish
Posts: 10
Joined: Thu Mar 03, 2005 3:46 pm

Fixed this Manually

Post by fish »

Edited config.php manually to read
.
.
.
.
// Should the template engine parse PHP code? (default: disabled)
$PMF_CONF["parse_php"] = "";

// Activate mod_rewrite support? (default: disabled)
$PMF_CONF["mod_rewrite"] = "";

// Do you want to enable LDAP support? (default: disabled)
$PMF_CONF["ldap_support"] = "";

?>

and it seems to work okay. Apparently update.php clobbered it; resetting from Admin section either sets it to TRUE or eliminates these lines altogether.
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I'll fix the update script.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply