Undefined offset: -1 in src/WiseChat.php on line 395
-
First of all, the plugin is working fine and this issue is non-critical. Still want to share this.
If your WordPress installation is configured for a specific domain example.com, but gets accessed from its IP address, you will get the following error:
Notice: Undefined offset: -1 in /var/www/html/wp-content/plugins/wise-chat/src/WiseChat.php on line 395
The chat won’t work. Also, the link in “Powered by Wise Chat” won’t point to the project’s website, but to example.com’s IP address.
I’ve checked the source code. I’m not a WordPress expert, but I guess line 370 needs a fallback to fix this.
$domain = $_SERVER['SERVER_NAME'];
Thank you for the plugin!
Cheers,
Tolga
- The topic ‘Undefined offset: -1 in src/WiseChat.php on line 395’ is closed to new replies.