Page 1 of 1

Upgrade from 2.9.10 to 3.1.7 throws error

Posted: Thu Oct 27, 2022 8:42 pm
by edc_jelie

Code: Select all

phpMyFAQ Fatal error
Uncaught exception: 'TypeError'

Message: 'Return value of phpMyFAQ\Configuration::isLdapActive() must be of the type bool, null returned'

Stack trace:

#0 /var/www/phpmyfaq/src/Bootstrap.php(148): phpMyFAQ\Configuration->isLdapActive()
#1 /var/www/phpmyfaq/setup/update.php(36): require('/var/www/phpmyf...')
#2 {main}
Thrown in '/var/www/phpmyfaq/src/phpMyFAQ/Configuration.php' on line 350
I followed the original documentation here: https://www.phpmyfaq.de/docs/3.1

We only have default templates and we have no attachments, data or images. Those folders do not even exist in our installation.

I copied the database.php and ldap.php to the new ./config/ folder, but when going to http://server/setup/update.php we get the error.

PHP 7.4.32 is installed.

Should I upgrade to the latest version of 2.9 or perhaps 3.0 first, or is there something else I should look at? Thank you!

Re: Upgrade from 2.9.10 to 3.1.7 throws error

Posted: Sat Oct 29, 2022 7:47 am
by Thorsten
Hi,

let me check the code. Do you use LDAP?

bye
Thorsten

Re: Upgrade from 2.9.10 to 3.1.7 throws error

Posted: Mon Oct 31, 2022 4:17 pm
by edc_jelie
Hello,

Yes, we do.

Thanks!

Re: Upgrade from 2.9.10 to 3.1.7 throws error

Posted: Tue Nov 01, 2022 9:41 am
by Thorsten
Hi,

okay, this explains the error.

We added a new LDAP configuration frontend with phpMyFAQ 3.0 and we moved the LDAP configuration from the old config/ldap.php file to the admin configuration the backend.

Here's the fix: please disable the LDAP support for the upgrade, then add the configuration in the admin configuration panel and enable LDAP support again.

bye
Thorsten

Re: Upgrade from 2.9.10 to 3.1.7 throws error

Posted: Mon Feb 27, 2023 6:11 pm
by edc_jelie
Sorry for the late response, thank you for your help. I was able to complete the upgrade.