No node is pulled to display

Created on 11 November 2024, 5 months ago

I usually share error logs, but for this case, I have no error log and no clue at all.
It just does not pick up any nodes, despite the nearly identical set up with a fresh installed Drupal website.

I am on D11, and for a live website, I cannot see any post pulled to Flippy's block.
The Flippy block is empty, while I have over 1,000 nodes in each content type.
With the same setting, (at least from what I can tell), on a waging website, it does pick up prev/next nodes, but just can't figure out why it doesn't work on the live one.

I cannot find any trace of error from error log or with verbose in settings.

I have created multiple copy sites and tested with layout builder / no layout builder, display w/ field group w/o field group, along with custom view options, etc etc, but I just cannot see any node pulled to the Flippy's block.

Can you please help me to do debugging? Just want to know how or where to start. I am completely lost.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡°πŸ‡·South Korea keithlee_giai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @keithlee_giai
  • πŸ‡°πŸ‡·South Korea keithlee_giai

    I just found that in layout builder edit mode -> Manage attributes -> Block / Block title / Block content attributes, all fields (ID, Class, Style, Data-*attributes) are empty. Do I have to specify what values should be pulled?

    I am new to Drupal, and I am really new to Layout Builder, so it is only a guess, but for other modules that deal with block layout, whatever the setting I make in Drupal's native UI (ex. structure -> contents type -> Edit / Manage display), no settings were effective. I had to re-define any value in Layout Builder, especially the ones with 'Manage attributes'.

    Just wonder if this might be related to Flippy not picking up any node. If so, can you plz help me what value I should use for Data-*attributes? (ID/Class/Style should follow typical HTML grammar, I assume.)

  • πŸ‡ΏπŸ‡¦South Africa kanthan

    It turns out that my nodes (migrated from Drupal 7) had langcode set to "und" while flippy was explicitly looking for system default langcode ("en") in my case. Once I changed langcode on my content to "en", it worked properly.

    stretta:flippy kanthan$ ddev drush sql:query "SELECT DISTINCT langcode FROM node_field_data WHERE type = 'node_gallery_item';"
    
    und
    
    stretta:flippy kanthan$ ddev drush sql:query "UPDATE node_field_data SET langcode = 'en' WHERE type = 'node_gallery_item';"
    
    stretta:flippy kanthan$ ddev drush cr
     [success] Cache rebuild complete.
    stretta:flippy kanthan$ ddev drush sql:query "SELECT DISTINCT langcode FROM node_field_data WHERE type = 'node_gallery_item';"
    en
    
    

    Doesn't really count as a bug in my book; just needs to be documented as a gotcha.

Production build 0.71.5 2024