• Cannot use Download Monitor as it generates a 500 Internal Error.
    Please do not tell me to enter host or site code. Am not a programmer and have no interest in learning.
    Have spent 4 days messing with this and will move on to another plugin that works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m sorry to hear that! This sounds like either a plugin conflict or an issue with your host. Since you’ve stated you have no interested in trying to debug this and you’ve switched to another plugin, I can only thank you for the feedback. I hope you’ve found a plugin that does work for you!

    Same problem here, likely PHP7 related.

    FastCGI: server “/[…]/cgi-bin/php5-fcgi-*-443-doma.in” stderr: PHP message: PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /[…]/wp-content/plugins/email-before-download/download.php on line 253

    The above is repeated a number of times, then things break as follows:

    FastCGI: comm with server “/[…]/cgi-bin/php5-fcgi-*-443-doma.in” aborted: error parsing headers: malformed header ‘: Array’

    • This reply was modified 7 years, 9 months ago by dmgeurts. Reason: additional information

    Solution for PHP7:

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

    With:
    $match[1] = preg_replace_callback('/(?<=^|[\x09\x20\x2D])./', create_function('$m','return strtoupper($m[0]);'), strtolower(trim($match[1])) );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘500 Internal Error’ is closed to new replies.