Hi,

When I add a new server with the Mail API module, I receive the following error message:



    * AES module made a new key since one couldn't be found by using the database storage method.
    * The server configuration has been saved.


    * warning: mcrypt_generic() [function.mcrypt-generic]: An empty string was passed in C:\xampp\htdocs\mysite.com\sites\all\modules\aes\aes.module on line 494.
    * warning: mcrypt_generic() [function.mcrypt-generic]: An empty string was passed in C:\xampp\htdocs\mysite.com\sites\all\modules\aes\aes.module on line 494.

I use Drupal 6.9 with Mail API 6.x-1.0.

Does anybody know what's the reason for this error?

Regards,
Stefan

Comments

easyfit’s picture

Hi Stefan

Thanks for the bug report, but I'm pretty sure this is a bug in the Mail API module and not in AES. The Mail API module sends an empty string to be encrypted, which it probably shouldn't do. Granted this module (AES) should probably handle that more elegantly by bailing before it reaches the actual encryption stage - to avoid generating a PHP-error, but it's not really a bug.

The message about a new key being generated is normal if that was the first time the AES module performed an encryption. But if you're getting that message more than once, then there might be a problem with your installation, which I'd be happy to help you find.

design.er’s picture

Status: Active » Fixed

Thanks a lot for your quick reply.
You are right, the error message came only the first time up, so I think we can close this thread.

Thank you very much for your help. :)

easyfit’s picture

Status: Fixed » Closed (fixed)

No problem :)