Title: stack trace in latest version
Last modified: December 1, 2019

---

# stack trace in latest version

 *  Resolved [bretweinraub99](https://wordpress.org/support/users/bretweinraub99/)
 * (@bretweinraub99)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/stack-trace-in-latest-version/)
 * `[01-Dec-2019 16:18:38 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed
   to kucrut_get_array_value_deep() must be of the type array, string given, called
   in /var/www/…/production/wp-content/plugins/menu-i
    cons/includes/settings.php
   on line 192 and defined in /var/www/…/production/wp-content/plugins/menu-icons/
   includes/library/functions.php:19 Stack trace: #0 /var/www/…/production/wp-content/
   plugins/menu-icons/includes/settings.php(192): kucrut_get_array_value_deep(”,
   Array) #1 /var/www/…/production/wp-content/plugins/menu-icons/includes/settings.
   php(173): Menu_Icons_Settings::get(‘menu_16’) #2 /var/www/…/production/wp-content/
   plugins/menu-icons/includes/settings.php(133): Menu_Icons_Settings::get_menu_settings(
   16) #3 /var/www/…/production/wp-content/plugins/menu-icons/includes/settings.
   php(99): Menu_Icons_Settings::is_menu_icons_disabled_for_menu() #4 /var/www/…/
   production/wp-content/plugins/menu-icons/menu-icons.php(146): Menu_Icons_Settings::
   init() #5 /var/www/…/production/wp-includes/class-wp- in /var/www/…/production/
   wp-content/plugins/menu-icons/includes/library/functions.php on line 19 [01-Dec-
   2019 16:18:53 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/
   www/…/production/wp-content/plugins/elementor/includes/plugin.php on line 615

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

 *  Thread Starter [bretweinraub99](https://wordpress.org/support/users/bretweinraub99/)
 * (@bretweinraub99)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/stack-trace-in-latest-version/#post-12195974)
 * A little more information.
 * I tracked at least the initial issue down to this section of the initialization
   in settings.php:
 *     ```
       	public static function init() {
       		/**
       		 * Allow themes/plugins to override the default settings
       		 *
       		 * @since 0.9.0
       		 *
       		 * @param array $default_settings Default settings.
       		 */
             self::$defaults = apply_filters( 'menu_icons_settings_defaults', self::$defaults );
   
             self::$settings = get_option( 'menu-icons', self::$defaults);      
       ```
   
 * $settings ends up being a String of length 0, and calamity ensues.
 *  Thread Starter [bretweinraub99](https://wordpress.org/support/users/bretweinraub99/)
 * (@bretweinraub99)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/stack-trace-in-latest-version/#post-12195980)
 * I changed the settings assignment to
 *     ```
             $option = get_option( 'menu-icons');
             self::$settings = !empty($option) ? $option : self::$defaults;
       ```
   
 * and now at least the site doesn’t crash, but there are still [non-fatal] errors
   being generated down in the elementor stack.
 *  Thread Starter [bretweinraub99](https://wordpress.org/support/users/bretweinraub99/)
 * (@bretweinraub99)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/stack-trace-in-latest-version/#post-12234787)
 * I can pull my site out of the dumpster by calling this from the mysql prompt:
 *     ```
       mysql> delete from wp_options where option_name like 'elementor_exclude_user_roles';
       Query OK, 1 row affected (0.01 sec)
   
       mysql> delete from wp_options where option_name like 'elementor_cpt_support%';
       Query OK, 1 row affected (0.01 sec)
   
       mysql> delete from wp_options where option_name like 'menu-icons';
       Query OK, 1 row affected (0.01 sec)
   
       mysql>
       ```
   

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

The topic ‘stack trace in latest version’ is closed to new replies.

 * ![](https://ps.w.org/menu-icons/assets/icon-128x128.png?rev=2526860)
 * [Menu Icons by Themeisle – Add Icons to Navigation Menus](https://wordpress.org/plugins/menu-icons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/menu-icons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/menu-icons/)
 * [Active Topics](https://wordpress.org/support/plugin/menu-icons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/menu-icons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/menu-icons/reviews/)

 * 3 replies
 * 1 participant
 * Last reply from: [bretweinraub99](https://wordpress.org/support/users/bretweinraub99/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/stack-trace-in-latest-version/#post-12234787)
 * Status: resolved