Educlean theme - profile box giving me trouble

I'm not sure why this is happening but on the homepage where a user can either login or if logged in, go to dashboard, edit post or edit avatar - the link to edit avatar is bringing me to the dashboard. The url contains the the following:

sitename/blogname/wp-admin/?c=1

What would cause this to happen and how can I fix it?

Thanks,
Helen

  • helenwilliams

    Sorry - I thought the redirect would be a clue. Thank for any help you can offer. The other links are all working fine and I have double checked to make sure my avatar files are all in the correct place.

    Thanks!
    Helen

    Theme Edu Clean 2.1.3
    WPMU 2.9.2

    Here's what is in my plugin folder - all plugins are for setup for WPMU2.9.2. Any related files are in the appropriate folders.

    additional_tags.php
    additonal-privacy.php
    admin-footer-text.php
    admin-help-content.php
    admin-message.php
    ah_recent_posts_mu.php
    anti-splog/
    anti-splog.php
    automessage.php
    avatar-comments.php
    avatar-posts.php
    avatars.php
    blog-activity.php
    blogs-directory.php
    comment-form-text.php
    content-monitor.php
    custom-content-dashboard-widget.php
    dashboard-widgets-order.php
    default-theme.php
    first-comment.php
    friends-framework.php
    global-site-search.php
    global-site-tags.php
    index.php
    lock-posts.php
    logout-redirect.php
    mass-mailer.php
    messaging.php
    moderation_framework.php
    page-links-to.php
    post-indexer.php
    random-theme.php
    readme.txt
    rebranded-meta-widget.php
    remember-me-checked.php
    remove-browse-happy.php
    remove-email-verification.php
    remove-wp-dashboard-widgets.php
    reports/
    reports.php
    signup-blog-description.php
    signup-password.php
    signup-tos.php
    site-wide-text-change.php
    sitewidetextincludes/
    typepadantispam-logo.gif
    typepadantispam.gif
    TypePadAntiSpam.php
    update-notifications.php
    user-activity.php
    widget_friends.php
    widget-avatar.php
    widget-blogs.php
    widget-global-site-tags.php
    widget-recent-global-posts-feed.php
    widget-recent-global-posts.php
    widget-users.php

  • helenwilliams

    I did some more searching and found this. It doesn't mean anything to me but it may to someone more technical. The chunk of code came from WPadmin/Includes/mu.php

    there are two instances of this mentioned but I am not exactly sure how this may apply to my redirect problem.

    Anyone?
    Thanks,
    Helen

    function redirect_user_to_blog() {
    global $current_user, $current_site;
    $c = 0;
    if ( isset( $_GET[ 'c' ] ) )
    $c = (int)$_GET[ 'c' ];

    if ( $c >= 5 ) {
    wp_die( __( "You don’t have permission to view this blog. Please contact the system administrator." ) );
    }
    $c ++;

    $blog = get_active_blog_for_user( $current_user->ID );
    $dashboard_blog = get_dashboard_blog();
    if( is_object( $blog ) ) {
    $protocol = ( is_ssl() ? 'https://' : 'http://' );
    wp_redirect( $protocol . $blog->domain . $blog->path . 'wp-admin/?c=' . $c ); // redirect and count to 5, "just in case"
    exit;
    }

    /*
    If the user is a member of only 1 blog and the user's primary_blog isn't set to that blog,
    then update the primary_blog record to match the user's blog
    */
    $blogs = get_blogs_of_user( $current_user->ID );

    if ( !empty( $blogs ) ) {
    foreach( $blogs as $blogid => $blog ) {
    if ( $blogid != $dashboard_blog->blog_id && get_usermeta( $current_user->ID , 'primary_blog' ) == $dashboard_blog->blog_id ) {
    update_usermeta( $current_user->ID, 'primary_blog', $blogid );
    continue;
    }
    }
    $blog = get_blog_details( get_usermeta( $current_user->ID , 'primary_blog' ) );
    $protocol = ( is_ssl() ? 'https://' : 'http://' );
    wp_redirect( $protocol . $blog->domain . $blog->path . 'wp-admin/?c=' . $c ); // redirect and count to 5, "just in case"
    exit;
    }
    wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
    }
    add_action( 'admin_page_access_denied', 'redirect_user_to_blog', 99 );

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.