One of my plugins reports base64_encode
as missing. I checked my php.ini
and know that this function is working before Wordpress loads. Does Wordpress have the habit of disabling functions?
This is the code that checks for the functions:
if (!function_exists('base64_decode') || !function_exists('base64_encode')) {
exit("base64 missing");
}
This works if placed before Wordpress loads. The exact same code is run by the plugin and it fails. What could have happened in-between.
One of my plugins reports base64_encode
as missing. I checked my php.ini
and know that this function is working before Wordpress loads. Does Wordpress have the habit of disabling functions?
This is the code that checks for the functions:
if (!function_exists('base64_decode') || !function_exists('base64_encode')) {
exit("base64 missing");
}
This works if placed before Wordpress loads. The exact same code is run by the plugin and it fails. What could have happened in-between.
Share Improve this question asked Jan 21, 2020 at 14:54 FedericoFederico 1011 bronze badge1 Answer
Reset to default 0WP by itself does not disable those functions. This is a security mechanism of one of your plugins or theme that is disabling them. It is common practice for malicious code to be hidden by encoding it, and then decoding and executing it when the site loads.
You can disable plugins one by one until the function works to determine which one is disabling it. Logically any security related plugins would likely be the one's doing it, and with good reason, i.e. Wordfence, Sucuri, etc.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744815512a4595299.html
评论列表(0条)