Title: Bug affecting Admin Menu Collapse
Last modified: August 31, 2016

---

# Bug affecting Admin Menu Collapse

 *  Resolved [milkboy31](https://wordpress.org/support/users/milkboy31/)
 * (@milkboy31)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/)
 * ◾WordPress version: 4.4
    ◾WP eCommerce version: 3.11.2 ◾Gold Cart version:
   n/a ◾Theme: Avada, Exodus ◾I did this: Deactivated all plugins on multiple 
   sites… clicked the “Collapse Menu” button at the bottom of the left menu in the
   admin control panel of WordPress. The button works fine. Click it again to expand,
   it does so fine. Once I enable this WP ecommerce plugin and click the “Collapse
   Menu” button, nothing happens. If I refresh the page, it refreshes in a collapsed
   state. If I click to expand it, it never does. Refreshing doesn’t help. It is
   stuck collapsed. I can then disable this plugin and it expands fine.
 * I have tried mac/pc, safari/firefox/ie/edge… all show the same behavior. I have
   recreated this on multiple sites I manage as well.
 * You can manually fix the issue by doing this:
    1) Open PHPmyAdmin 2) Choose the
   site’s database 3) wp_usermeta table 4) wp_user-settings meta_key 5) delete ‘&
   mfold=f’ from line
 * That &mfold=f value is supposed to set to &mfold=0 when you expand it again, 
   but it doesn’t. Manually changing it to 0 doesn’t work either… deleting the value
   does, but sometimes takes multiple tries for it to not be overwritten again with
   f back in there… very strange.
 * I’m not sure the issue runs so deep with this plugin messing with the above mentioned
   table meta_key and such… but maybe it does? My guess is that it’s just interfering
   with the right javascript or whatever is being used to collapse/expand the menu
   and send the right commands to edit the database.
 * Thoughts? Need any more info or testing?
 * ◾I expected this:
    It’d work as expected. 😉
 * [https://wordpress.org/plugins/wp-e-commerce/](https://wordpress.org/plugins/wp-e-commerce/)

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Thread Starter [milkboy31](https://wordpress.org/support/users/milkboy31/)
 * (@milkboy31)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912821)
 * Bump. Can anyone else with this plugin confirm the same issue on your site? I’ve
   replicated it on two sites but they are both on the same server. I want to see
   if this is a server compatibility issue (PHP version or something).
 * Just try to collapse the admin bar (bottom option on the left side toolbar) on
   the WP Admin back-end… then try to expand it again. If it isn’t working as expected,
   disable this plugin and try it again. Once you have it where you want it, re-
   enable this plugin.
 * Can you replicate the issue?
 *  [stevotivo](https://wordpress.org/support/users/stevotivo/)
 * (@stevotivo)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912822)
 * I found your post because it started happening to me today, I tried changing 
   the mfold option but it didn’t seem to work. Will let you know if I can get it
   working.
 *  [stevotivo](https://wordpress.org/support/users/stevotivo/)
 * (@stevotivo)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912823)
 * Try changing the mfold option to &mfold=t, that worked for me! Thanks.
 *  Thread Starter [milkboy31](https://wordpress.org/support/users/milkboy31/)
 * (@milkboy31)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912831)
 * So before doing the change to mfold=t, did you find the same repeatable issue
   being caused by this plugin? Or was your site doing this regardless of this plugin?
 * Also, any idea what the t option means? f obviously means fold. 0 means disabled…
   what’s t?
 *  Thread Starter [milkboy31](https://wordpress.org/support/users/milkboy31/)
 * (@milkboy31)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912877)
 * So… still no reply from the plugin author. Bug still exists. Can anyone else 
   confirm?
 *  [sonic1243](https://wordpress.org/support/users/sonic1243/)
 * (@sonic1243)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912879)
 * Yea just tested this and caused the stuck menu, deactivated WPEC and got it back.
   The plugin authors appear to answer easy questions but ignore the difficult ones…
 *  Plugin Author [Justin Sainton](https://wordpress.org/support/users/justinsainton/)
 * (@justinsainton)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912880)
 * Hi all,
 * We’ve logged this issue here: [https://github.com/wp-e-commerce/WP-e-Commerce/issues/2028](https://github.com/wp-e-commerce/WP-e-Commerce/issues/2028)
 * Please note: we do the best we can with the time we have on these support forums.
   It’s a free, open source plugin – and support provided in these forums is provided
   for free, as we are able to provide it. Of course we answer the questions that
   we’re able to answer easily and quickly first. 🙂
 *  [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912887)
 * Just confirming that I am having the same problem. Menu collapse not working 
   as described by milkboy31. I tried the same troubleshooting; disabling/enabling
   each plugin. With this plugin enabled, menu collapse is broken; with it disabled,
   it works fine.
 *  [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912891)
 * Justin:
    Thanks for working on this issue. Looking forward to a resolution – 
   clients are not happy with a broken admin menu!
 * Milkboy31 and stevotivo:
    Is your &mfold workaround working while the authors
   try to fix this? Can you supply more details? Where do I apply this workaround?
   Thanks!
 *  [DragoWeb](https://wordpress.org/support/users/dragoeco/)
 * (@dragoeco)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912898)
 * 1 – Edit wp-admin/admin-header.php with Notepad++
    2 – Line 139, change `if (
   get_user_setting('mfold') == 'f' )` to `if ( get_user_setting('mfold') == 't')`
   3 – Save, upload file on server
 * done 🙂
 * If ‘t’ doesn’t work, try ‘o’ or ‘0’ instead
 *  [dc-rocker](https://wordpress.org/support/users/dc-rocker/)
 * (@dc-rocker)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912901)
 * Thanks drageoco, the above trick worked. I changed (‘mfold’) == ‘t’ That fixed
   it.
 *  [DragoWeb](https://wordpress.org/support/users/dragoeco/)
 * (@dragoeco)
 * [10 years ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912909)
 * Problem happened again after a WP update (to v4.5.2). Found another solution 
   here : [http://wordpress.stackexchange.com/questions/166599/how-to-make-admin-sidebar-menu-always-be-collapse-by-code](http://wordpress.stackexchange.com/questions/166599/how-to-make-admin-sidebar-menu-always-be-collapse-by-code)
 * > To make the admin sidebar menu always be collapsed, try adding the following
   > code in the functions.php file of your [child theme](http://codex.wordpress.org/Child_Themes),
   > or add it in your site using a plugin like [Code Snippets](http://wordpress.org/plugins/code-snippets/),
   > or [Add Actions and Filters](http://wordpress.org/plugins/add-actions-and-filters/).
   >     ```
   >     global $user_ID;
   >     $user_fold = get_user_meta( $user_ID, 'wp_user-settings', true );
   >     $exp_array = explode( "&", $user_fold );
   >     $search_array = array_search( "mfold=o", $exp_array );
   >     if ( $search_array ) {
   >         $exp_array[ $search_array ] = "mfold=f";
   >         $exp_array = implode( "&", $exp_array );
   >         update_user_meta( $user_ID, 'wp_user-settings', $exp_array );
   >     }
   >     ```
   > 
 *  [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * (@misulicus)
 * [10 years ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-6912910)
 * Hey guys.
    There will be a 3.11.3 release for WP eCommerce that should adress
   that very weird bug . Should be out soon
 *  [whitelamp](https://wordpress.org/support/users/whitelamp/)
 * (@whitelamp)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-8271499)
 * We have a site still on 3.11.1 and got hit by this – I ended up updating wp_user-
   settings in the wp_usermeta table in the database.
 *  [DragoWeb](https://wordpress.org/support/users/dragoeco/)
 * (@dragoeco)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-8439195)
 * Or you can add this in the function.php file
 *     ```
       function make_menu_unfolded() {
           print '<script>jQuery(document).ready(function(){jQuery("body").removeClass("folded")})</script>';
       }
       add_filter('admin_head', 'make_menu_unfolded');
       ```
   

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Bug affecting Admin Menu Collapse’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-e-commerce_ebebeb.svg)
 * [WP eCommerce](https://wordpress.org/plugins/wp-e-commerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-e-commerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-e-commerce/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-e-commerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-e-commerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-e-commerce/reviews/)

 * 15 replies
 * 9 participants
 * Last reply from: [DragoWeb](https://wordpress.org/support/users/dragoeco/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/bug-affecting-admin-menu-collapse/#post-8439195)
 * Status: resolved