Title: Undefined variable: wprmclass.php line 381
Last modified: September 20, 2018

---

# Undefined variable: wprmclass.php line 381

 *  Resolved [yourbudweiser](https://wordpress.org/support/users/yourbudweiser/)
 * (@yourbudweiser)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-wprmclass-php-line-381/)
 * Hi, installed the plugin, changed a few settings, getting the error when I open
   the menu:
 * Notice: Undefined variable: menu in \wp-content\plugins\wp-responsive-menu\inc\
   wprmclass.php on line 381
 * PHP version: 5.6.31
    WordPress version: 4.9.8 WP Responsive Menu version: 3.0.4

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

 *  Plugin Author [Magnigenie](https://wordpress.org/support/users/magnigenie/)
 * (@magnigenie)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-wprmclass-php-line-381/#post-10709687)
 * Hello [@yourbudweiser](https://wordpress.org/support/users/yourbudweiser/),
 * Really sorry for the issue you are having. We will check and update you on this
   issue.
 * Regards
 *  Thread Starter [yourbudweiser](https://wordpress.org/support/users/yourbudweiser/)
 * (@yourbudweiser)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-wprmclass-php-line-381/#post-10718720)
 * Hello, any news on this? I am pushing the site to production shortly and would
   really like to use this plugin.
 *  [tmdesigned](https://wordpress.org/support/users/tmdesigned/)
 * (@tmdesigned)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-wprmclass-php-line-381/#post-10729747)
 * Hi I’m not involved in the dev of this plugin, but glancing at the code, it seems
   like it is not finding the corresponding WordPress menu it is currently set to
   find. (Perhaps it was set to a menu that was since deleted?).
 * I would try going to the plugin settings and reselecting the menu it should pull
   from, making sure that the menu exists and trying a different menu if that doesn’t
   work.
 * Probably the code around the error you are receiving should be checking to make
   sure it finds a match, but right now it is not.
 *  Thread Starter [yourbudweiser](https://wordpress.org/support/users/yourbudweiser/)
 * (@yourbudweiser)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-wprmclass-php-line-381/#post-10729896)
 * Thanks for the tip tmdesigned.
 * Although I only had one menu, I added an additional, empty WordPress menu and
   then refreshed the plugin settings page. The ‘Select menu’ option now showed 
   both menus. I selected the new menu and the plugin started working as expected.
   I then deleted the additional, empty menu and the menu still works.
 * Thanks!
    -  This reply was modified 7 years, 8 months ago by [yourbudweiser](https://wordpress.org/support/users/yourbudweiser/).
      Reason: Reply and mark as resolved

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

The topic ‘Undefined variable: wprmclass.php line 381’ is closed to new replies.

 * ![](https://ps.w.org/wp-responsive-menu/assets/icon-256x256.png?rev=2246917)
 * [WP Responsive Menu](https://wordpress.org/plugins/wp-responsive-menu/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-responsive-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-responsive-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-responsive-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-responsive-menu/reviews/)

## Tags

 * [undefined variable](https://wordpress.org/support/topic-tag/undefined-variable/)

 * 4 replies
 * 3 participants
 * Last reply from: [yourbudweiser](https://wordpress.org/support/users/yourbudweiser/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-wprmclass-php-line-381/#post-10729896)
 * Status: resolved