Title: Error on adding widget &amp; more
Last modified: September 2, 2022

---

# Error on adding widget & more

 *  [coconutwebuk](https://wordpress.org/support/users/coconutwebuk/)
 * (@coconutwebuk)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-on-adding-widget-more/)
 * Hello,
 * I used your plugin on an old clients website to pull in the 10 most recent job
   posts made from the plugin “Job Openings” inside the navigation. I then hid this
   on Mobile and Tablet so it would only display on Desktop devices.
 * The parent navigation “Live Jobs” of which your plugin made the “Job Openings”
   lsit appear below, directed to the main jobs page of which this worked fine on
   mobile.
 * This plugin has worked flawlessly for the past year or so, however the client
   has recently made me aware that on mobile the parent link “Live Jobs” stopped
   working.
 * I’ve done a fair amount of digging and it looks like your plugin is the culprit
   in this case.
 * Here are the error logs I got:
 *     ```
       [02-Sep-2022 11:48:49 UTC] PHP Deprecated:  The called constructor method for WPSEO_Admin_Asset_Yoast_Components_L10n class is <strong>deprecated</strong> since version 18.0! Use <code>__construct()</code> instead. in /home/customer/www/clients.website/public_html/wp-includes/functions.php on line 5483
       [02-Sep-2022 11:48:49 UTC] PHP Deprecated:  Function localize_script is <strong>deprecated</strong> since version 18.0 with no alternative available. in /home/customer/www/clients.website/public_html/wp-includes/functions.php on line 5389
       [02-Sep-2022 11:48:49 UTC] PHP Deprecated:  Function get_translations is <strong>deprecated</strong> since version 18.0 with no alternative available. in /home/customer/www/clients.website/public_html/wp-includes/functions.php on line 5389
       [02-Sep-2022 11:49:12 UTC] PHP Notice:  Undefined property: YSPL_WIN_MAIN::$menu_item_id in /home/customer/www/clients.website/public_html/wp-content/plugins/wp-widget-in-navigation/init/main-yspl-win.php on line 382
       [02-Sep-2022 11:49:12 UTC] PHP Notice:  Undefined property: YSPL_WIN_MAIN::$menu_id in /home/customer/www/clients.website/public_html/wp-content/plugins/wp-widget-in-navigation/init/main-yspl-win.php on line 382
       [02-Sep-2022 11:49:12 UTC] PHP Notice:  Undefined property: YSPL_WIN_MAIN::$menu_item_depth in /home/customer/www/clients.website/public_html/wp-content/plugins/wp-widget-in-navigation/init/main-yspl-win.php on line 382
       [02-Sep-2022 11:49:12 UTC] PHP Notice:  Undefined property: YSPL_WIN_MAIN::$menu_item_meta in /home/customer/www/clients.website/public_html/wp-content/plugins/wp-widget-in-navigation/init/main-yspl-win.php on line 382
       [02-Sep-2022 11:49:12 UTC] PHP Notice:  Undefined variable: class in /home/customer/www/clients.website/public_html/wp-content/plugins/wp-widget-in-navigation/init/main-yspl-win.php on line 528
       [02-Sep-2022 11:49:12 UTC] PHP Notice:  Undefined variable: display in /home/customer/www/clients.website/public_html/wp-content/plugins/wp-widget-in-navigation/init/main-yspl-win.php on line 528
       [02-Sep-2022 11:49:12 UTC] PHP Notice:  Trying to access array offset on value of type null in /home/customer/www/clients.website/public_html/wp-content/plugins/wp-widget-in-navigation/init/main-yspl-win.php on line 528
       ```
   
 * On the widgets page, I removed the orginal widget and placed a new one in which
   resulted in an error:
 * `There was an error e. is undefined`
 * This issue results in me being able to restore the work previously done without
   rolling back the entire site, which I am about to do.
 * I’m unable to resolve this issue myself at present due to conflicts that would
   occur with the clients live website and hope that raising it with you will mitigate
   these issues in a future update.
 * For now I have decided to simpley disable the dropdown menu in which your plugin
   was being used for until said release comes out.

The topic ‘Error on adding widget & more’ is closed to new replies.

 * ![](https://ps.w.org/wp-widget-in-navigation/assets/icon.svg?rev=3089894)
 * [WP Widget in Navigation](https://wordpress.org/plugins/wp-widget-in-navigation/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-widget-in-navigation/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-widget-in-navigation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-widget-in-navigation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-widget-in-navigation/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [coconutwebuk](https://wordpress.org/support/users/coconutwebuk/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/error-on-adding-widget-more/)
 * Status: not resolved