Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dirk Weise

    (@wedi)


    The reason for this failure is the pretty old PHP version on your server. The magic constant __DIR__ was introduced in PHP 5.3.0 so that seems to be the minimum PHP version requirement for this plugin atm.
    Try changing line 50 of /home/country/public_html/wp-content/plugins/limit-login-countries/limit-login-countries.php: replace __DIR__ with dirname(__FILE__). Please report what PHP version you are using and whether the plugin is working after that change. Thank you!

    Dirk

    Plugin Author Dirk Weise

    (@wedi)


    I did some research. PHP 5.2 reached its end of life (aka no more security patches) on 6 Jan 2011 [1] but WordPress still supports PHP 5.2.4 [2]. It seems I should support version 5.2.4, but I see no real need for it. You use this plugin if you care about security and probably it’s not too difficult to break into a server running PHP 5.2 or even less.

    [1] http://php.net/eol.php
    [2] http://wordpress.org/about/requirements/

    Thanks for your help. Unfortunately, it gave me a synatax type error.

    unexpected T_FUNCTION on page 194 of Options_Page.class.php
    My version of php is 5.2x so I guess I’ll need to have that updated. I just hope it doesn’t cause problems with my site.

    Thanks again,
    Bob

    Plugin Author Dirk Weise

    (@wedi)


    ok, that’s another newer feature I’m using: Closures. They became available in PHP 5.3, too.

    I really suggest to update. If you absolutely can’t, post it here and I’ll try to find some time to make my plugin compatible.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error’ is closed to new replies.