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

Email authentication errors (possibly) resolved by removing depreciated php function?

Thread began 7/23/2021 3:11 pm by art226587 | Last modified 8/19/2021 9:56 am by Ray Borduin | 185 views | 19 replies |

art226587

Email authentication errors (possibly) resolved by removing depreciated php function?

I was getting email authentication errors recently and noticed that there was an error in my server log about a depreciated php function (as of PHP 7.4.0) called get_magic_quotes_gpc(). I simply removed that and now the emails are going through again and no errors logged. Might this function do anything that I should be aware of that could be causing other problems or do you think it's safe to simply remove? Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

It is safe to remove. It is a really old feature that I would always recommend having turned off and has been turned off by default for more than a decade.

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

art226587

okay, thanks. It's in all of the email templates that DA generated, like "webassist/email/templates/WebAssist-Default/Blank.php."

The code looks like this:

<?php
foreach( $_POST as $pkey => $pval ){
if (!RemoveValue($pkey,$remove,$removeBegins,$removeEnds,$removeIncludes)) {
if (get_magic_quotes_gpc()) $pval = stripslashes((is_array($pval)?implode(", ",$pval):$pval));
?>
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;"><?php echo(str_replace("_"," ",$pkey)); ?>:</th>
<td style="font-size: 12px; padding: 3px;"><?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))); ?></td>
</tr>
<?php
}
}
?>



I just removed the part that says "if (get_magic_quotes_gpc())" and the email errors went away.

Sign in to reply to this post

Ray BorduinWebAssist

Yes... we have already removed that line in the most recent version of the extension.

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

art226587

I've got the latest version installed and it's still inserting that into my email templates.

Sign in to reply to this post

Ray BorduinWebAssist

I checked and the code definitely isn't there in the latest version. Perhaps your files aren't being overwritten. Are you trying it on a new page? Did you delete the old file first? Maybe your re-installation didn't work properly.

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

art226587

I'm seeing this in a new file with a new project in DW, so it would have nothing to overwrite. The file I downloaded and installed is DataBridge_235.zxp. Is that the latest version? Is there a way to tell which version is installed from within the app?

Sign in to reply to this post

Ray BorduinWebAssist

That is odd. And you reinstalled recently? That would appear to be the latest version, so I'm not sure how that is happening. I checked the source code for the project and that code was removed. If you want to set up a screen sharing session I could go in and see what is going on.

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

art226587

That would be great. I'm pretty much around today and tomorrow. Let me know if either works for you.

Sign in to reply to this post

Ray BorduinWebAssist

Just call me using the number at the bottom of every page of this website when you are available and I should be around most of the day tomorrow.

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

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...