XF 2.0 Get this error during update from 1.5 to XF Beta 3

bosss

Member
Code:
XF\Db\Exception: MySQL statement prepare error [1146]: Table 'mysite_xenforo.xf_thread_field' doesn't exist in src/XF/Db/AbstractStatement.php at line 183

    XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 34
    XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 44
    XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 67
    XF\Db\AbstractAdapter->query() in src/XF/Mvc/Entity/Finder.php at line 1139
    XF\Mvc\Entity\Finder->fetch() in src/XF/Repository/AbstractField.php at line 109
    XF\Repository\AbstractField->getFieldCacheData() in src/XF/Repository/AbstractField.php at line 138
    XF\Repository\AbstractField->rebuildFieldCache() in src/XF/Job/CoreCacheRebuild.php at line 31
    XF\Job\CoreCacheRebuild->run() in src/XF/Job/Atomic.php at line 38
    XF\Job\Atomic->run() in src/XF/Job/Manager.php at line 241
    XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 187
    XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 138
    XF\Job\Manager->runUnique() in src/XF/Install/Controller/AbstractController.php at line 25
    XF\Install\Controller\AbstractController->manualJobRunner() in src/XF/Install/Controller/Upgrade.php at line 225
    XF\Install\Controller\Upgrade->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 249
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 89
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1787
    XF\App->run() in src/XF.php at line 326
    XF::runApp() in install/index.php at line 14

Some help?

regards

Bosss
 
After that query above - get this error

Code:
Upgrade errors
Uh oh, your upgrade to 2.0.0 Beta 3 has failed! The following elements of the database are incorrect:

    Column xf_conversation_message.like_users missing.
    Column xf_forum.field_cache missing.
    Column xf_thread.custom_fields missing.

This is likely caused by an add-on conflict. You may need to restore a backup, remove the offending add-on data from the database, and retry the upgrade. Contact support if you are not sure how to proceed.
 
:unsure:

I mean, I was sort of expecting something similar, but it doesn't help it make any more sense. If only you had a backup! We might have been able to track down the cause of this by running the upgrade again.

At this point, this isn't really recoverable, so it might be a case of just starting again.
 
Thanks - now i see site "half works" - can i maybe save my posts or threads and move them to new installation?

take a look please - http://ww.newlibar.com/xf

regards and thanks

bosss

maybe a start upgrade proccess from begining?

Without a backup, you can't restart the upgrade process because it's already been partially done.

This is a very strange issue.

You really should've made a backup... :(

Liam
 
I've yet seen a XenForo database that was corrupted beyond repair (unless physically damaged), though fixing an inconsistent schema does require expert knowledge and time, you you have weigh if it's worth the effort or if starting over makes more sense.

If you want to give it a try feel free to msg me.
 
When i try post on my site - get this error

Code:
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'custom_fields' in 'field list' in src/XF/Db/AbstractStatement.php at line 183

    XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 34
    XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 44
    XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 67
    XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 144
    XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1714
    XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1458
    XF\Mvc\Entity\Entity->save() in src/XF/Service/Thread/Creator.php at line 279
    XF\Service\Thread\Creator->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
    XF\Service\Thread\Creator->save() in src/XF/Pub/Controller/Forum.php at line 704
    XF\Pub\Controller\Forum->actionPostThread() in src/XF/Mvc/Dispatcher.php at line 249
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 89
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1787
    XF\App->run() in src/XF.php at line 326
    XF::runApp() in index.php at line 13
Edit
Some help!

only when want post new thread - reply works fine!
 
Last edited:
Top Bottom