Make WordPress Core

Opened 6 weeks ago

Closed 6 weeks ago

#62800 closed defect (bug) (invalid)

Related Posts creates long URLs which cause 414 Request-URI too long errors

Reported by: trigiolfreeie's profile trigiolfreeie Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

I'm honestly not sure where this code is, whether it's in WordPress core or in a common plugin, but it's something I've seen on many blogs, and it's badly broken. I've looked through a few common related posts plugins without finding the culprit.

Related posts are often shown at the bottom of a blog post. These link to a related post, with a long query string looking something like this: ?relatedposts_hit=1&relatedposts_origin=52827&relatedposts_position=2. But sometimes it's much, much longer. (And sometimes, it's completely absent. Odd.) Many thousands of characters. This will, of course, cause a 414 error. I've seen this many times on many different websites. I'd like to fix it, but I cannot find the code.

Example blogs on which I've seen this error more than once: https://captainawkward.com/ and https://www.lunarmobiscuit.com/ and many others (intermittently).

Change History (3)

#1 @sabernhardt
6 weeks ago

Hi and welcome to Core Trac!

The relatedposts_hit, relatedposts_origin, and relatedposts_position parameters are of part of Jetpack. You could report this on their support forum.
https://wordpress.org/support/plugin/jetpack/

#2 @trigiolfreeie
6 weeks ago

Thanks. I'll have a quick look at the Jetpack code and try to fix it myself with a pull request. Failing that, I'll report it. I suppose this ticket here can be closed, if it's not a WordPress Core issue.

#3 @sabernhardt
6 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

If you want to create a pull request, their GitHub repository is at
https://github.com/Automattic/jetpack

I'll close the ticket as 'invalid' (not a Core issue).

Note: See TracTickets for help on using tickets.