• 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

    https://www.ads-software.com/plugins/stop-spammer-registrations-plugin/

Viewing 1 replies (of 1 total)
  • 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.