Jon W
Well-known member
- Affected version
- 1.5.13
Same bug as noted here:
https://xenforo.com/community/threads/error-when-installing-1-5-8.152315/
but the solution given on that page is wrong as the solution solves a bug from upgrading to XF2.
The error is:
count(): Parameter must be an array or an object that implements Countable
	
	
	
		
with:
	
	
	
		
				
			https://xenforo.com/community/threads/error-when-installing-1-5-8.152315/
but the solution given on that page is wrong as the solution solves a bug from upgrading to XF2.
The error is:
count(): Parameter must be an array or an object that implements Countable
- XenForo_Application::handlePhpError() in XenForo/Install/Model/Install.php at line 283
- XenForo_Install_Model_Install->insertDefaultData() in XenForo/Install/Controller/Install.php at line 219
- XenForo_Install_Controller_Install->actionStep2() in XenForo/FrontController.php at line 351
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
- XenForo_FrontController->run() in /var/www/public/xfaddons/install/index.php at line 18
		PHP:
	
	    public function insertDefaultData()
    {
        $db = $this->_getDb();
        $insertData = XenForo_Install_Data_MySql::getData();
        foreach ($insertData AS $data)
        {
            $db->query($data);
        }
        return count($data);
    }
		PHP:
	
	    public function insertDefaultData()
    {
        $db = $this->_getDb();
        $insertData = XenForo_Install_Data_MySql::getData();
        foreach ($insertData AS $data)
        {
            $db->query($data);
        }
    } 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		