Title: [Plugin: WordPress Access Control] Fatal error: Undefined class name &#039;self&#039;
Last modified: August 19, 2016

---

# [Plugin: WordPress Access Control] Fatal error: Undefined class name 'self'

 *  Resolved [itpixie](https://wordpress.org/support/users/itpixie/)
 * (@itpixie)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-wordpress-access-control-fatal-error-undefined-class-name-self/)
 * Hi,
    After installing the plugin for my site and activating it, I set one of 
   the pages to Members Only and gave access to Administrator (me). When I try to
   access the page, I receive the following error:
 * Fatal error: Undefined class name ‘self’ in /nfs/home/f/fireflysigns.com/public_html/
   sandbox/dealers/wp-content/plugins/wordpress-access-control/wordpress-access-
   control.php on line 254
 * When I try to access the Pages section in the control panel, I receive the same
   error. The only way I can access my Pages again is to deactivate the plugin… 
   Please advice…
 * Thank you,
    Amy
 * [http://wordpress.org/extend/plugins/wordpress-access-control/](http://wordpress.org/extend/plugins/wordpress-access-control/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [itpixie](https://wordpress.org/support/users/itpixie/)
 * (@itpixie)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-wordpress-access-control-fatal-error-undefined-class-name-self/#post-1847875)
 * BTW, I’m using PHP 4…
 * And I found a fix for the problem…
 * I changed the code
    `! self::check_conditions( $post->ID )` to `! WordPressAccessControl::
   check_conditions( $post->ID )`
 * By referring the class “WordPressAccessControl” specific by name (instead of 
   using “self”) solved the problem.
 * And [here](http://bytes.com/topic/php/answers/448188-php-4-compatible-switchover-help-needed)
   is where I found my solution.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WordPress Access Control] Fatal error: Undefined class name '
self'’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-access-control.svg)
 * [WordPress Access Control](https://wordpress.org/plugins/wordpress-access-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-access-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-access-control/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-access-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-access-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-access-control/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [itpixie](https://wordpress.org/support/users/itpixie/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-wordpress-access-control-fatal-error-undefined-class-name-self/#post-1847875)
 * Status: resolved