Every so often, I see an "Array to string conversion" when users are saving their preferences.
Note; SV_SubscriberRemoved_XenForo_DataWriter_User doesn't do anything before the call to parent::_postSave()
Code:
ErrorException: Array to string conversion - library/XenForo/Model/UserChangeLog.php:113
Generated By: xxx, 22 minutes ago
#0 [internal function]: XenForo_Application::handlePhpError(8, 'Array to string...', '/var/www/sites/...', 113, Array)
#1 /var/www/sites/www/library/XenForo/Model/UserChangeLog.php(113): strval(Array)
#2 /var/www/sites/www/library/XenForo/Model/User.php(3108): XenForo_Model_UserChangeLog->logChanges(310668, Array, NULL)
#3 /var/www/sites/www/library/XenForo/DataWriter/User.php(1077): XenForo_Model_User->logChanges(310668, Array)
#4 /var/www/sites/www/library/SV/SubscriberRemoved/XenForo/DataWriter/User.php(6): XenForo_DataWriter_User->_postSave()
#5 /var/www/sites/www/library/XenForo/DataWriter.php(1409): SV_SubscriberRemoved_XenForo_DataWriter_User->_postSave()
#6 /var/www/sites/www/library/XenForo/ControllerPublic/Account.php(761): XenForo_DataWriter->save()
#7 /var/www/sites/www/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Account->actionPreferencesSave()
#8 /var/www/sites/www/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /var/www/sites/forums.spacebattles.com/html/index.php(13): XenForo_FrontController->run()
#10 {main}
array(4) {
["url"] => string(56) "https://forums.spacebattles.com/account/preferences-save"
["_GET"] => array(1) {
["/account/preferences-save"] => string(0) ""
}
["_POST"] => array(16) {
["style_id"] => string(1) "5"
["language_id"] => string(1) "1"
["timezone"] => string(19) "America/Los_Angeles"
["default_watch_state"] => string(1) "1"
["enable_rte"] => string(1) "1"
["content_show_signature"] => string(1) "1"
["visible"] => string(1) "1"
["activity_visible"] => string(1) "1"
["enable_flash_uploader"] => string(1) "0"
["custom_fields"] => array(1) {
["userMargins"] => string(1) "1"
}
["custom_fields_shown"] => array(4) {
[0] => string(11) "userMargins"
[1] => string(17) "disableResponsive"
[2] => string(18) "disableQuoteExpand"
[3] => string(14) "disableTwitter"
}
["_xfToken"] => string(8) "********"
["save"] => string(12) "Save Changes"
["_xfRequestUri"] => string(75) "/"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Note; SV_SubscriberRemoved_XenForo_DataWriter_User doesn't do anything before the call to parent::_postSave()