0

[Resolved]: Drupal 8 block content disappeared after update Drupal core to 8.5.x

Drupal 8 block content disappeared after update Drupal core to 8.5.x

Overview.

For same reasons, after make update the Drupal core from 8.4.x to 8.5.x version, some of custom blocks will be disapeared for anonymous users.

The cause of problem is, block status field has been set to NULL in database and there is no option to change it in block edit/settings page.

Solutions.

You can follow the step below to resolve the issue. There is no PHP error and no prolem with the user permissions.

  • Install module Devel
  • Go to http://yoursite/devel/php
  • Enter PHP code below and execute it.

    $query = \Drupal::entityQuery('block_content');
    //Select blocks with status field is NULL
    $query->notExists('status');
    $block_ids = $query->execute();
    foreach($block_ids as $block_id){
      $block = \Drupal\block_content\Entity\BlockContent::load($block_id);
        //Update block status
      $block->set('status', 1)->save();
    };
    
  • Flush Drupal Cache.
  • Done

Comments

aadilkhan9409

The IT sector has developed the best ever game for the enjoyment and you all will feel with full of enjoyment bloons tower defense 5 online this maximum played game many person can play it same on time to enjoyed it.

kaicoe

The content of the resolved site is removed for the convenience of the newcomers of the community. The aspects of the society and https://www.resumeshelpservice.com/resumesplanet-com-review/ have been punctuated for the use of the tings for the candidates. The solved content is precious for the beginners of the community.

arainhuzaifa37

Wonderful blog post. This is absolute magic from you! I have never seen a more wonderful post than this one. You've really made my day today with this. I hope you keep this up! essay editing service uk

yadavtheddie007

Hello Friends If you want to get an online loans, you can get an instant loan on payday no credit check payday loans instant approval You will not even need to check the credit

itsfrancescamolly

A standout amongst the best supergroups of that decade and one of few as yet earning airplay, assignment help companies they made an interesting brand of Celtic-impacted elective shake that transformed them into worldwide easily recognized names.

heatherrosado4

Amplify Drupal's adaptability with protest arranged code and the most recent PHP measures. A portion of the best-known advances are presently part of Drupal 8. It relies upon many outer libraries like Composer, Guzzle, and Symfony2 so you can compose and investigate code speedier, with more certainty. Say farewell to PHPTemplate; depend on significantly more discernable code while theming with Twig. Furthermore, utilize less complex, more bound together APIs to add capacity to your modules and topics. TV series wool Coat

Jacobarch02

One of the best supergroups of the decade, and a few have not yet earned airplay, do my assignment | assignmentsquare.co.uk, they made an interesting brand of Celtic influence electives, making them world-recognizable names .

claraalbert394

I used to be running on my drawing, using blocks: open block editor, edit block, near editor via clicking cross of last block editor, then autocad asks me if I want to save modifications, I click sure. And one time I clicked the smaller move, which closes the whole drawing, and intuitionally clicked to save it. assignment writing service

offpageseo69

Great survey. I'm sure you're getting a great response. Remedies For Ear Infections

offpageseo69

I am impressed by the information that you have on this blog. It shows how well you understand this subject. Remedies for Dizziness

offpageseo69

This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. Papaya Seeds

offpageseo69

Well, this got me thinking what other workouts are good for those of us who find ourselves on the road or have limited equipment options. Passion Fruit

offpageseo69

This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post. Benefits of Massage

offpageseo69

Took me time to understand all of the comments, but I seriously enjoyed the write-up. It proved being really helpful to me and Im positive to all of the commenters right here! Its constantly nice when you can not only be informed, but also entertained! I am certain you had enjoyable writing this write-up. Remedies for Stress

offpageseo69

You have done a amazing job with you website Remedies for Depression

offpageseo69

Very good article. I like this article too much and really impressed with this article. I was looking the same post here. I am very impressed with this post. Thanks for this nicely sharing. Baking Soda

infonicnisha

Best Assignment Makers New Zealand at StudentsAssignmentHelp.com is continue working to complete your work well before the given deadline. We are available for students at every hour of day or night and make sure all your requests are proceeded successfully.

donaldjordan.a

Very interesting points you've mentioned here, especially the third one that got my attention. Blade Runner 2049 Coat

Carrentals.pk

All things considered, this made me think what different exercises are useful for those of us who wind up out and about or have constrained hardware alternatives.

Rent a car in Karachi

mjjones733

A teacher always has too many responsibilities to follow. From making a class enjoyable to improving the performance of the class; he/she has to keep an eye on each of the details. Assist them, or you can also take online assignment help services which will enable them to accomplish their work within deadline.

mjjones733

you can go through Allassignmenthelp.com reviews. It will help you to know about the services, and it will help you to know whether that site is reliable or not. This is a way of understanding the opinion of users, and it helps the website to maintain its functionality and reliability.

offpageseo69

I have recently started a blog, the info you provide on this site has helped me greatly. Thanks for all of your time & work Whatsapp Group Link

rima.sharma002016

Find the best Navratri images, greetings and pictures here. ... Maa Durge, Maa Ambe, Maa Jagdambe, Maa Bhawani, Maa Sheetla, Maa Vaishnao, Maa Chandi, Mata Rani meri aur apki manokamna puri...