There was a problem loading the comments.

MongoDB password encryption not working starting from 23.252.1

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Original Question or Issue:

The MongoDB password encryption is not working after upgrading to 23.252.1

 

Environment:

Product - On Premises

Version - 23.252.1

Platform - Windows/Linux

 

 

Steps to Reproduce:

NA

 

Error or Log Message:

PHP logs show

S28-Nov-2025 13:56:02 America/Chicago] PHP Fatal error:  Uncaught Error: Undefined constant "CodeLathe\Core\Common\Security\Encryption\SODIUM_CRYPTO_SECRETBOX_NONCEBYTES" in C:\xampp\htdocs\src\Core\Common\Security\Encryption\SodiumEncrypter.php:0

Stack trace:

#0 C:\xampp\htdocs\src\Core\Common\Security\AppEncrypter.php(0): CodeLathe\Core\Common\Security\Encryption\SodiumEncrypter->decrypt()

#1 C:\xampp\htdocs\src\Core\Common\String\Interpolation\EncryptedSecretInterpolator.php(0): CodeLathe\Core\Common\Security\AppEncrypter->decrypt()

#2 C:\xampp\htdocs\src\Core\Common\Utility\Utility.php(0): CodeLathe\Core\Common\String\Interpolation\EncryptedSecretInterpolator->interpolate()

#3 C:\xampp\htdocs\src\Core\Infrastructure\Settings\SettingsDataStore.php(0): CodeLathe\Core\Common\Utility\Utility::getMongoConnection()

#4 C:\xampp\htdocs\src\Core\Infrastructure\Settings\SettingsDataStore.php(0): CodeLathe\Core\Infrastructure\Settings\SettingsDataStore->makeConnection()

#5 C:\xampp\htdocs\src\Core\Infrastructure\Settings\SettingsManager.php(0): CodeLathe\Core\Infrastructure\Settings\SettingsDataStore->isDatabaseInitialized()

#6 C:\xampp\htdocs\src\runtime.php(0): CodeLathe\Core\Infrastructure\Settings\SettingsManager->isDatabaseInitialized()

#7 C:\xampp\htdocs\src\runtime.php(2): sg_load()

#8 C:\xampp\htdocs\public\index.php(19): require_once('...')

#9 {main}

 thrown in C:\xampp\htdocs\src\Core\Common\Security\Encryption\SodiumEncrypter.php on line 0

 

Defect or

Enhancement Number:

FCL-6079

 

Cause:

Sodium module not loaded

 

Resolution or

Workaround:

Add the Sodium module to be loaded by the Apache:

  • Edit the file xampp\apache\conf\extra\httpd-xampp.conf

  • Add line under PHP module setup:  LoadFile "/xampp/php/ext/php_sodium.dll"

  • Restart the Apache server.

 

Notes:


Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© FileCloud