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

Fixed Invalid model 'XenForo_Model_BbCodeMediaSites' specified

Jeremy P

Well-known member
#1
When uninstalling an addon on 1.1.

  1. XenForo_Model::create() in XenForo/Model.php at line 113
  2. XenForo_Model->getModelFromCache() in XenForo/Model/AddOn.php at line 443
  3. XenForo_Model_AddOn->deleteAddOnMasterData() in XenForo/DataWriter/AddOn.php at line 197
  4. XenForo_DataWriter_AddOn->_postDelete() in XenForo/DataWriter.php at line 1716
  5. XenForo_DataWriter->delete() in XenForo/ControllerAdmin/AddOn.php at line 116
  6. XenForo_ControllerAdmin_AddOn->actionDelete() in XenForo/FrontController.php at line 310
  7. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
 

Andy.N

Well-known member
#7
Here is line 443 in that file
Code:
 $this->getModelFromCache('XenForo_Model_BbCodeMediaSites')->deleteBbCodeMediaSitesForAddOn($addOnId);
What character did I miss?
 

Andy.N

Well-known member
#12
Upon changing it Jeremy's suggestion, everytime I tried to uninstall an addon, I have this new error

Server Error

Mysqli prepare error: Table 'forum.xf_bb_code_media_sites' doesn't exist
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 661
  5. Zend_Db_Adapter_Abstract->delete() in XenForo/Model/BbCode.php at line 318
  6. XenForo_Model_BbCode->deleteBbCodeMediaSitesForAddOn() in XenForo/Model/AddOn.php at line 443
  7. XenForo_Model_AddOn->deleteAddOnMasterData() in XenForo/DataWriter/AddOn.php at line 197
  8. XenForo_DataWriter_AddOn->_postDelete() in XenForo/DataWriter.php at line 1716
  9. XenForo_DataWriter->delete() in XenForo/ControllerAdmin/AddOn.php at line 116
  10. XenForo_ControllerAdmin_AddOn->actionDelete() in XenForo/FrontController.php at line 310
  11. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  12. XenForo_FrontController->run() in /var/data/public/forum/admin.php at line 13
 

Jeremy P

Well-known member
#14
In complete honesty, I received that as well. Upgrading my test board went a little shaky so I just figured it was something I did. I ended up just commenting out like 443 of XenForo_Model_AddOn, none of the addons were tied to media sites anyway.
 
#20
same problem

Invalid model 'XenForo_Model_BbCodeMediaSites' specified

  1. XenForo_Model::create()inXenForo/Model.phpat line113
  2. XenForo_Model->getModelFromCache()inXenForo/Model/AddOn.phpat line443
  3. XenForo_Model_AddOn->deleteAddOnMasterData()inXenForo/DataWriter/AddOn.phpat line197
  4. XenForo_DataWriter_AddOn->_postDelete()inXenForo/DataWriter.phpat line1716
  5. XenForo_DataWriter->delete()inXenForo/ControllerAdmin/AddOn.phpat line116
  6. XenForo_ControllerAdmin_AddOn->actionDelete()inXenForo/FrontController.phpat line310
  7. XenForo_FrontController->dispatch()inXenForo/FrontController.phpat line132
  8. XenForo_FrontController->run()in/home/sconcaut/public_html/admin.phpat line13