XF 2.1 Error when upgrading

Stuart Wright

Well-known member
The upgrade timed out (I was doing it via /install/ rather than a server command.)
So I hit back and it re-did some steps and then

InvalidArgumentException: Table 'xf_liked_content' does not exist so cannot be altered in src/XF/Db/Schema/Alter.php at line 38
  1. XF\Db\Schema\Alter->__construct() in src/XF/Db/SchemaManager.php at line 223
  2. XF\Db\SchemaManager->newAlter() in src/XF/Db/SchemaManager.php at line 144
  3. XF\Db\SchemaManager->alterTable() in src/XF/Install/InstallHelperTrait.php at line 572
  4. XF\Install\Upgrade\AbstractUpgrade->alterTable() in src/XF/Install/Upgrade/2010010-210a.php at line 545
  5. XF\Install\Upgrade\Version2010010->step33() in src/XF/Install/Controller/Upgrade.php at line 173
  6. XF\Install\Controller\Upgrade->actionRun() in src/XF/Mvc/Dispatcher.php at line 321
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2155
  11. XF\App->run() in src/XF.php at line 389
  12. XF::runApp() in install/index.php at line 14
 
You generally wouldn't want to hit back as it may try to re-run a step, rather than just refreshing (assuming the browser displayed a timeout page).

Given your site size though, we really would strongly recommend a CLI upgrade. There are queries that may take quite a significant amount of time (many minutes) to run on a large data set. If you get a browser timeout, you won't actually know the state of the query in question without looking at the MySQL process list anyway (to know when it's safe to continue).
 
You can try picking up the CLI upgrade from here, as it's probably marked step 33 as finished and thus may pickup from 34 (which is probably where the timeout happened).

If not, there is likely some hacking that could sort the issue, but the simplest recommendation would be to restore to a pre-upgrade backup and redo it via the CLI.
 
Top Bottom