You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi:
The main/search page of OSSEC-WUI is not showing information after upgrating PHP. Apache log is showing the next error:
PHP Fatal error: Uncaught Error: Call to undefined function split() in /var/www/html/ossec-wui/lib/os_lib_agent.php:111
Server data:
Debian 9, PHP 7.x and Apahe 2.4.
It seens that split() is not supported on the new PHP. I was able to fix the error changing the line 111 of /var/www/html/ossec-wui/lib/os_lib_agent.php from:
hi:
The main/search page of OSSEC-WUI is not showing information after upgrating PHP. Apache log is showing the next error:
PHP Fatal error: Uncaught Error: Call to undefined function split() in /var/www/html/ossec-wui/lib/os_lib_agent.php:111
Server data:
Debian 9, PHP 7.x and Apahe 2.4.
It seens that split() is not supported on the new PHP. I was able to fix the error changing the line 111 of /var/www/html/ossec-wui/lib/os_lib_agent.php from:
@list($_name, $_ip) = split("-", $tmp_file, 2);
to
@list($_name, $_ip) = explode("-", $tmp_file, 2);
The page can now be shown. Please to advice if the change is good.
The text was updated successfully, but these errors were encountered: