Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in ~/public_html/wp-includes/functions.php on line 3497
PLUGINDIR is depcreated. Has to be replaced with WP_PLUGIN_DIR
Old:
load_plugin_textdomain(‘image-captcha’, PLUGINDIR.’/’.dirname(plugin_basename(__FILE__)));
plugin_basename might be out of date too. If you turn on debug mode, you’ll see the errors.
]]>Notice: Undefined index: act in ~/wp-content/plugins/image-captcha/image-captcha.php on line 69
Granted you don’t see this if debug mode is off, but it is nice to be able to run websites in debug mode. Also it would slightly help performance if this was fixed.
Old code:
public function action_init()
{
if($_GET['act'] == 'refresh-image-captcha') {
echo $this->image();
die;
}
}
Fixed code:
public function action_init()
{
if(!empty($_GET['act']) && $_GET['act'] == 'refresh-image-captcha') {
echo $this->image();
die;
}
}
]]>
[10-Oct-2014 15:02:05 UTC] PHP Warning: array_search() expects parameter 2 to be array, null given in /public_html/wp-content/plugins/image-captcha/image-captcha.php on line 210
^ The error_log is not filled with this, so it must happen very rarely. Might want to check the values before they get to the array_search?
]]>So I am locked out of my own site. It was quite clearly a carrot, and a shrimp and a fortune cookie, but none of those answers were accepted. How do I get rid of image captcha now that I am locked out? Preferably using ftp.
]]>