Error after install with PHP 7.0.7/lsws and Litespeedtech Enterprise with "Verify setup"
Code:array_diff(): Argument #2 is not an array XenForo_Application::handlePhpError() array_diff() in Litespeedcache/ControllerAdmin/Manage.php at line 96 Litespeedcache_ControllerAdmin_Manage->verifySetup() in Litespeedcache/ControllerAdmin/Manage.php at line 127 Litespeedcache_ControllerAdmin_Manage->parseActions() in Litespeedcache/ControllerAdmin/Manage.php at line 41 Litespeedcache_ControllerAdmin_Manage->actionActions() in XenForo/FrontController.php at line 351 XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134 XenForo_FrontController->run() in /home/wf/public_html/admin.php at line 13
Getting the same error. Site and cache still seem to work, but the verify settings function does not.
My deepest apologies. To fix this problem, in the file:
library/Litespeedcache/ControllerAdmin/Manage.php
Around line 70ish:
Code:
if ($serverVary) {
$serverVary = explode(',', $serverVary);
}
$styles = $this->getModelFromCache('XenForo_Model_Style')
->getAllStylesAsFlattenedTree();
should be replaced with:
Code:
if ($serverVary) {
$serverVary = explode(',', $serverVary);
}
else {
$serverVary = array();
}
$styles = $this->getModelFromCache('XenForo_Model_Style')
->getAllStylesAsFlattenedTree();