OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: flushell on July 31, 2022, 02:51:49 PM

Title: [Solved]PHP error on mongodb after installation to 22.7
Post by: flushell on July 31, 2022, 02:51:49 PM
I had serveral PHP errors after installation of 22.7 (problem detected in GUI). One of them displayed here:

PHP Errors:
[31-Jul-2022 12:38:35 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/lib/php/20200930/mongodb.so (Cannot open "/usr/local/lib/php/20200930/mongodb.so"), /usr/local/lib/php/20200930/mongodb.so.so (Cannot open "/usr/local/lib/php/20200930/mongodb.so.so")) in Unknown on line 0


Turns out it was a leftover from Sensei (probably) I had once installed.
Logging in via SSH and doing a

pkg remove php74-pecl-mongodb

solved it. Thanks to the German forums (https://forum.opnsense.org/index.php?topic=29526.msg142657#msg142657).
Posting for reference.
Title: Re: [Solved]PHP error on mongodb after installation to 22.7
Post by: zz00mm on August 01, 2022, 10:24:05 PM
Thanks for the find, just completed update to 22.7 and same thing happening on my firewall. Looks like it's resolved.
Title: Re: [Solved]PHP error on mongodb after installation to 22.7
Post by: zeboulon on August 02, 2022, 03:18:42 PM
Same here. The cmd solved it. Thanx!
Title: Re: [Solved]PHP error on mongodb after installation to 22.7
Post by: KingYellow on September 17, 2022, 09:48:52 AM
Same here. After cmd and reboot this php-error no longer appeares.
Thx!