• Resolved itpixie

    (@itpixie)


    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/

Viewing 1 replies (of 1 total)
  • Thread Starter itpixie

    (@itpixie)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress Access Control] Fatal error: Undefined class name 'self'’ is closed to new replies.