All Topics - Master Forums / Global Topics

All Topics - Master Forums / Global Topics 1.5

No permission to download
To add more information, this is what was in XenForo's error logs

Error Info
PHP:
ErrorException: Array to string conversion - library/XenForo/Model/Node.php:1255
Generated By: Adam, 6 minutes ago
Stack Trace

PHP:
#0 [internal function]: XenForo_Application::handlePhpError(8, 'Array to string...', '/home/sociall1/...', 1255, Array)
#1 /home/sociall1/public_html/forums/library/XenForo/Model/Node.php(1255): strval(Array)
#2 /home/sociall1/public_html/forums/library/MasterForums/Option/ForumChooser.php(18): XenForo_Model_Node->getNodeOptionsArray(Array, Array, '(unspecified)')
#3 [internal function]: MasterForums_Option_ForumChooser::renderOption(Object(XenForo_ViewAdmin_Option_ListOptions), 'options', Array, false)
#4 /home/sociall1/public_html/forums/library/XenForo/ViewAdmin/Helper/Option.php(327): call_user_func(Array, Object(XenForo_ViewAdmin_Option_ListOptions), 'options', Array, false)
#5 /home/sociall1/public_html/forums/library/XenForo/ViewAdmin/Helper/Option.php(71): XenForo_ViewAdmin_Helper_Option::_renderCallbackOptionHtml(Object(XenForo_ViewAdmin_Option_ListOptions), 'options', Array, false)
#6 /home/sociall1/public_html/forums/library/XenForo/ViewAdmin/Helper/Option.php(33): XenForo_ViewAdmin_Helper_Option::renderPreparedOptionHtml(Object(XenForo_ViewAdmin_Option_ListOptions), Array, false, 'options')
#7 /home/sociall1/public_html/forums/library/XenForo/ViewAdmin/Option/ListOptions.php(30): XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml(Object(XenForo_ViewAdmin_Option_ListOptions), Array, false)
#8 /home/sociall1/public_html/forums/library/XenForo/ViewRenderer/Abstract.php(215): XenForo_ViewAdmin_Option_ListOptions->renderHtml()
#9 /home/sociall1/public_html/forums/library/XenForo/ViewRenderer/HtmlAdmin.php(63): XenForo_ViewRenderer_Abstract->renderViewObject('XenForo_ViewAdm...', 'Html', Array, 'option_list')
#10 /home/sociall1/public_html/forums/library/XenForo/FrontController.php(533): XenForo_ViewRenderer_HtmlAdmin->renderView('XenForo_ViewAdm...', Array, 'option_list', NULL)
#11 /home/sociall1/public_html/forums/library/XenForo/FrontController.php(156): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlAdmin), Array)
#12 /home/sociall1/public_html/forums/admin.php(13): XenForo_FrontController->run()
#13 {main}

Request State

PHP:
array(3) {
  ["url"] => string(75) "http://www.sociallyuncensored.eu/forums/admin.php?options/list/MasterForums"
  ["_GET"] => array(1) {
    ["options/list/MasterForums"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
I think it's a mistake to XenForo with php 5.4+. In the file library/XenForo/Model/Node.php, in 1255 there is this code line:
PHP:
                'selected' => (strval($selectedNodeId) === '0'),
that generates an error when the variable $selectedNodeId is an array of selected nodes, and the error occurs.
I changed this line to:
PHP:
                'selected' => (!$selectedNodeId ? $selectedNodeId : 0),
and works fine for me. I can use the 'All' selector in render options and all add-ons.

Salud2
 
Thanks for pointing this out, actually, if this uses the old forum chooser from Jaxel's add-ons then yeah, it won't work on PHP 5.4.

I have new forum chooser that does work. I'll get this sorted soon.
 
This didn't work for me on my last host but it's working for me now on my new host.
 
This addon conflicts with the batch thread tools in xenforo. It also conflicts with some addons like Ignore New Posts by Waindigo. I think it needs a rewrite but sadly it looks like very few people are interested with this addon :)
 
Can you only have one master forum as I would like to have several. AN example. one for all Casual events, and one for all Official events.
 
Top Bottom