• Hey, I know there are loads of other similar problems on the forums but I believe it isn’t the same (or I’m just too noobish to understand it). So anyway, I recently installed the plugin role manager 2.0. After installing it, now my public (non-registered) viewers can’t view my published pages. Registered users still can see it normally. The error message that comes out is

    Warning: Cannot modify header information – headers already sent by (output started at /home/vhosts/sicjunioryouthministry.ueuo.com/wp-includes/widgets.php:689) in /home/vhosts/sicjunioryouthministry.ueuo.com/wp-includes/pluggable.php on line 850

    This is my widgets.php file code around line 689 (line 689 in bold)

    function wp_widget_pages( $args ) {
    extract( $args );
    $options = get_option( ‘widget_pages’ );

    $title = empty( $options[‘title’] ) ? __( ‘Pages’ ) : apply_filters(‘widget_title’, $options[‘title’]);
    $sortby = empty( $options[‘sortby’] ) ? ‘menu_order’ : $options[‘sortby’];
    $exclude = empty( $options[‘exclude’] ) ? ” : $options[‘exclude’];

    if ( $sortby == ‘menu_order’ ) {
    $sortby = ‘menu_order, post_title’;
    }

    $out = wp_list_pages( array(‘title_li’ => ”, ‘echo’ => 0, ‘sort_column’ => $sortby, ‘exclude’ => $exclude) );

    if ( !empty( $out ) ) {
    ?>
    <?php echo $before_widget; ?>
    <?php echo $before_title . $title . $after_title; ?>

      <?php echo $out; ?>

    <?php echo $after_widget; ?>
    <?php
    }
    }

    /**
    * Display and process pages widget options form.
    *
    * @since 2.2.0
    */
    function wp_widget_pages_control() {

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter joshuahlj

    (@joshuahlj)

    (edited, there are no spaces around line 689)

    function wp_widget_pages( $args ) {
    extract( $args );
    $options = get_option( ‘widget_pages’ );

    $title = empty( $options[‘title’] ) ? __( ‘Pages’ ) : apply_filters(‘widget_title’, $options[‘title’]);
    $sortby = empty( $options[‘sortby’] ) ? ‘menu_order’ : $options[‘sortby’];
    $exclude = empty( $options[‘exclude’] ) ? ” : $options[‘exclude’];

    if ( $sortby == ‘menu_order’ ) {
    $sortby = ‘menu_order, post_title’;
    }

    $out = wp_list_pages( array(‘title_li’ => ”, ‘echo’ => 0, ‘sort_column’ => $sortby, ‘exclude’ => $exclude) );

    if ( !empty( $out ) ) {
    ?>
    <?php echo $before_widget; ?>
    <?php echo $before_title . $title . $after_title; ?>

      <?php echo $out; ?>

    <?php echo $after_widget; ?>
    <?php
    }
    }

    /**
    * Display and process pages widget options form.
    *
    * @since 2.2.0
    */
    function wp_widget_pages_control() {

    Thread Starter joshuahlj

    (@joshuahlj)

    now that i posted the code, i see the spaces around 689, but they aren’t showing in notepad

    Thread Starter joshuahlj

    (@joshuahlj)

    Sorry, I checked and even though it looks like it, there is no spacing there. So somebody please help me!!!

    Does the problem go away if you uninstall Role Manager?

    Thread Starter joshuahlj

    (@joshuahlj)

    No, =( apparently according to the role manager site, role manager actually modifies the database. So it doesn’t go away. I’m so not installing plugins without reading more comments. But the site ratings was high and there was like 2000 comments.

    If you need any information (codes etc) from my site. please let me know

    You say you installed Role Manager 2.0. Do you actually mean the latest version, 2.2.3?

    I use Role Manager 2.2.3 on my site with no issue, as do many others, so it may be something specific to your setup.

    Unfortunately I don’t think I can diagnose your problem. Maybe someone else can help.

    Thread Starter joshuahlj

    (@joshuahlj)

    Yes, sorry. It’s version is 2.2.3. Okay, thanks for your help. If you know of anybody that may be able to help, please direct him/her to this page. The author of the plugin is inactive. Thanks

    Thread Starter joshuahlj

    (@joshuahlj)

    Desperate need for help! I just realised that only admins can see the pages. Not registered users as I originally assumed.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Role Manager giving problems’ is closed to new replies.