question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

next/prev post display missing when post slug contains `null` first

See original GitHub issue

Issue Summary

Next/prev posts fail to render when the post slug’s first word is null. For example, yourdomain.com/null-island. There were no console errors to report with this. It looks as though everything except the next/prev post is functioning as expected.

Steps to Reproduce

  1. Create a new post
  2. Set post slug to include the first word as null, e.g. null-island.
  3. Publish the post
  4. View the post; next/prev posts are missing

What one might expect to see is a preview of the next and previous post, e.g.

The next/prev posts display if the post slug is changed so that null is not the first word used.

Technical details:

  • Ghost Version: 1.17.2 / 1.17.3
  • Browser/OS: Tested in Chrome, Safari / MacOS El Capitan
  • Database: mysql

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ErisDScommented, Nov 29, 2017

Will take a look at this as part of the GQL re-work.

0reactions
ErisDScommented, Jan 23, 2019

Closing as it is tracked here: https://github.com/NexesJS/NQL-Lang/issues/1

Read more comments on GitHub >

github_iconTop Results From Across the Web

get_next_post options - page 2 - WordPress.org
if the post has several categories, let's say: first, second and third category ... Check if post has terms if so then show...
Read more >
How do I retrieve the slug of the current page?
Display the page or post slug * * Uses get_the_slug() and applies 'the_slug' filter. * * @param int|WP_Post|null $id (Optional) Post ID or...
Read more >
Django: You are trying to add a non-nullable field 'slug' to post ...
Django can't add a new field by itself without null values being allowed here, especially when you have unique=True set on this field....
Read more >
How to Identify and Drop Null Values for Handling Missing ...
Python pandas tutorial for finding missing values in python pandas ... After that I have shown you how you can view the missing...
Read more >
Problems with adding NOT NULL columns or making nullable ...
This is a guest post from Phil Factor. Phil Factor (real name withheld to protect the guilty), aka Database Mole, has 30 years...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found