close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

getEncrypt not working with latest release of mySQLi extension

Thread began 2/13/2021 1:47 pm by LionsMane | Last modified 2/14/2021 10:15 am by Ray Borduin | 49 views | 6 replies |

LionsMane

getEncrypt not working with latest release of mySQLi extension

WE had a custom session where you wrote some getEncrypt and getDecrypt for my sites, and I'm building a new one using the latest release of your extension (1.0.8), and now the getEncrypt function throws a 500 server error. We may need to do another screen share - I'm under a time restraint on this one. Thanks

Sign in to reply to this post

LionsMane

Sample code atttached

Trying to use the login user behavior... edited with the getEncryptedVal we've used in the past. Code enclosed in PM.

Sign in to reply to this post

Ray BorduinWebAssist

Do you have an old copy of the queryobj.php file we created?

You could probably find the getEncryptedVal function in it and copy it to the new file.

Sign in to reply to this post
Did this help? Tips are appreciated...

LionsMane

Yes, it's alread in there

This from the queryobj being used:
public function getEncryptedVal($val) {
$retVal = $val;
$salt = "";
if ($this->Salt) $salt = base64_decode($this->Salt);
if ($retVal !== "") {
$retVal = base64_encode(openssl_encrypt($val,$this->EncryptionAlgorithm,$this->EncryptionKey, OPENSSL_RAW_DATA, $salt));
}

return $retVal;
}

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to debug this. If you want to give me a call I can do screen sharing with you.

Sign in to reply to this post
Did this help? Tips are appreciated...

LionsMane

added the statement - didn't help

I added this per our conversation, but I'm still getting the error. Maybe I missed something?

<?php
if (isset($_POST["Submit"]) || isset($_POST["Submit_x"])) {
$UpdateQuery = new WA_MySQLi_Query($webcast);
}
?>

Sign in to reply to this post

LionsMane

Fixed it

I removed the submit check to just make it a simple declaration and now it all works. Thanks for your patience.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...