WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Access Control
[resolved] Fatal error: Undefined class name 'self' (2 posts)

  1. itpixie
    Member
    Posted 3 years ago #

    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/

  2. itpixie
    Member
    Posted 3 years ago #

    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 is where I found my solution.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic