Title: Problem with update setting
Last modified: July 11, 2023

---

# Problem with update setting

 *  Resolved [itfarjaman](https://wordpress.org/support/users/itfarjaman/)
 * (@itfarjaman)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/problem-with-update-setting/)
 * My WordPress is showing “**Warning**: Undefined property: stdClass::$slug in **/
   home/trendwhi/public_html/wp-content/plugins/tenweb-speed-optimizer/OptimizerAdmin.
   php** on line **118**” error message and the admin PHP code is like this-
 *     ```wp-block-code
         public function two_add_two_plugin_to_autoupdate($update, $item) {
               $plugins = [ 'tenweb-speed-optimizer' ];
   
               if (in_array($item->slug, $plugins)) {
                   // update plugin
                   return true;
               }
   
               // use default settings
               return $update;
           }
       ```
   
 * How to solve this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-update-setting%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Nik](https://wordpress.org/support/users/nikitaanisimov/)
 * (@nikitaanisimov)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/problem-with-update-setting/#post-16889445)
 * Hello [@itfarjaman](https://wordpress.org/support/users/itfarjaman/)
 * Thank you for reporting the problem!
 * We are pleased to inform you that our team has successfully tracked down the 
   root cause of the error message you are getting. Please rest assured, it will
   be addressed and fixed in the upcoming hotfix.
 * We highly recommend staying tuned for the plugin updates or enabling automatic
   updates for it,
 * Thank you for your patience and continued support.
    -  This reply was modified 2 years, 11 months ago by [Nik](https://wordpress.org/support/users/nikitaanisimov/).
 *  Thread Starter [itfarjaman](https://wordpress.org/support/users/itfarjaman/)
 * (@itfarjaman)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/problem-with-update-setting/#post-16889800)
 * Automatic update is on

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

The topic ‘Problem with update setting’ is closed to new replies.

 * ![](https://ps.w.org/tenweb-speed-optimizer/assets/icon-256x256.png?rev=2753401)
 * [10Web Booster - Website speed optimization, Cache & Page Speed optimizer](https://wordpress.org/plugins/tenweb-speed-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tenweb-speed-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tenweb-speed-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/tenweb-speed-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tenweb-speed-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tenweb-speed-optimizer/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [itfarjaman](https://wordpress.org/support/users/itfarjaman/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/problem-with-update-setting/#post-16889800)
 * Status: resolved