1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Error in ControllerAdmin/AdminTemplate.php at line 285

Discussion in 'Resolved Bug Reports' started by Arty, Oct 15, 2016.

  1. Arty

    Arty Well-Known Member

    I've made a error when editing admin template: tried to put spinbox inside radiounit. But instead of showing error message, XenForo threw ErrorException:

    A non-numeric value encountered
        XenForo_Application::handlePhpError() in XenForo/ControllerAdmin/AdminTemplate.php at line 285
        XenForo_ControllerAdmin_AdminTemplate->actionSaveMultiple() in XenForo/FrontController.php at line 351
        XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
        XenForo_FrontController->run() in admin.php at line 13
    Line that triggered error is third line of this code in XenForo_ControllerAdmin_AdminTemplate::actionSaveMultiple:
    				foreach ($errors AS $i => $error)
    					$errorText .= "\n" . ($i + 1) . ")\t$error";
    Dump of $errors array:
        [template] => user_group_edit_avatar_dimensions - Line 7: Found unexpected tag 'spinboxunit' as a disabled control.
    XenForo 1.5.10a, PHP 7.1.0RC2
  2. Mike

    Mike XenForo Developer Staff Member

    This is fixed now, thanks. The whole list numbering didn't work (and multiple errors should be quite rare).

Share This Page