How to recover 1 missing view and webform out of many after moving Drupal 9 site to another server?

After moving my Drupal 9 site to a different server I see all views in the Views UI, but one. Same with one webform. All are there, but one. I looked in the config database table and the view and blocks are listed there. I don’t know if this is a mismatched UUID problem or what. Anybody have any pointers, how I can get that view and webform to show up? I just imported the same Database that was working for the original Drupal 9 site. Do I really have to rebuild them? Seems like a lot of hassle for nothing, since they are in the database.

On the pages where the views blocks were placed, I get of course an error, since the view doesn’t exist:

The "views_block:post_other-block_16" was not found

And on the webform page I get an array_flipped error because I think it can’t find the webform:

Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalCoreEntityEntityStorageBase->loadMultiple() (line 312 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).

 #0 /code/web/core/includes/bootstrap.inc(346): _drupal_error_handler_real(2, 'array_flip(): C...', '/code/web/core/...', 312) #1 [internal function]: _drupal_error_handler(2, 'array_flip(): C...', '/code/web/core/...', 312, Array) #2 /code/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(312): array_flip(Array) #3 /code/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(296): DrupalCoreEntityEntityStorageBase->loadMultiple(Array) #4 /code/web/core/lib/Drupal/Core/Entity/EntityBase.php(488): DrupalCoreEntityEntityStorageBase->load(NULL) #5 /code/web/modules/webform/src/Element/Webform.php(39): DrupalCoreEntityEntityBase::load(NULL) #6 [internal function]: DrupalwebformElementWebform::preRenderWebformElement(Array) #7 /code/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array) #8 /code/web/core/lib/Drupal/Core/Render/Renderer.php(772): DrupalCoreRenderRenderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\Core\Ren...') #9 /code/web/core/lib/Drupal/Core/Render/Renderer.php(363): DrupalCoreRenderRenderer->doCallback('#pre_render', Array, Array) #10 /code/web/core/lib/Drupal/Core/Render/Renderer.php(201): DrupalCoreRenderRenderer->doRender(Array, false) #11 /code/web/core/lib/Drupal/Core/Template/TwigExtension.php(479): DrupalCoreRenderRenderer->render(Array) #12 /tmp/rolling/307daff/twig/62284c7206d49_block.html.twig_YWDIpA9i5iaaxIfEH0V1uiMIi/DhVi_sH7DeCKnQFvchxBoEwg5qJtLd0Y0F8pnu-fjXo.php(92): DrupalCoreTemplateTwigExtension->escapeFilter(Object(DrupalCoreTemplateTwigEnvironment), Array, 'html', NULL, true) #13 /code/vendor/twig/twig/src/Template.php(182): __TwigTemplate_3f6686c69176c19ba2b4617cb6325e0a5e759df93b196fc5091701776094356f->block_content(Array, Array) #14 /tmp/rolling/307daff/twig/62284c7206d49_block.html.twig_YWDIpA9i5iaaxIfEH0V1uiMIi/DhVi_sH7DeCKnQFvchxBoEwg5qJtLd0Y0F8pnu-fjXo.php(76): TwigTemplate->displayBlock('content', Array, Array) #15 /code/vendor/twig/twig/src/Template.php(405): __TwigTemplate_3f6686c69176c19ba2b4617cb6325e0a5e759df93b196fc5091701776094356f->doDisplay(Array, Array) #16 /code/vendor/twig/twig/src/Template.php(378): TwigTemplate->displayWithErrorHandling(Array, Array) #17 /code/vendor/twig/twig/src/Template.php(390): TwigTemplate->display(Array) #18 /code/web/core/themes/engines/twig/twig.engine(55): TwigTemplate->render(Array) #19 /code/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/gavias_k...', Array) #20 /code/web/core/lib/Drupal/Core/Render/Renderer.php(422): DrupalCoreThemeThemeManager->render('block', Array) #21 /code/web/core/lib/Drupal/Core/Render/Renderer.php(201): DrupalCoreRenderRenderer->doRender(Array, false) #22 /code/web/modules/gavias_content_builder/includes/utilities.php(63): DrupalCoreRenderRenderer->render(Array) #23 /code/web/themes/gavias_kunco/gva_content_builder/gva_drupal_block.php(107): gavias_content_builder_render_block('webform_2') #24 /code/web/modules/gavias_content_builder/includes/frontend.php(110): element_gva_drupal_block->render_content(Array, '') #25 /code/web/modules/gavias_content_builder/includes/frontend.php(54): gavias_content_builder_render_element('gva_drupal_bloc...', Array) #26 /code/web/modules/gavias_content_builder/includes/frontend.php(22): gavias_content_builder_render_el(Array) #27 /code/web/modules/gavias_content_builder/src/Plugin/Field/FieldFormatter/GaviasContentBuilderFormatter.php(47): gavias_content_builder_frontend('[{"settings":{"...') #28 /code/web/core/lib/Drupal/Core/Field/FormatterBase.php(89): Drupalgavias_content_builderPluginFieldFieldFormatterGaviasContentBuilderFormatter->viewElements(Object(DrupalCoreFieldFieldItemList), 'en') #29 /code/web/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php(263): DrupalCoreFieldFormatterBase->view(Object(DrupalCoreFieldFieldItemList), 'en') #30 /code/web/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(340): DrupalCoreEntityEntityEntityViewDisplay->buildMultiple(Array) #31 /code/web/core/modules/node/src/NodeViewBuilder.php(24): DrupalCoreEntityEntityViewBuilder->buildComponents(Array, Array, Array, 'full') #32 /code/web/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(282): DrupalnodeNodeViewBuilder->buildComponents(Array, Array, Array, 'full') #33 /code/web/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(239): DrupalCoreEntityEntityViewBuilder->buildMultiple(Array) #34 [internal function]: DrupalCoreEntityEntityViewBuilder->build(Array) #35 /code/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array) #36 /code/web/core/lib/Drupal/Core/Render/Renderer.php(772): DrupalCoreRenderRenderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\Core\Ren...') #37 /code/web/core/lib/Drupal/Core/Render/Renderer.php(363): DrupalCoreRenderRenderer->doCallback('#pre_render', Array, Array) #38 /code/web/core/lib/Drupal/Core/Render/Renderer.php(201): DrupalCoreRenderRenderer->doRender(Array, false) #39 /code/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(241): DrupalCoreRenderRenderer->render(Array, false) #40 /code/web/core/lib/Drupal/Core/Render/Renderer.php(564): DrupalCoreRenderMainContentHtmlRenderer->DrupalCoreRenderMainContent{closure}() #41 /code/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(242): DrupalCoreRenderRenderer->executeInRenderContext(Object(DrupalCoreRenderRenderContext), Object(Closure)) #42 /code/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(132): DrupalCoreRenderMainContentHtmlRenderer->prepare(Array, Object(SymfonyComponentHttpFoundationRequest), Object(DrupalCoreRoutingCurrentRouteMatch)) #43 /code/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): DrupalCoreRenderMainContentHtmlRenderer->renderResponse(Array, Object(SymfonyComponentHttpFoundationRequest), Object(DrupalCoreRoutingCurrentRouteMatch)) #44 [internal function]: DrupalCoreEventSubscriberMainContentViewSubscriber->onViewRenderArray(Object(SymfonyComponentHttpKernelEventViewEvent), 'kernel.view', Object(DrupalComponentEventDispatcherContainerAwareEventDispatcher)) #45 /code/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(SymfonyComponentHttpKernelEventViewEvent), 'kernel.view', Object(DrupalComponentEventDispatcherContainerAwareEventDispatcher)) #46 /code/vendor/symfony/http-kernel/HttpKernel.php(163): DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch(Object(SymfonyComponentHttpKernelEventViewEvent), 'kernel.view') #47 /code/vendor/symfony/http-kernel/HttpKernel.php(80): SymfonyComponentHttpKernelHttpKernel->handleRaw(Object(SymfonyComponentHttpFoundationRequest), 1) #48 /code/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): SymfonyComponentHttpKernelHttpKernel->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) #49 /code/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): DrupalCoreStackMiddlewareSession->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) #50 /code/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): DrupalCoreStackMiddlewareKernelPreHandle->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) #51 /code/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupalpage_cacheStackMiddlewarePageCache->pass(Object(SymfonyComponentHttpFoundationRequest), 1, true) #52 /code/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupalpage_cacheStackMiddlewarePageCache->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) #53 /code/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) #54 /code/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) #55 /code/web/core/lib/Drupal/Core/DrupalKernel.php(708): StackStackedHttpKernel->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) #56 /code/web/index.php(19): DrupalCoreDrupalKernel->handle(Object(SymfonyComponentHttpFoundationRequest)) #57 {main}``` 
This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

How to recover 1 missing view and webform out of many after moving Drupal 9 site to another server?

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.