unserialize(): Error at offset 0 of 18 bytes

I’m doing a migration from Drupal 7 to Drupal 8. Its utilizing a MYSQL database (Server model: 8.0.26-0ubuntu0.20.04.2 (Ubuntu)). With this one specific node kind after I drush cr after which reload Drupal Developer web page I’m given Drupal Developer following error:

Discover: unserialize(): Error at offset 0 of 18 bytes in DrupalCoreEntitySqlSqlContentEntityStorage->loadFromDedicatedTables() (line 1288 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).  DrupalCoreEntitySqlSqlContentEntityStorage->loadFromDedicatedTables(Array, ) (Line: 524) DrupalCoreEntitySqlSqlContentEntityStorage->mapFromStorageRecords(Array) (Line: 449) DrupalCoreEntitySqlSqlContentEntityStorage->getFromStorage(Array) (Line: 415) DrupalCoreEntitySqlSqlContentEntityStorage->doLoadMultiple(Array) (Line: 300) DrupalCoreEntityEntityStorageBase->loadMultiple(Array) (Line: 139) DrupalCoreFieldPluginFieldFieldFormatterEntityReferenceFormatterBase->prepareView(Array) (Line: 245) DrupalCoreEntityEntityEntityViewDisplay->buildMultiple(Array) (Line: 351) DrupalCoreEntityEntityViewBuilder->buildComponents(Array, Array, Array, 'full') (Line: 24) DrupalnodeNodeViewBuilder->buildComponents(Array, Array, Array, 'full') (Line: 293) DrupalCoreEntityEntityViewBuilder->buildMultiple(Array) (Line: 250) DrupalCoreEntityEntityViewBuilder->construct(Array) call_user_func_array(Array, Array) (Line: 100) DrupalCoreRenderRenderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks should be strategies of a category that implements DrupalCoreSecurityTrustedCallbackInterface or be an nameless operate. Drupal Development callback was %s. Help for this callback implementation is deprecated in 8.8.0 and can be eliminated in Drupal 9.0.0. See https://www.drupal.org/node/2966725', 'silenced_deprecation', 'DrupalCoreRenderElementRenderCallbackInterface') (Line: 781) DrupalCoreRenderRenderer->doCallback('#pre_render', Array, Array) (Line: 372) DrupalCoreRenderRenderer->doRender(Array, ) (Line: 200) DrupalCoreRenderRenderer->render(Array, ) (Line: 226) DrupalCoreRenderMainContentHtmlRenderer->DrupalCoreRenderMainContent{closure}() (Line: 573) DrupalCoreRenderRenderer->executeInRenderContext(Object, Object) (Line: 227) DrupalCoreRenderMainContentHtmlRenderer->put together(Array, Object, Object) (Line: 117) DrupalCoreRenderMainContentHtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) DrupalCoreEventSubscriberMainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) call_user_func(Array, Object, 'kernel.view', Object) (Line: 111) DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156) SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 68) SymfonyComponentHttpKernelHttpKernel->deal with(Object, 1, 1) (Line: 57) DrupalCoreStackMiddlewareSession->deal with(Object, 1, 1) (Line: 47) DrupalCoreStackMiddlewareKernelPreHandle->deal with(Object, 1, 1) (Line: 106) Drupalpage_cacheStackMiddlewarePageCache->cross(Object, 1, 1) (Line: 85) Drupalpage_cacheStackMiddlewarePageCache->deal with(Object, 1, 1) (Line: 47) DrupalCoreStackMiddlewareReverseProxyMiddleware->deal with(Object, 1, 1) (Line: 52) DrupalCoreStackMiddlewareNegotiationMiddleware->deal with(Object, 1, 1) (Line: 23) StackStackedHttpKernel->deal with(Object, 1, 1) (Line: 708) DrupalCoreDrupalKernel->deal with(Object) (Line: 19) 

From messing round I can see that its brought on by a entity reference area. I’m utilizing Drupal Developer bootstrap 4 theme and have a template override. Drupal Development over journey for that individual area is as follows:

      {% if content material.field_business.0%}         <div class="dimension col-xs-12 col-md-4 col-lg-2 text-break">           <p>Retailer: {{ content material.field_business.0 }}</p>         </div>       {% endif %}       </div> 

Taking a look at Drupal Developer database desk for Drupal Developer specific node and Drupal Developer remainder of them I carn’t see any junk knowledge:

mysql> desc node__field_business; +--------------------------+--------------+------+-----+---------+-------+ | Subject                    | Sort         | Null | Key | Default | Further | +--------------------------+--------------+------+-----+---------+-------+ | bundle                   | varchar(128) | NO   | MUL |         |       | | deleted                  | tinyint      | NO   | PRI | 0       |       | | entity_id                | int unsigned | NO   | PRI | NULL    |       | | revision_id              | int unsigned | NO   | MUL | NULL    |       | | langcode                 | varchar(32)  | NO   | PRI |         |       | | delta                    | int unsigned | NO   | PRI | NULL    |       | | field_business_target_id | int unsigned | NO   | MUL | NULL    |       | +--------------------------+--------------+------+-----+---------+-------+ 7 rows in set (0.01 sec)  mysql> choose entity_id, field_business_target_id from node__field_business the place entity_id="429"; +-----------+--------------------------+ | entity_id | field_business_target_id | +-----------+--------------------------+ |       429 |                      267 | +-----------+--------------------------+ 1 row in set (0.00 sec)  mysql>  

There additionally doesn’t appear to be something in Drupal Developer apache2 error.log:

o 4.8                                                      error.log                                                                  [Sun Oct 03 00:00:21.635998 2021] [mpm_prefork:notice] [pid 1757] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming regular operations [Sun Oct 03 00:00:21.636036 2021] [core:notice] [pid 1757] AH00094: Command line: '/usr/sbin/apache2' [Sun Oct 03 01:19:18.993276 2021] [mpm_prefork:notice] [pid 1757] AH00169: caught SIGTERM, shutting down [Sun Oct 03 10:13:42.699740 2021] [mpm_prefork:notice] [pid 1666] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming regular operations [Sun Oct 03 10:13:42.709982 2021] [core:notice] [pid 1666] AH00094: Command line: '/usr/sbin/apache2' [Sun Oct 03 13:23:39.109602 2021] [mpm_prefork:notice] [pid 1666] AH00169: caught SIGTERM, shutting down [Sun Oct 03 19:14:05.151979 2021] [mpm_prefork:notice] [pid 1678] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming regular operations [Sun Oct 03 19:14:05.152317 2021] [core:notice] [pid 1678] AH00094: Command line: '/usr/sbin/apache2' 

Has anybody acquired any concepts how I might bother shoot this? I’m fairly certain its not Drupal Developer theme template thats inflicting Drupal Developer problem, since I rename Drupal Developer template (so its not used), clear Drupal Developer cache and Drupal Developer error remains to be there after I refresh Drupal Developer web page. So far as I can see Drupal Developer knowledge in desk in seems to be okay to me.

Any assistance is enormously appreciated,

Mark.

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

unserialize(): Error at offset 0 of 18 bytes

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.