XF 1.4 Errors in log when editing style

m1ne

Well-known member
Hey all.

I thought this was a featured threads problem, but it seems it's an issue with editing templates and style properties with the entire theme (ui.x). The error:

Error info
Code:
ErrorException: unserialize(): Error at offset 0 of 1 bytes - library/XenForo/Model/StyleProperty.php:1556
Generated By: Solidus, 1 minute ago

Stack trace
Code:
#0 [internal function]: XenForo_Application::handlePhpError(8, 'unserialize(): ...', '/var/www/vhosts...', 1556, Array)
#1 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Model/StyleProperty.php(1556): unserialize('1')
#2 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Model/StyleProperty.php(1591): XenForo_Model_StyleProperty->prepareStyleProperty(Array, 49)
#3 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Model/StyleProperty.php(397): XenForo_Model_StyleProperty->prepareStyleProperties(Array, 49)
#4 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Model/StyleProperty.php(416): XenForo_Model_StyleProperty->prepareStylePropertyGroup(Array, 49)
#5 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ControllerAdmin/Style.php(299): XenForo_Model_StyleProperty->prepareStylePropertyGroups(Array, 49)
#6 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_Style->actionStyleProperties()
#7 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /var/www/vhosts/wweforums.net/httpdocs/admin.php(13): XenForo_FrontController->run()
#9 {main}

Request state
Code:
array(3) {
  ["url"] => string(79) "http://wweforums.net/admin.php?styles/wwe-forums.49/style-properties&group=form"
  ["_GET"] => array(2) {
    ["styles/wwe-forums_49/style-properties"] => string(0) ""
    ["group"] => string(4) "form"
  }
  ["_POST"] => array(0) {
  }

Any idea? Thanks.
 
Oh, and I can also export then import the style and no errors are present. It's just the dropdown menu's break on import for some reason.
 
Now getting this trying to upgrade to 1.4.4, board is stuck closed.

Code:
unserialize(): Error at offset 0 of 1 bytes

XenForo_Application::handlePhpError()
unserialize() in XenForo/Model/StyleProperty.php at line 672
XenForo_Model_StyleProperty->updatePropertyCacheInStyle() in XenForo/Model/StyleProperty.php at line 642
XenForo_Model_StyleProperty->rebuildPropertyCacheInStyleAndChildren() in XenForo/Model/StyleProperty.php at line 2436
XenForo_Model_StyleProperty->importStylePropertiesFromArray() in XenForo/Model/StyleProperty.php at line 2307
XenForo_Model_StyleProperty->importStylePropertyXml() in XenForo/Model/StyleProperty.php at line 2240
XenForo_Model_StyleProperty->importStylePropertyDevelopmentXml() in XenForo/Deferred/ImportMasterData.php at line 26
XenForo_Deferred_ImportMasterData->execute() in XenForo/Deferred/Atomic.php at line 66
XenForo_Deferred_Atomic->execute() in XenForo/Model/Deferred.php at line 294
XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 428
XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 354
XenForo_Model_Deferred->runByUniqueKey() in XenForo/Install/Controller/Abstract.php at line 34
XenForo_Install_Controller_Abstract->_manualDeferredRunner() in XenForo/Install/Controller/Upgrade.php at line 221
XenForo_Install_Controller_Upgrade->actionRunDeferred() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /var/www/vhosts/wweforums.net/httpdocs/install/index.php at line 18
 
It would indicate that you have a corrupted value for a style property (specifically one that should be a CSS property that appears to just be a boolean value). You'd need to find and revert that value via the customized components page. (You can get into your control panel during the upgrade by putting $config['checkVersion'] = false; in your config.php file temporarily.)
 
Top Bottom