Skip to content

Fix archive page show 404 because of the gated content#3189

Merged
Crabcyborg merged 1 commit into
masterfrom
fix-404-archive-page
Jul 16, 2026
Merged

Fix archive page show 404 because of the gated content#3189
Crabcyborg merged 1 commit into
masterfrom
fix-404-archive-page

Conversation

@truongwp

@truongwp truongwp commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

This fixes https://secure.helpscout.net/conversation/3388018170/255310

Summary by CodeRabbit

  • Bug Fixes
    • Gated content unlocking now runs only on individual post or page views.
    • Prevented access-code checks, redirects, and restricted-content handling from affecting archive, listing, and other non-singular pages.

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6461bbda-c5b8-456d-a74c-729c5407989c

📥 Commits

Reviewing files that changed from the base of the PR and between cf0f66d and b3fbd02.

📒 Files selected for processing (1)
  • classes/controllers/FrmGatedContentController.php

📝 Walkthrough

Walkthrough

Changes

Gated content request handling

Layer / File(s) Summary
Add singular request guard
classes/controllers/FrmGatedContentController.php
maybe_unlock_post() now exits for non-singular requests before running gated-content unlock and restriction logic.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: crabcyborg

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main fix: preventing gated content logic from causing archive pages to return 404s.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-404-archive-page

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@truongwp
truongwp requested a review from Crabcyborg July 16, 2026 12:54

@Crabcyborg Crabcyborg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @truongwp!

🚀

@Crabcyborg Crabcyborg added this to the 6.34 milestone Jul 16, 2026
@Crabcyborg
Crabcyborg merged commit ee017de into master Jul 16, 2026
41 of 44 checks passed
@Crabcyborg
Crabcyborg deleted the fix-404-archive-page branch July 16, 2026 13:09
@Crabcyborg Crabcyborg modified the milestones: 6.34, 6.33.1 Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants