Can you help me with this please?
Here is the error:
Parse error: parse error in /home/tekwh0re/public_html/wp/wp-content/plugins/GeoIP.php on line 53
Is that the only error message you get? How are you using the plugin? Could you post your code (the part using the plugin)
<?php if ($comments) { ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) { ?>
<li id="comment-<?php comment_ID() ?>">
<img src="<?php gravatar("R",60,"http://www.tekwh0re.net/images/dookie.jpg"); ?>alt="" align="left" /><?php comment_text() ?>
<?php comment_type(); ?> <?php _e("by"); ?> <?php comment_author_link() ?> <img src="/flag/<?php echo strtolower(get_geoip_country_code())?>.gif" alt="<?php the_geoip_country_name()?>" />
<?php if (comment_subscription_status()) { echo "(subscribed to comments)"; } ?>
— <?php comment_date() ?> @ "><?php comment_time() ?> </cite> <?php edit_comment_link(__("Edit This"), ' |'); ?>
Hello Folks
I’ve got the same error as Tek but because i use a windows server mt paths are slightly different
“Parse error: parse error, unexpected T_VARIABLE in c:\inetpub\wwwroot\wordpress\wp-content\plugins\GeoIP.php on line 53”
Any idea’s
Cheers
James
http://home.puerilis.co.uk/wordpress/index.php
I think I found the bug, in geoip.inc there’s a trailing space after the ?>
Remove the space, and please tell me if that fixed the problem. (I’ve updated the zip)
If a plugin is causing problems, then use your ftp or cpanel to rename the plugin file – that will stop it loading.
It may also cause errors if you are using code from that plugin, so you will need to edit whichever files you have to remove such code.
The error is that you cannot pass variables as default argument values (see http://www.php.net/manual/en/functions.arguments.php).
In line 53:
function get_geoip_country_code($ip = $_SERVER["REMOTE_ADDR"]) { should be changed to something like:
function get_geoip_country_code($ip = NULL) {
if (is_null($ip)) {
$ip = $_SERVER["REMOTE_ADDR"];
}
Also note that there is a missing closing parenthesis in all your realpath calls.
There is also this plugin to display the country code or flag. It may be easier to use for some people, (there is no mucking with mod-rewrite).
http://frenchfragfactory.net/ozh/archives/2004/08/27/ip-to-nation-plugin/
I have activate geo ip,to my blog,and now,when I go to my homepage,I see:
Parse error: parse error, unexpected T_VARIABLE in /home/delfinsb/public_html/wp-content/plugins/GeoIP/GeoIP.php on line 53
If I go in my space ftp,and I del the directory GeoIP,in my homepage,I see another error… What can I do?