RDCarr
Forum Replies Created
-
Forum: Plugins
In reply to: [IP Geo Block] Calling IP Geo Block froma PGP fileI added the following code to my test page
echo “Define IP_GEO_BLOCK_PATH<br>”;
define( ‘IP_GEO_BLOCK_PATH’, “/home/tcsdmgr/public_html/wp/wp-content/plugins/ip-geo-block/” ); // @since 2.8echo “Require classes/class-ip-geo-block.php<br>”;
require IP_GEO_BLOCK_PATH . ‘classes/class-ip-geo-block.php’;echo “Require classes/class-ip-geo-block-util<br>”;
require IP_GEO_BLOCK_PATH . ‘classes/class-ip-geo-block-util.php’;echo “Require classes/class-ip-geo-block-load<br>”;
require IP_GEO_BLOCK_PATH . ‘classes/class-ip-geo-block-load.php’;echo “Require classes/class-ip-geo-block-apis<br>”;
require IP_GEO_BLOCK_PATH . ‘classes/class-ip-geo-block-apis.php’;echo “Require classes/class-ip-geo-block-logs<br>”;
require IP_GEO_BLOCK_PATH . ‘classes/class-ip-geo-block-logs.php’;echo “‘Requires’ completed.<br>”;
echo “Call IP_Geo_Block_Lkup::gethostbyaddr<br>”;
$DNS_Lookup = IP_Geo_Block_Lkup::gethostbyaddr( $ClientIP );
echo $DNS_lookup.”<br>”;
$logmsg .= “DNS Lookup: “.$DNSLookup.”<br>”;But when I request to page, I get
Define IP_GEO_BLOCK_PATH
Require classes/class-ip-geo-block.php
Require classes/class-ip-geo-block-util
Require classes/class-ip-geo-block-load
Require classes/class-ip-geo-block-apisFatal error: Call to undefined function get_option() in /home/tcsdmgr/public_html/wp/wp-content/plugins/ip-geo-block/classes/class-ip-geo-block.php on line 185
What am I missing?
Thank you for all your help,
Rachel CarrForum: Plugins
In reply to: [IP Geo Block] Calling IP Geo Block froma PGP fileSorry, I meant to type PHP.
I want to call an ip geo block function with an IP address and get back an associative array containing the results of ip geo block validation. I want to get back info such as country code, domain name, validation result, location, etc.
Does such a function exist?
Forum: Plugins
In reply to: [Constant Contact Form by ContactUs.com] Fatal Error – Can't Activate PluginI installed Newsletter Form as suggested but I still get “Plugin could not be activated because it triggered a fatal error.” when trying to activate Constant Contact Signup Form 3.0 with WordPress 4.2.2.
Any suggestions?
CCSF 2.2.2 works find on my WP 3.9.6.
Is there any way to install CCSF 2.2.2?