email-before-download

Description

This plugin has been closed and is no longer available for download.

Reviews

Almost perfect

The install is easy, the download works great.. but the PDF files are damaged, and will not open…

Problems with PHP 7

Firstly, thank you for providing this plugin free of charge.

Unfortunately it seems to break with PHP7.

FILE: /wp-content/plugins/email-before-download/download.php
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
 253 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
--------------------------------------------------------------------------------------------------

The line in question from download.php is:

$match[1] = preg_replace('/(?<=^|[\x09\x20\x2D])./e', 'strtoupper("\0")', strtolower(trim($match[1])));

Please could the plugin be updated ASAP for PHP7 compatibility by the author?

Failing that, if anyone else knows how to correct this for PHP7 with a simple patch, I’d love to hear about it!

Thanks,

Luke

Read all 33 reviews

Contributors & Developers

“Email Before Download” is open source software. The following people have contributed to this plugin.

Contributors