# Live link fails

**URL:** <https://community.localwp.com/t/live-link-fails/30348>\
**Category:** Support\
**Created:** [February 17, 2022, 9:10am UTC](https://community.localwp.com/t/live-link-fails/30348 "2022-02-17T09:10:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/tobbe/32/15304_2.png) [@tobbe](https://community.localwp.com/u/tobbe)\
**Post date:** [February 17, 2022, 9:10am UTC](https://community.localwp.com/t/live-link-fails/30348/1 "2022-02-17T09:10:07Z")

</div>

# Bug Summary

I get an fatal error “Object of class stdClass could not be converted to string in /Users/tobbe/Local Sites/swishmodal/app/public/wp-content/mu-plugins/local-by-flywheel-live-link-helper.php on line 155”

# Steps to reproduce

This happens because the filter pre\_update\_option is assumed to deliver a string as the first parameter, the spec of this parameter is “mixed” and does sometimes contain an object.  
([pre\_update\_option – Hook | Developer.WordPress.org](https://developer.wordpress.org/reference/hooks/pre_update_option/))

# Environment Info

- MacOS 12.1?
- What versions of site software (Nginx, Apache, PHP, MySQL) is used?
- Local 6.2.1 5711?

# Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

- [How do I retrieve Local’s Log?](https://localwp.com/community/t/how-do-i-retrieve-locals-log-file/3720?u=ben.turner)

Include any screenshots or video recordings of the issue to help others reproduce.

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [February 17, 2022, 8:12pm UTC](https://community.localwp.com/t/live-link-fails/30348/2 "2022-02-17T20:12:46Z")

</div>

> [@In wp-admin using live-link shows error](http://community.localwp.com/t/in-wp-admin-using-live-link-shows-error/26169/10):
>
> Should probably be if ( ! is\_string( $subject ) ) { return; }

Search is a wonderful feature.

---

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/tobbe/32/15304_2.png) [@tobbe](https://community.localwp.com/u/tobbe)\
**Post date:** [February 17, 2022, 8:25pm UTC](https://community.localwp.com/t/live-link-fails/30348/3 "2022-02-17T20:25:07Z")

</div>

Agree 100% 🙂

---

<div class="post-metadata">

**Author:** ![austinwendt](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinwendt/32/13912_2.png) [@austinwendt](https://community.localwp.com/u/austinwendt)\
**Post date:** [April 5, 2023, 7:01pm UTC](https://community.localwp.com/t/live-link-fails/30348/4 "2023-04-05T19:01:16Z")

</div>


