WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] User Sites aren't displayed in wp-admin/network/users.php (9 posts)

  1. Milev
    Member
    Posted 5 months ago #

    Hi!
    I have upgraded WP from 3.3.1 to 3.7.1 (3.3.1 -> 3.5.2 -> 3.7.1).

    Problem:
    When I enter wp-admin/network/users.php no Sites are listed in Users table. Sites column is empty.

    Additional info:
    - I have checked wp_usermeta in database and it looks correct
    - wp-admin/network/sites.php shows Users correctly (I assume it works with same wp_usermeta table in database)
    - system works on multiple DB
    - small changes has been made to core files, but it's mostly about blocking auto-updates as some themes are modified
    - of course many plugins, themes are installed

    ---
    I run out of ideas what to check next. I hope you can inspire me, what to look for.

  2. The usual tests...

    Turn off all the plugins on the network, and on your main site.

    Change your main site to TwentyThirteen or any other default theme.

  3. Milev
    Member
    Posted 5 months ago #

    Yep, I have checked that, but it makes no differance :/

  4. small changes has been made to core files, but it's mostly about blocking auto-updates as some themes are modified

    Wait ... what? NO! DO NOT EVER EVER EDIT CORE.

    Force override, reinstall core files and LEAVE THEM ALONE.

    No one here will help you if you edit core files.

    system works on multiple DB

    What plugin are you using for multiDB?

  5. Milev
    Member
    Posted 5 months ago #

    1
    The changes are short, and easy to find by first line.

    1.1
    wp­-admin/update-­core.php

    function core_upgrade_preamble() {
        return; //here

    1.2
    wp­-admin/network/update­-core.php

    /** Load WordPress Administration Bootstrap */
    require_once( './admin.php' );
    wp_die( "No update allowed"); //here

    1.3
    wp­-admin/network/site­-users.php
    original:

    // If the user doesn't already belong to the blog, bail.
    if ( !is_user_member_of_blog($user_id ) )
    wp_die(__( 'Cheatin’ uh?' ) );

    changed:

    var_dump(is_user_member_of_blog($user_id ));

    1.4
    wp-admin/themes.php
    here is a big redesign with roles and this kind of stuff.
    =====
    Have I blocked some part of DB update keeping changes in those files?
    Just in case I'll make network update without that changes.

    2
    It's just made with db-config.php file required in wp-config.php. Then blogs are spread by id to differend DBs. I don't think that is the source of problem. At least not the first one to check.

    3
    Sample rows from wp_usermeta for one of users are:
    (umeta_id, user_id, meta_key, meta_value)

    (78185, 3838, 'first_name', 'aaa'),
    (78186, 3838, 'last_name', 'bbb'),
    (78187, 3838, 'nickname', 'ccc'),
    (78188, 3838, 'description', ''),
    (78189, 3838, 'rich_editing', 'true'),
    (78190, 3838, 'comment_shortcuts', 'false'),
    (78191, 3838, 'admin_color', 'fresh'),
    (78192, 3838, 'use_ssl', '0'),
    (78193, 3838, 'show_admin_bar_front', 'true'),
    (78201, 3838, 'wp_2987_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'),
    (78195, 3838, 'wp_1_user_level', '0'),
    (78196, 3838, 'aim', ''),
    (78197, 3838, 'yim', ''),
    (78198, 3838, 'jabber', ''),
    (78199, 3838, 'primary_blog', '2987'),
    (78200, 3838, 'show_welcome_panel', '0'),
    (78202, 3838, 'wp_2987_user_level', '10'),
    (78203, 3838, 'wp_2987_dashboard_quick_press_last_post_id', '52'),
    (78222, 3838, 'managenav-menuscolumnshidden', 'a:4:{i:0;s:11:"link-target";i:1;s:11:"css-classes";i:2;s:3:"xfn";i:3;s:11:"description";}'),
    (78223, 3838, 'metaboxhidden_nav-menus', 'a:2:{i:0;s:8:"add-post";i:1;s:12:"add-post_tag";}'),
    (78234, 3838, 'dismissed_wp_pointers', 'wp330_media_uploader,wp330_toolbar'),
    (78235, 3838, 'wp_2987_user-settings', 'galfile=1&galord=title&editor=tinymce'),
    (78236, 3838, 'wp_2987_user-settings-time', '1339779759'),
    (78237, 3838, 'nav_menu_recently_edited', '613');
    (78238, 3838, 'closedpostboxes_nav-menus', 'a:1:{i:0;s:8:"add-page";}'),

    4
    By the way /wp-admin/network/site-users.php?id= works fine and shows users for given id number.

  6. Don't care. Don't edit core.

    It's NEVER the right answer (unless you're debugging core and are sending a patch upstream).

  7. Milev
    Member
    Posted 5 months ago #

    Another network update without those mods hasn't changed anything.

  8. To clarify.

    1) You restored the WP core files to the defaults fot 3.7.1

    2) You deactivated all plugins on the main site, and all network plugins, AND changed the main site's theme to twenty thirteen (or any of the defaults).

    3) You went to /wp-admin/network/upgrade.php and clicked Upgrade

    Is that correct?

  9. Milev
    Member
    Posted 5 months ago #

    Now I have done everything as you said and indeed user sites appeared. I have prepared fresh wp-admin folder just with config files, plugins and default themes. When everything was ready (plugins off, default theme) I just switched the folders and Sites were there again. Looks like some extra code cleaning awaits!

    Just needed somebody to force me to do those steps as the system is complex. ;)
    Thank you!

Reply

You must log in to post.

About this Topic

Tags

No tags yet.