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

XF 1.4 Errors in log when editing style

Discussion in 'Troubleshooting and Problems' started by Solidus, Jan 10, 2015.

  1. Solidus

    Solidus 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.
     
  2. Amaury

    Amaury Well-Known Member

    Do you get the same errors when editing the default XenForo style?
     
  3. Solidus

    Solidus Well-Known Member

    No I don't.
    These errors on started when I tried to update featured threads, which failed initially.
     
  4. Solidus

    Solidus Well-Known Member

    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.
     
  5. Amaury

    Amaury Well-Known Member

    If it only happens with the UI.X style, it'd be best to contact @Mike Creuzer or post in the style thread.
     
  6. Mike Creuzer

    Mike Creuzer Well-Known Member

    Heh well, we don't do anything funky with add-ons just yet, just style properties. So I cannot imagine how that error would occur.
     
  7. Solidus

    Solidus Well-Known Member

    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
     
  8. Mike

    Mike XenForo Developer Staff Member

    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.)
     

Share This Page