On line 16 of the file referred to in the error it is looking for the function “mcrypt_create_iv()”; but is wrapped in an if statement checking for “random_bytes()” first wether “mcrypt_create_iv()” even existed to begin with.
if (function_exists('random_bytes')) {
$randBytes = random_bytes(16);
} elseif (function_exists('mcrypt_create_iv')) {
srand();
$randBytes = mcrypt_create_iv(16);
} elseif (function_exists('openssl_random_pseudo_bytes')) {
$wasItSecure = false;
$randBytes = openssl_random_pseudo_bytes(16, $wasItSecure);
if ($wasItSecure === false) {
return false;
}
} else {
return false;
}
Tested on PHP 7.2 with the Cloudflare plugin Version: 3.3.2
]]>Here’s some excerpts from Cloudflare support:
Me: When do you plan to update this plugin so we can test our sites before EOL?
Them: I am afraid I do not have good news. We have no plans in updating this plugin in short term. I have linked this ticket to a master issue where we are tracking such requests.
Me: As for the plugin, are you going to allow pull requests so that others can make the updates or is it going to have to be forked?
Them: I will check the possibility of pull requests by the community and get back to you as soon as possible.
Last response was December 2, 2018.
]]>