Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Fatal error with role scoper 1.3.16 and WP 3.0.2

UserPost

2:06 pm
December 11, 2010


Jessica

Member

posts 32

1

Hello!

I just updated my blog to WP 3.0.2. So far everything works fine with the standard theme. After activating my plugins including Role Scoper 1.3.16 and the theme where I use it, all I get on each page of my blog is the following error message:

Fatal error: Using $this when not in object context in /www/htdocs/w0064309/blog/wp-content/plugins/role-scoper/template-interceptor_rs.php on line 159

The admin panel still works fine.

The error still occurs when all other plugins except Role Scoper are deactivated.
It seems that the function is_restricted_rs( ); is the reason. I add a padlock image before the title of each post if it is restricted:

    <?php
                echo "\n\n<h3>";                
                if (is_restricted_rs()) { ?>
                <img src="<?php bloginfo('url'); ?>/wp-content/themes/schattenspiele/gfx/padlock.gif" alt="gesch&uuml;tzter Eintrag" />
                <?php }  

When I delete the code for that, it works.

Any idea how to solve the problem?

Am I the only person who has this problem?

3:31 pm
December 11, 2010


Kevin

Admin

posts 2503

2

Sorry about that. The template functions is_restricted_rs() and is_teaser_rs() are fixed in Role Scoper 1.3.17.

4:50 pm
December 11, 2010


Jessica

Member

posts 32

3

Now it works. Smile

Thanks, Kevin. If there was an award for the fastest and most caring developer, you would totally deserve it. Wink


About the Agapetry forum

Currently Online:

15 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin