Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Error trying to edit

UserPost

2:49 am
October 15, 2010


foxed

Member

posts 3

1

Role Scoper Version: 1.2.7
Database Schema Version: 1.1.2
WordPress Version: 3.0.1
PHP Version: 5.2.14

I have created a group with page editor access to a couple of pages.  I can login as a user.  When I go to the dashboard the user has the Pages link in the sidebar but clicking the Page link generates a  load of warnings.  I have tried reinstalling, checked the docs, read through the faqs, I'm not sure where to look from here.   Any known gotchas that would generate this?

Warning: Division by zero in /home/public_html/wp-admin/edit.php on line 154

Warning : Cannot modify header information - headers already sent by (output started at /home/public_html/wp-admin/edit.php:154) in /home/public_html/wp-includes/functions.php on line 830

Warning : Cannot modify header information - headers already sent by (output started at /home/public_html/wp-admin/edit.php:154) in /home/public_html/wp-includes/functions.php on line 831


6:49 am
October 15, 2010


foxed

Member

posts 3

2

if it's any help, the problem seems to just apply to editing pages.  If i give the user edit access to a post it works ok.  The user can create a page no problem.  If I try to edit a page the errors appear.  The numbers look ok though  ie. Mine (1) All (3)  Published (3).  Those numbers tie in with the pages I have given the user access to edit.

2:50 pm
October 15, 2010


foxed

Member

posts 3

3

Please, please, please?  I'm so close to being able to roll this out if it would just work for pages as well as posts.  Is it worth trying the latest RC version or is that changing too often? 

3:48 pm
October 15, 2010


Kevin

Admin

posts 2503

4

The user option "Show on Screen", displayed when you click on "Screen Options", can be further filtered by plugins and themes (using the hooks 'edit_posts_per_page' or 'edit_page_per_page' ). It appears that something is setting this value to zero or null.

Role Scoper does not hook onto those filters. You could either determine and deactive the plugin / theme that does, or as a last resort temporarily comment out these lines in wp-admin/edit.php:

$per_page = apply_filters( $edit_per_page, $per_page );
$per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type );

Better yet, the WP core code could be modified to move the existing sanity check down below those filter applications:

if ( empty( $per_page ) || $per_page < 1 )
	$per_page = 20;

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