Page 1 of 1

mdecrypt_generic(): An empty string was passed

Posted: Fri Feb 27, 2015 11:41 pm
by AcaciaIT
I have a clean install/updated of Server 2008 R2 x64 (VMware VM for testing)
WAMP Server x64 (Apache : 2.4.9 MySQL : 5.6.17 PHP : 5.5.12 PHPMyAdmin : 4.1.14 SqlBuddy : 1.3.3 XDebug : 2.2.5)
PacsOne Premium 6.4.4 x64
dotNET 4.5.2
VC++ Redist 2005, 2008, 2012

I correctly get the anti-spam image and am able to log in as root, however after logging in, the following appears at the top of the pages:

Code: Select all

( ! ) Warning: mdecrypt_generic(): An empty string was passed in C:\Program Files\PacsOne\php\database.php on line 1981 
Call Stack 
# Time Memory Function Location 
1 0.0000 274816 {main}( ) ..\home.php:0 
2 0.0000 293056 require_once( 'C:\Program Files\PacsOne\php\locale.php' ) ..\home.php:11 
3 0.0000 1381528 MyConnection->__construct( ) ..\locale.php:55 
4 0.0000 1381928 mdecrypt_generic ( ) ..\database.php:1981 
For kicks and giggles, I've tried with IE 8 and IE 11, no difference.

Re: mdecrypt_generic(): An empty string was passed

Posted: Sat Feb 28, 2015 9:32 pm
by pacsone
Does the password happen to be blank/empty for this particular username you were trying to login with?

Re: mdecrypt_generic(): An empty string was passed

Posted: Mon Mar 02, 2015 9:56 pm
by AcaciaIT
Yes, since it's a lab setup for testing, left it with the default blank root password (not exposed to internet yet)

I'm guessing I just need to set a password then to resolve?

Re: mdecrypt_generic(): An empty string was passed

Posted: Mon Mar 02, 2015 10:04 pm
by AcaciaIT
I added an additional test user and set a password, error isn't present on that user. So looks like it was just a blank password issue. Thanks!

Re: mdecrypt_generic(): An empty string was passed

Posted: Tue Mar 03, 2015 3:56 pm
by pacsone
If you must use a blank password (not recommended), you'd need to disable the display of PHP Warning messages by modifying the following line in your PHP.INI configuration file:

Code: Select all

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING
Remember to restart Apache/IIS after saving the file for the change to take effect.