Warning on a shared webhoster (Deprecated: preg_replace())

Hello

I use the newest version 11.2.3 on a shared webhoster with php 8.1. The emoncms runs well, all data are recording.

On an other webpage with PHP 7.4 i have embbeded the follow

Leistung Wechselrichter 1 / W


But now i got an Warning:
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/xxxx/web/emon.xxxx.xx/public_html/Modules/vis/vis_controller.php on line 106

Does somebody has me a hint to fix that? Thanks

Gregor

Made a mistake to embbed some code in the post, hope this works now

<h3>Leistung Wechselrichter 1 / W</h3>
<iframe style="width:100%; height:400px;" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://emon.xxxx.xx/vis/rawdata?feedid=68&fill=0&colour=edc240&dp=2&scale=1&embed=1"></iframe>
<hr class="linie">

1 Like

have found the solution :slight_smile:

2 Likes

Thanks and thankyou to @thib66, I’ve merged this in

2 Likes