# Deprecation warning when using Live Link

**URL:** <https://community.localwp.com/t/deprecation-warning-when-using-live-link/45650>\
**Category:** Bugs\
**Tags:** live-links, chromeos\
**Created:** [November 20, 2024, 11:48pm UTC](https://community.localwp.com/t/deprecation-warning-when-using-live-link/45650 "2024-11-20T23:48:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![weston](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/weston/32/15212_2.png) [@weston](https://community.localwp.com/u/weston)\
**Post date:** [November 20, 2024, 11:48pm UTC](https://community.localwp.com/t/deprecation-warning-when-using-live-link/45650/1 "2024-11-20T23:48:51Z")

</div>

# Bug Summary

When using Live Link, I get a deprecated warning from PHP:

> str\_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

It’s coming from the `local-by-flywheel-live-link-helper.php` mu-plugin on line 155.

I’ve worked around the issue by adding the following code at the start of the `\LocalWP_Live_Link_Helper::make_link_tunnel()` method:

```php
if ( ! is_string( $str ) ) { 
	return $str;
}

```

# Steps to reproduce

Access a site via Live Link

# Environment Info

Describe your environment.

- What Operating System are you using? ChromeOS
- What versions of site software (Nginx, Apache, PHP, MySQL) is used? Nginx, PHP 8.1.29
- What version of Local is installed? Version 9.0.5+6706

---

<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:** [November 21, 2024, 1:20am UTC](https://community.localwp.com/t/deprecation-warning-when-using-live-link/45650/2 "2024-11-21T01:20:20Z")

</div>

Looks familiar. [Warning: Array to string conversion and other warnings - #2 by afragen](https://community.localwp.com/t/warning-array-to-string-conversion-and-other-warnings/29055/2)
