• 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

    • This topic was modified 7 years, 3 months ago by lukescammell. Reason: Stars rating was too high considering the issue!
    • This topic was modified 7 years, 3 months ago by lukescammell. Reason: Code line was copy and pasted incorrectly!
    • This topic was modified 7 years, 1 month ago by lukescammell. Reason: Politeness
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mandsconsulting

    (@mandsconsulting)

    Thank you for the info @lukescammell. And, of course, thank you @foliovision for your support. We do indeed just provide the plugin for free since we originally thought it would be helpful to the community that has provided us WordPress for free. Thankfully, it does seem it has been helpful to many people. I hope you will consider updating your review when we update the plugin for PHP7 support, which we will plan to do as soon as we have some spare time to do so (within the coming days hopefully).

    Plugin Author mandsconsulting

    (@mandsconsulting)

    Hi All,

    Thank you again for your help and inputs. We have made the minor changes, tested in our PHP 7 environment, and released the update to the WordPress plugins repository. I hope the new version fixes any issues.

    Plugin Author mandsconsulting

    (@mandsconsulting)

    Hi @lukescammell,

    Just wanted to follow up here. Were you able to confirm if our release fixed any issues experienced with PHP7? Please let us know if you found any others.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problems with PHP 7’ is closed to new replies.