Title: Fatal Error
Last modified: August 21, 2016

---

# Fatal Error

 *  Resolved [rwilki](https://wordpress.org/support/users/rwilki/)
 * (@rwilki)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-965/)
 * I had this working on previous server, but not I can’t activate.
 * Warning: require_once(__DIR__/includes/LLC_Options_Page.class.php) [function.
   require-once]: failed to open stream: No such file or directory in /home/country/
   public_html/wp-content/plugins/limit-login-countries/limit-login-countries.php
   on line 50
 * Anything I can do?
 * [http://wordpress.org/plugins/limit-login-countries/](http://wordpress.org/plugins/limit-login-countries/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Dirk Weise](https://wordpress.org/support/users/wedi/)
 * (@wedi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-965/#post-4268453)
 * 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](https://wordpress.org/support/users/wedi/)
 * (@wedi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-965/#post-4268472)
 * 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](http://php.net/eol.php)
    [2] [http://wordpress.org/about/requirements/](http://wordpress.org/about/requirements/)
 *  Thread Starter [rwilki](https://wordpress.org/support/users/rwilki/)
 * (@rwilki)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-965/#post-4268508)
 * 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](https://wordpress.org/support/users/wedi/)
 * (@wedi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-965/#post-4268509)
 * 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.

 * ![](https://ps.w.org/limit-login-countries/assets/icon-256x256.jpg?rev=990276)
 * [Limit Login Countries](https://wordpress.org/plugins/limit-login-countries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/limit-login-countries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/limit-login-countries/)
 * [Active Topics](https://wordpress.org/support/plugin/limit-login-countries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/limit-login-countries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/limit-login-countries/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Dirk Weise](https://wordpress.org/support/users/wedi/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-965/#post-4268509)
 * Status: resolved