Skip to main content

Drupal 8 Custom Block Not Displaying?

Did you recently create a simple custom content block, or perhaps a simple menu that you want to add to your sidebar, but no matter what you do the block does not appear in the specified region of your theme?

Chances are, you’re using the PHP filter module, and not using any PHP code, which is a unique “feature” of the block system in Drupal 8 causing the block to be ignored.

All you need to do is “negate the condition” of the PHP filter (if you have none entered) and the block will display correctly.

If you’re anything like me, this will hopefully save you several hours of hair pulling.Screen Shot 2016-05-16 at 10.44.23 AM

Upgrade Drupal 6 to Drupal 8!

The amazing team at Acquia have done it, and added support for upgrading from Drupal 6 to Drupal 8. Natively supporting a full migration that bypasses Drupal 7 altogether.

And the best part is that it’s actually quite easy! So, assuming you have a proper webserver setup:

  1. Install Drush: http://docs.drush.org/en/master/install/
  2. Create your Drupal database
  3. Install Drupal and migrate from your previous D6 install:
Keep in mind there are still a few major drawbacks, so it’s not entirely done at this point:

  • entityreference, user_reference and node_reference will not have migrated
    • Also a timesaver: The bundle column in field tables will correspond to the node type in D8, rather than simply node
  • User profile images will more than likely be null and require a re-upload depending on how your previous public/private file system was setup in Drupal 6
  • Views will not be migrated as they’ve been restructured and worked directly into Drupal core

Happy migrating, and as always if I can help let me know!