This error was thrown after adding form ID's to "List form_id's, one per line" on "admin/config/encrypt-submissions"

Deprecated function: Function split() is deprecated in jCryption->decrypt() (line 638 of C:\xampp\htdocs\drupal\sites\all\modules\encrypt_submissions\jcryption\jCryption.php).

CommentFileSizeAuthor
#2 jCryption.php16.33 KBjspotswood

Comments

richardp’s picture

Status: Active » Closed (works as designed)

Hello,

That isn't so much an error as just a deprecated message. If you adjust your PHP error_reporting level to not show them, then it won't bother you again. But either way, there isn't anything I can do outright, except notify the maintainer of jCryption (which I will do), since that's part of his library.

I'll post back here if I hear back from him. Until then, I'm going to mark this issue as "works as designed."

Thanks for trying out the module!
Richard

jspotswood’s picture

Title: Error thrown » Easy fix
StatusFileSize
new16.33 KB

I do not like the idea of adjusting the PHP error_reporting level to not show this message.
A very simple solution is to modify the jCryption.php code to replace "split" with "explode". Works a treat.
I have attached my modified jCryption.php file (which was renamed to jCryption.php_.txt), but it is equally as easy to make the change yourself. :)
This modified file was from jCryption-1.1.zip.

jspotswood’s picture

Title: Easy fix » Error thrown by jCryption 1.1 library

Changing the title to be more descriptive about the problem.