Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Related to issue https://www.drupal.org/node/2429187
Though the patch from the related issue above was applied, over time, nodes may still point to unpublished content. Cron runs can be utilized to check for this occurrence and re-point the prev/next NIDs to published nodes using the modify function.
Comments
Comment #1
dysproseum CreditAttribution: dysproseum commentedCreated patch to query for unpublished nodes in cron run and update them accordingly using the module's modify function.
Comment #2
dysproseum CreditAttribution: dysproseum commentedComment #3
fran seva CreditAttribution: fran seva as a volunteer and commentedI have reviewed the patch and looks good for me. I have also applied the patch in a site and test it and works as expected. It cleans the unpublished nodes from prev_next_node table in each cron.
Comment #4
fran seva CreditAttribution: fran seva as a volunteer and commented