Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Error with the "Page restrictions" and "Page roles"

UserPost

8:56 am
December 24, 2008


henrykleinespel

Member

posts 2

1

Hey !


I've just downloaded and installed Role Scoper onto my "plugin test blog" (because I've had some problems with other more important blogs before :-P)…so it's the last version.

I'm using WP.2.7. and MySQL is 5.0.

Hosted with 1and1 in France.

The blog's URL is http://blog.henryk.fr (redirected to http://henryk.fr/blog)


Now straight to the error message I get :

On the two pages listed in the title, in the section "Select roles to…", I get the same error message :

Fatal error: Unsupported operand types in /homepages/16/d263912724/htdocs/blog/wp-content/plugins/role-scoper/admin/admin-bulk_rs.php on line 659


I hope you will be able to solve the problem. As I've seen you're pretty quick on such things (and that's great ! especially since you seem to be working on this alone !).

Happy christmas !


Henry Kleinespel.

12:57 pm
December 24, 2008


Kevin

Admin

posts 2402

2

Since I can't currently reproduce this on my installation, please try the following and let me know if it makes any difference. It may be that your server's php configuration makes it intolerant of something in that line of code. Edit plugins/role-scoper/admin/admin-bulk.php as follows:

change:

$all_items = array( $root_caption => (object) array($col_id => 0) ) + $all_items;

to:

$obj = (object) array($col_id => 0); $all_items = array( $root_caption => $obj ) + $all_items;

You might also try adding this at the top of function item_tree (just above the "$defaults =" line is fine):

if ( empty($all_items) ) $all_items = array();

1:01 pm
December 24, 2008


Kevin

Admin

posts 2402

3

Are you by chance using a translation file for Role Scoper?

1:05 pm
December 24, 2008


Kevin

Admin

posts 2402

4

henrykleinespel said:

I hope you will be able to solve the problem. As I've seen you're pretty quick on such things (and that's great ! especially since you seem to be working on this alone !).

Happy christmas !

Henry Kleinespel.


Thanks, I do plan to celebrate Jesus' birth by being less focused on Role Scoper over the next week :)

3:14 pm
December 24, 2008


henrykleinespel

Member

posts 2

5

No…no translation file here…but I'm going to try your thing out immediatly :-)


EDIT : after doing what you said…..

it worked ! GREAT ! Sealed

Might wanna change that in the future version in the case that someone has the same problem :-)

All I can say : great job !


And now go enjoy your christmas evening instead of answering to some idiots on this forum :-)))


Henry



About the Agapetry forum

Currently Online:

15 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1186

Posts: 5409

Members:

There are 1176 members

There are 1 guests


Kevin has made 2402 posts

Top Posters:

metal450 - 159

Ragnar - 105

YikYak - 70

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin