Title: Call to undefined method stdClass::get(
Last modified: July 6, 2023

---

# Call to undefined method stdClass::get(

 *  Resolved [Bob](https://wordpress.org/support/users/prasunsen/)
 * (@prasunsen)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassget/)
 * Hello, the plugin is frequently causing this fatal error:
    Call to undefined 
   method stdClass::get() in …/wp-content/plugins/searchwp-modal-search-form/includes/
   Plugin.php:155

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

 *  [Elio](https://wordpress.org/support/users/brelios/)
 * (@brelios)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassget/#post-16874531)
 * Hi [@prasunsen](https://wordpress.org/support/users/prasunsen/),
 * We are not able to replicate the issue you reported.
   Can you please tell me how
   the Modal form was added to the site and when that error appears. Is it in the
   frontend when the page loads?
 * I would also suggest to delete the plugin and reinstall it again.
   It might be
   possible that some files are missing for some reason on your copy.
 * Thanks
 *  Thread Starter [Bob](https://wordpress.org/support/users/prasunsen/)
 * (@prasunsen)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassget/#post-16874635)
 * Hi [@brelios](https://wordpress.org/support/users/brelios/) – I’m getting the
   errors in the error log so it’s hard to say when it happens exactly – it’s not
   consistent. Perhaps just checking if the object exists will solve it?
 * before line 155:
   if(empty($settings)) return;
    -  This reply was modified 2 years, 9 months ago by [Bob](https://wordpress.org/support/users/prasunsen/).
    -  This reply was modified 2 years, 9 months ago by [Bob](https://wordpress.org/support/users/prasunsen/).
 *  [Elio](https://wordpress.org/support/users/brelios/)
 * (@brelios)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassget/#post-16874805)
 * Hi,
 * Can you please tell me how you added the Modal to the site?
   As a menu item, a
   shortcode, a Gutenberg block or programmatically?
 * The error seems caused by a missing class/file. Have you tried deleting and reinstalling
   the plugin?
 * Thanks
 *  Thread Starter [Bob](https://wordpress.org/support/users/prasunsen/)
 * (@prasunsen)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassget/#post-16874881)
 * Hello, it’s a menu item:
   [https://pasteboard.co/Ut1yjb03xeWM.png](https://pasteboard.co/Ut1yjb03xeWM.png)
   Reinstalled and confirmed that there are no missing files.
 *  [Elio](https://wordpress.org/support/users/brelios/)
 * (@brelios)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassget/#post-16875205)
 * Hi [@prasunsen](https://wordpress.org/support/users/prasunsen/),
 * thanks for the extra info!
   The developer will take a look at it and as soon as
   I have some news I’ll let you know.
 *  [Elio](https://wordpress.org/support/users/brelios/)
 * (@brelios)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassget/#post-16875976)
 * Hi [@prasunsen](https://wordpress.org/support/users/prasunsen/),
 * I just wanted to let you know that an update has just been released and it should
   prevent the error you reported.
   Please let me know if after updating you still
   have any problem.
 * Thanks
 *  Thread Starter [Bob](https://wordpress.org/support/users/prasunsen/)
 * (@prasunsen)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassget/#post-16876199)
 * Thank you! I’ll report if there is any issue.

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

The topic ‘Call to undefined method stdClass::get(’ is closed to new replies.

 * ![](https://ps.w.org/searchwp-modal-search-form/assets/icon-256x256.png?rev=2149619)
 * [SearchWP Modal Search Form](https://wordpress.org/plugins/searchwp-modal-search-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/searchwp-modal-search-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/searchwp-modal-search-form/)
 * [Active Topics](https://wordpress.org/support/plugin/searchwp-modal-search-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/searchwp-modal-search-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/searchwp-modal-search-form/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Bob](https://wordpress.org/support/users/prasunsen/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassget/#post-16876199)
 * Status: resolved