WordPress.org

Ready to get started?Download WordPress

Forums

Stop Spammers
Stop Spammer Registrations Plugin Undefined index error (2 posts)

  1. SiteDesignUSA
    Member
    Posted 7 months ago #

    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/

  2. kpgraham
    Member
    Plugin Author

    Posted 7 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic