WordPress.org

Support

Support » Plugins and Hacks » Stop Spammers Spam Prevention » Stop Spammer Registrations Plugin Undefined index error

Stop Spammer Registrations Plugin Undefined index error

  • Hi Keith,

    Ran into undefined index issues on Centos with Nginx and php-fpm install.

    Lines 284 to 289 in stop-spammer-registrations.php

    From…

    $sname=$_SERVER['SCRIPT_URL'];
    	if (empty($sname)) $sname=$_SERVER['SCRIPT_URI'];
    	if (empty($sname)) $sname=$_SERVER['ORIG_PATH_INFO'];
    	if (empty($sname)) $sname=$_SERVER['REDIRECT_SCRIPT_URL'];
    	if (empty($sname)) $sname=$_SERVER['REDIRECT_SCRIPT_URI'];
    	if (empty($sname)) $sname=$_SERVER['QUERY_STRING'];

    To…

    $sname=(isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : '');
    	if (empty($sname)) $sname=(isset($_SERVER['SCRIPT_URI']) ? $_SERVER['SCRIPT_URI'] : '');
    	if (empty($sname)) $sname=(isset($_SERVER['ORIG_PATH_INFO']) ? $_SERVER['ORIG_PATH_INFO'] : '');
    	if (empty($sname)) $sname=(isset($_SERVER['REDIRECT_SCRIPT_URL']) ? $_SERVER['REDIRECT_SCRIPT_URL'] : '');
    	if (empty($sname)) $sname=(isset($_SERVER['REDIRECT_SCRIPT_URI']) ? $_SERVER['REDIRECT_SCRIPT_URI'] : '');
    	if (empty($sname)) $sname=(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '');

    Fixed the notices. Don’t know if it’s still doing what you want because I’m not a programmer (yet…)

    Thanks,
    -TJ

    http://wordpress.org/plugins/stop-spammer-registrations-plugin/

Viewing 1 replies (of 1 total)
  • Plugin Author kpgraham

    @kpgraham

    Already fixed in version 5.2 available at blogseye.com. I need to fix a couple of other things and I will update the plugin at wordpress.

    Keith

Viewing 1 replies (of 1 total)
  • The topic ‘Stop Spammer Registrations Plugin Undefined index error’ is closed to new replies.
Skip to toolbar