TheCarlwood
Member
I'm getting this error on my forum:
I believe I've found the cause of it as well. I just upgraded from XF1 to XF2, and I checked the user and the user_profile tables... for some reason, the IDs in the user_profile tables got messed up along the way. The row count is the same so no data is missing. It goes from 1 -> 6286 and counts incrementally, when before it was 1 -> 5... not sure why the next user id is 5 but it is a lot more reasonable and there isn't a 6000 id gap in sight. Not every profile is broken but this is filling up my error logs. I can't even edit these users within the admin panel and I'm not really sure how to fix it. I've found the relevant template section and looked within the cache file that it ultimately leads to, but this seems like something went a little wrong during the upgrade possibly. I don't see a tool to validate the database within the admin panel to check this.
Any ideas?
#0 [internal function]: XF\Template\Templater->fnProfileBanner(Object(ThemeHouse\UIX\XF\Template\Templater), false, Object(XFMG\XF\Entity\User), 'l', false, Array, '
<div clas...')
#1 src/XF/Template/Templater.php(1103): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l1/s4/public/member_view.php(220): XF\Template\Templater->func('profile_banner', Array)
#3 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, NULL)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('member_view', Array)
#5 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#6 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Member\\View', 'public:member_v...', Array)
#7 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#11 src/XF.php(488): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
I believe I've found the cause of it as well. I just upgraded from XF1 to XF2, and I checked the user and the user_profile tables... for some reason, the IDs in the user_profile tables got messed up along the way. The row count is the same so no data is missing. It goes from 1 -> 6286 and counts incrementally, when before it was 1 -> 5... not sure why the next user id is 5 but it is a lot more reasonable and there isn't a 6000 id gap in sight. Not every profile is broken but this is filling up my error logs. I can't even edit these users within the admin panel and I'm not really sure how to fix it. I've found the relevant template section and looked within the cache file that it ultimately leads to, but this seems like something went a little wrong during the upgrade possibly. I don't see a tool to validate the database within the admin panel to check this.
Any ideas?