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

XF 1.2 After 1.2.4, getting invalid model error

Discussion in 'Troubleshooting and Problems' started by Andy.N, Dec 19, 2013.

  1. Andy.N

    Andy.N Well-Known Member

    On PHP 5.5.7 and upgrade my XF to 1.2.4 this morning. @Mike
    Now, when I update an addon, received this error in ACP

    Code:
    Server Error
    Invalid model 'XenForo_Model_TemplateModification' specified
    
    XenForo_Model::create() in XenForo/Controller.php at line 101
    XenForo_Controller->getModelFromCache() in XenForo/ControllerAdmin/StyleAbstract.php at line 113
    XenForo_ControllerAdmin_StyleAbstract->_getModificationModel() in XenForo/ControllerAdmin/StyleAbstract.php at line 50
    XenForo_ControllerAdmin_StyleAbstract->_getTemplateAddEditResponse() in XenForo/ControllerAdmin/Template.php at line 90
    XenForo_ControllerAdmin_Template->actionEdit() in XenForo/FrontController.php at line 347
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in /home/nginx/domains/quantnet.com/public/admin.php at line 13
    On the main ACP, there is There are manual rebuild processes that have been stopped before completion. Click here to complete them.

    When I click on them, I will receive this error

    Code:
    Server Error
    
    Invalid model 'XenForo_Model_TemplateModification' specified
    
    XenForo_Model::create() in XenForo/DataWriter.php at line 1921
    XenForo_DataWriter->getModelFromCache() in XenForo/DataWriter/Template.php at line 562
    XenForo_DataWriter_Template->_getModificationModel() in XenForo/DataWriter/Template.php at line 180
    XenForo_DataWriter_Template->_verifyPrepareTemplate() in XenForo/DataWriter/Template.php at line 244
    XenForo_DataWriter_Template->reparseTemplate() in XenForo/Model/Template.php at line 1110
    XenForo_Model_Template->reparseTemplate() in XenForo/Model/Template.php at line 1167
    XenForo_Model_Template->reparseAllTemplates() in XenForo/Deferred/TemplateReparse.php at line 20
    XenForo_Deferred_TemplateReparse->execute() in XenForo/Deferred/Atomic.php at line 61
    XenForo_Deferred_Atomic->execute() in XenForo/Model/Deferred.php at line 252
    XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 378
    XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 331
    XenForo_Model_Deferred->run() in XenForo/ControllerAdmin/Tools.php at line 147
    XenForo_ControllerAdmin_Tools->actionRunDeferred() in XenForo/FrontController.php at line 347
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in /home/nginx/domains/quantnet.com/public/admin.php at line 13
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Attempt to re-upload your files.
     
  3. Andy.N

    Andy.N Well-Known Member

    Thanks all.
    Downloading 1.2.4 again and uploading all the files via FTP help. It's a bit weird since I have been upgrading my site by ftp the zip file, unzip, overwrite the files without problem. It's much faster that way.
     
    Adam Howard likes this.
  4. SneakyDave

    SneakyDave Well-Known Member

    Maybe your zip file was corrupt? That has happened to me in the past.
     

Share This Page