Fixed ErrorException: Array to string conversion - library/XenForo/RouteMatch.php:130

william1872

Member
I seem to be getting a lo of the following errors lately in the logs and not quite sure what's causing the problem?

Code:
Server Error Log
Error Info
ErrorException: Array to string conversion - library/XenForo/RouteMatch.php:130
Generated By: Unknown Account, Yesterday at 12:25 PM
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(8, 'Array to string...', '/home/jvfocus/p...', 130, Array)
#1 /home/jvfocus/public_html/library/XenForo/RouteMatch.php(130): strval(Array)
#2 /home/jvfocus/public_html/library/XenForo/Router.php(104): XenForo_RouteMatch->setResponseType(Array)
#3 /home/jvfocus/public_html/library/XenForo/Dependencies/Abstract.php(107): XenForo_Router->match(Object(Zend_Controller_Request_Http), NULL)
#4 /home/jvfocus/public_html/library/XenForo/FrontController.php(275): XenForo_Dependencies_Abstract->route(Object(Zend_Controller_Request_Http), NULL)
#5 /home/jvfocus/public_html/library/XenForo/FrontController.php(130): XenForo_FrontController->route()
#6 /home/jvfocus/public_html/index.php(13): XenForo_FrontController->run()
#7 {main}
Request State
array(3) {
  ["url"] => string(193) "http://www.jvfocus.com/misc/quick-navigation-menu?selected=node-25&_xfNoRedirect=1&_xfRequestUri=/threads/jv-focus-breaks-30-000-views-in-13-days-and-what-a-busy-day.498/&_xfResponseType[]=json"
  ["_GET"] => array(4) {
    ["selected"] => string(7) "node-25"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfRequestUri"] => string(73) "/threads/jv-focus-breaks-30-000-views-in-13-days-and-what-a-busy-day.498/"
    ["_xfResponseType"] => array(1) {
      [0] => string(4) "json"
    }
  }
  ["_POST"] => array(0) {
  }
}
 
That appears to be a bug, though the request is structured incorrectly. I don't know how that URL is being generated though.
 
Not sure of this will help here's the latest one in the logs, there's maybe 100+ errors

Code:
Zend_Db_Adapter_Mysqli_Exception: Too many connections - library/Zend/Db/Adapter/Mysqli.php:333
Generated By: Unknown Account, 34 minutes ago
Stack Trace
#0 /home/jvfocus/public_html/library/Zend/Db/Adapter/Abstract.php(315): Zend_Db_Adapter_Mysqli->_connect()
#1 /home/jvfocus/public_html/library/XenForo/Application.php(684): Zend_Db_Adapter_Abstract->getConnection()
#2 [internal function]: XenForo_Application->loadDb(Object(Zend_Config))
#3 /home/jvfocus/public_html/library/XenForo/Application.php(921): call_user_func_array(Array, Array)
#4 /home/jvfocus/public_html/library/XenForo/Application.php(952): XenForo_Application->lazyLoad('db', NULL)
#5 /home/jvfocus/public_html/library/XenForo/Application.php(1336): XenForo_Application::get('db')
#6 /home/jvfocus/public_html/library/XenForo/Model.php(161): XenForo_Application::getDb()
#7 /home/jvfocus/public_html/library/XenForo/Model/DataRegistry.php(138): XenForo_Model->_getDb()
#8 /home/jvfocus/public_html/library/XenForo/Model/DataRegistry.php(97): XenForo_Model_DataRegistry->_getMultiFromDb(Array)
#9 /home/jvfocus/public_html/library/XenForo/Dependencies/Abstract.php(144): XenForo_Model_DataRegistry->getMulti(Array)
#10 /home/jvfocus/public_html/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData()
#11 /home/jvfocus/public_html/index.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
  ["url"] => string(89) "http://www.jvfocus.com/members/2/threads/simple-software-development-for-you-yes-you.505/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Top Bottom